DPsim
Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
CPS::IdentifiedObject Class Reference

#include <IdentifiedObject.h>

Inheritance diagram for CPS::IdentifiedObject:
[legend]
Collaboration diagram for CPS::IdentifiedObject:
[legend]

Public Types

typedef std::shared_ptr< IdentifiedObjectPtr
 
typedef std::vector< Ptr > List
 

Public Member Functions

 IdentifiedObject (const String &uid, const String &name)
 
 IdentifiedObject (const String &name)
 
AttributeBase::Ptr attribute (const String &name) const
 Return pointer to an attribute.
 
template<typename T >
Attribute< T >::Ptr attributeTyped (const String &name) const
 Return pointer to an attribute.
 
const AttributeBase::Map & attributes () const
 
String name ()
 
String uid ()
 Returns unique id.
 
String type ()
 Get component type (cross-platform)
 

Public Attributes

const Attribute< String >::Ptr mName
 Human readable name.
 
const Attribute< String >::Ptr mUID
 Unique identifier.
 

Protected Attributes

AttributeList::Ptr mAttributes = AttributeList::make()
 Attribute List.
 

Detailed Description

Common base class of all objects which are identified by a name and an unique identifier (UID).

Definition at line 19 of file IdentifiedObject.h.


The documentation for this class was generated from the following file: