DUECA/DUSIME
|
This class is a common base to all objects with a name. More...
#include <NamedObject.hxx>
Public Member Functions | |
const std::string | getEntity () const |
Returns the "entity" part of the name. | |
const std::string | getClass () const |
Returns the "class" part of the name. | |
const std::string | getPart () const |
Returns the sub-entity or "part" part of the name. | |
const NameSet & | getNameSet () const |
This returns the complete name set. | |
const GlobalId & | getId () const |
This returns the id. | |
virtual ObjectType | getObjectType () const =0 |
This has to be re-implemented in a derived class, used to get an idea of what the derived class does. | |
Protected Member Functions | |
NamedObject (const GlobalId &id) | |
Reserve for AssociateObject. | |
NamedObject (const NameSet &ns) | |
Normal constructor, protected, because it has no use to create a NamedObject by itself. | |
virtual | ~NamedObject () |
Destructor. | |
Friends | |
class | ObjectManager |
An ObjectManager may initialise its name later. | |
class | ScriptInterpret |
And also the ScriptInterpret object may do this. | |
This class is a common base to all objects with a name.
These objects will be locatable by the CSE registry.
The name consists of a tuple (entity, cclass, part)
The NamedObject class links the name tuple to an object id. The object id consists of another tuple (location, object).
Note that the entity, class, part tuple is stored, upon creation, in the registry. The methods that query this tuple use the registry, in combination with my_id, to return the answer.
The registry will provide methods to obtain the object id from the (entity, class, part) tuple and vice versa.
Reserve for AssociateObject.
Only for AssociateObject descendant
This returns the id.
Normally this is used by a derived class, because the id has to be supplied to obtain various services, such as channel access and activation
|
pure virtual |
This has to be re-implemented in a derived class, used to get an idea of what the derived class does.
Implemented in dueca::EasyId, dueca::Module, dueca::ScriptInterpret, and dueca::Ticker.