CGMES_3_0_0
Loading...
Searching...
No Matches
IdentifiedObject.hpp
1#ifndef IdentifiedObject_H
2#define IdentifiedObject_H
3/*
4Generated from the CGMES files via cimgen: https://github.com/sogno-platform/cimgen
5*/
6
7#include <list>
8#include <map>
9#include <string>
10#include <unordered_map>
11
12#include "BaseClass.hpp"
13#include "BaseClassDefiner.hpp"
14#include "CGMESProfile.hpp"
15#include "CimClassDetails.hpp"
16
17#include "String.hpp"
18
19namespace CIMPP
20{
21 class DiagramObject;
22
24 class IdentifiedObject : public BaseClass
25 {
26 public:
27 /* constructor initialising all attributes to null */
28 IdentifiedObject();
29 ~IdentifiedObject() override;
30
32 std::list<CIMPP::DiagramObject*> DiagramObjects;
33
36
39
42
45
48
49 static const char debugName[];
50 const char* debugString() const override;
51
52 const std::list<std::string>& getAttributeNames() const override;
53
54 const std::string& getClassNamespaceUrl() const override;
55 const std::string& getAttributeNamespaceUrl(const std::string& attrName) const override;
56
57 const std::list<CGMESProfile>& getPossibleProfiles() const override;
58 const CGMESProfile& getRecommendedProfile() const override;
59 const std::list<CGMESProfile>& getPossibleAttributeProfiles(const std::string& attrName) const override;
60 const std::list<CGMESProfile>& getPossibleProfilesIncludingAttributes() const override;
61
62 static void addConstructToMap(std::unordered_map<std::string, BaseClass* (*)()>& factory_map);
63 static void addPrimitiveAssignFnsToMap(std::unordered_map<std::string, assign_function>& assign_map);
64 static void addClassAssignFnsToMap(std::unordered_map<std::string, class_assign_function>& assign_map);
65 void addPrimitiveGetFnsToMap(std::map<std::string, get_function>& get_map) const override;
66 void addClassGetFnsToMap(std::map<std::string, class_get_function>& get_map) const override;
67 void addEnumGetFnsToMap(std::map<std::string, get_function>& get_map) const override;
68
69 bool isAssignableFrom(BaseClass* otherObject) const override;
70 static const BaseClassDefiner declare();
71
72 protected:
73 std::map<std::string, AttrDetails> allAttrDetailsMap() const override;
74 };
75
76 BaseClass* IdentifiedObject_factory();
77}
78#endif
Definition BaseClass.hpp:22
Definition BaseClassDefiner.hpp:12
An object that defines one or more points in a given space. This object can be associated with anythi...
Definition DiagramObject.hpp:32
CIMPP::String shortName
The attribute is used for an exchange of a human readable short name with length of the string 12 cha...
Definition IdentifiedObject.hpp:47
CIMPP::String mRID
Master resource identifier issued by a model authority. The mRID is unique within an exchange context...
Definition IdentifiedObject.hpp:41
CIMPP::String name
The name is any free human readable and possibly non unique text naming the object....
Definition IdentifiedObject.hpp:44
CIMPP::String description
The description is a free human readable text describing or naming the object. It may be non unique a...
Definition IdentifiedObject.hpp:35
CIMPP::String energyIdentCodeEic
The attribute is used for an exchange of the EIC code (Energy identification Code)....
Definition IdentifiedObject.hpp:38
std::list< CIMPP::DiagramObject * > DiagramObjects
The diagram objects that are associated with the domain object. Default: {}.
Definition IdentifiedObject.hpp:32
A string consisting of a sequence of characters. The character encoding is UTF-8. The string length i...
Definition String.hpp:15