12#include <dpsim-models/Config.h>
30 typedef std::shared_ptr<IdentifiedObject>
Ptr;
31 typedef std::vector<Ptr>
List;
AttributePointer< AttributeBase > Ptr
std::map< String, Ptr > Map
AttributePointer< Attribute< T > > Ptr
std::shared_ptr< AttributeList > Ptr
const Attribute< String >::Ptr mName
Human readable name.
const AttributeBase::Map & attributes() const
Attribute< T >::Ptr attributeTyped(const String &name) const
Return pointer to an attribute.
std::shared_ptr< IdentifiedObject > Ptr
IdentifiedObject(const String &uid, const String &name)
virtual ~IdentifiedObject()=default
String uid()
Returns unique id.
String type()
Get component type (cross-platform)
AttributeBase::Ptr attribute(const String &name) const
Return pointer to an attribute.
const Attribute< String >::Ptr mUID
Unique identifier.
virtual String description()
IdentifiedObject(const String &name)
AttributeList::Ptr mAttributes
Attribute List.
static std::shared_ptr< AttributeList > make(Args &&...args)
String className(T *ptr, const String &prefix="CPS::")