11 #include <dpsim-models/AttributeList.h>
12 #include <dpsim-models/Config.h>
13 #include <dpsim-models/Definitions.h>
14 #include <dpsim-models/Utils.h>
30 typedef std::shared_ptr<IdentifiedObject> Ptr;
31 typedef std::vector<Ptr> List;
39 explicit IdentifiedObject(
const String &name)
40 : IdentifiedObject(name, name) {}
42 virtual ~IdentifiedObject() =
default;
55 const AttributeBase::Map &attributes()
const {
59 String name() {
return **
mName; }
63 String
type() {
return Utils::className(
this); }
const Attribute< String >::Ptr mName
Human readable name.
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.
Attribute< T >::Ptr attributeTyped(const String &name) const
Return pointer to an attribute.
AttributeList::Ptr mAttributes
Attribute List.