CGMES_3_0_0
Loading...
Searching...
No Matches
DiagramObjectStyle.hpp
1#ifndef DiagramObjectStyle_H
2#define DiagramObjectStyle_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 "IdentifiedObject.hpp"
13#include "BaseClassDefiner.hpp"
14#include "CGMESProfile.hpp"
15#include "CimClassDetails.hpp"
16
17
18namespace CIMPP
19{
20 class DiagramObject;
21
23 class DiagramObjectStyle : public IdentifiedObject
24 {
25 public:
26 /* constructor initialising all attributes to null */
27 DiagramObjectStyle();
28 ~DiagramObjectStyle() override;
29
31 std::list<CIMPP::DiagramObject*> StyledObjects;
32
33 static const char debugName[];
34 const char* debugString() const override;
35
36 const std::list<std::string>& getAttributeNames() const override;
37
38 const std::string& getClassNamespaceUrl() const override;
39 const std::string& getAttributeNamespaceUrl(const std::string& attrName) const override;
40
41 const std::list<CGMESProfile>& getPossibleProfiles() const override;
42 const CGMESProfile& getRecommendedProfile() const override;
43 const std::list<CGMESProfile>& getPossibleAttributeProfiles(const std::string& attrName) const override;
44 const std::list<CGMESProfile>& getPossibleProfilesIncludingAttributes() const override;
45
46 static void addConstructToMap(std::unordered_map<std::string, BaseClass* (*)()>& factory_map);
47 static void addPrimitiveAssignFnsToMap(std::unordered_map<std::string, assign_function>& assign_map);
48 static void addClassAssignFnsToMap(std::unordered_map<std::string, class_assign_function>& assign_map);
49 void addPrimitiveGetFnsToMap(std::map<std::string, get_function>& get_map) const override;
50 void addClassGetFnsToMap(std::map<std::string, class_get_function>& get_map) const override;
51 void addEnumGetFnsToMap(std::map<std::string, get_function>& get_map) const override;
52
53 bool isAssignableFrom(BaseClass* otherObject) const override;
54 static const BaseClassDefiner declare();
55
56 protected:
57 std::map<std::string, AttrDetails> allAttrDetailsMap() const override;
58 };
59
60 BaseClass* DiagramObjectStyle_factory();
61}
62#endif
Definition BaseClass.hpp:22
Definition BaseClassDefiner.hpp:12
std::list< CIMPP::DiagramObject * > StyledObjects
A style can be assigned to multiple diagram objects. Default: {}.
Definition DiagramObjectStyle.hpp:31
An object that defines one or more points in a given space. This object can be associated with anythi...
Definition DiagramObject.hpp:32