![]() |
Trax3 3.1.0
trax track library
|
Interface for identifying objects by ID or reference values. More...
#include <C:/Trend/Development/Trax3/Code/trax/Identified.h>

Public Member Functions | |
| virtual const std::string & | Reference (const std::string &name) const =0 |
| Gets a reference that was set for this object by name. | |
| virtual void | Reference (const std::string &name, const std::string &reference)=0 |
| Sets the reference for the object. | |
| virtual const std::vector< char const * > & | ReferenceNames (const std::string &namePart) const =0 |
| Searches for all reference names that countain namePart as substring in the name. | |
| virtual IDType | ID () const noexcept=0 |
| virtual void | ID (IDType id) noexcept=0 |
| Sets the object's id. | |
| Identified (const Identified &)=delete | |
| Identified & | operator= (const Identified &)=delete |
Protected Member Functions | |
| Identified (Identified &&)=default | |
| Identified & | operator= (Identified &&)=default |
Interface for identifying objects by ID or reference values.
The template argument prevents that this becomes a common base.
|
pure virtualnoexcept |
Implemented in trax::ObjectIDDecorator< Decorator< TrackCollection > >, trax::ObjectIDDecorator< Decorator< TrackCollectionContainer > >, trax::ObjectIDDecorator< Decorator< TrackSystem > >, trax::Plug_Imp, and trax::Sensor_Imp.
|
pure virtualnoexcept |
Sets the object's id.
Collections will typically set the id of an object added to them if id is not set. If the id of an object has a certain value, the collection will try to use that value but will fail if it is not unique.
|
pure virtual |
Gets a reference that was set for this object by name.
| name | Name of the reference. |
Implemented in trax::Plug_Imp, and trax::Sensor_Imp.
|
pure virtual |
Sets the reference for the object.
| name | Name of the reference. |
| reference | Reference string to be set. |