CGMES_3_0_0
Loading...
Searching...
No Matches
DiagramObjectPoint.hpp
1#ifndef DiagramObjectPoint_H
2#define DiagramObjectPoint_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 "Float.hpp"
18#include "Integer.hpp"
19
20namespace CIMPP
21{
22 class DiagramObject;
24
26 class DiagramObjectPoint : public BaseClass
27 {
28 public:
29 /* constructor initialising all attributes to null */
30 DiagramObjectPoint();
31 ~DiagramObjectPoint() override;
32
35
38
41
44
47
50
51 static const char debugName[];
52 const char* debugString() const override;
53
54 const std::list<std::string>& getAttributeNames() const override;
55
56 const std::string& getClassNamespaceUrl() const override;
57 const std::string& getAttributeNamespaceUrl(const std::string& attrName) const override;
58
59 const std::list<CGMESProfile>& getPossibleProfiles() const override;
60 const CGMESProfile& getRecommendedProfile() const override;
61 const std::list<CGMESProfile>& getPossibleAttributeProfiles(const std::string& attrName) const override;
62 const std::list<CGMESProfile>& getPossibleProfilesIncludingAttributes() const override;
63
64 static void addConstructToMap(std::unordered_map<std::string, BaseClass* (*)()>& factory_map);
65 static void addPrimitiveAssignFnsToMap(std::unordered_map<std::string, assign_function>& assign_map);
66 static void addClassAssignFnsToMap(std::unordered_map<std::string, class_assign_function>& assign_map);
67 void addPrimitiveGetFnsToMap(std::map<std::string, get_function>& get_map) const override;
68 void addClassGetFnsToMap(std::map<std::string, class_get_function>& get_map) const override;
69 void addEnumGetFnsToMap(std::map<std::string, get_function>& get_map) const override;
70
71 bool isAssignableFrom(BaseClass* otherObject) const override;
72 static const BaseClassDefiner declare();
73
74 protected:
75 std::map<std::string, AttrDetails> allAttrDetailsMap() const override;
76 };
77
78 BaseClass* DiagramObjectPoint_factory();
79}
80#endif
Definition BaseClass.hpp:22
Definition BaseClassDefiner.hpp:12
This is used for grouping diagram object points from different diagram objects that are considered to...
Definition DiagramObjectGluePoint.hpp:24
CIMPP::Float xPosition
The X coordinate of this point. Default: 0.0.
Definition DiagramObjectPoint.hpp:43
CIMPP::Float yPosition
The Y coordinate of this point. Default: 0.0.
Definition DiagramObjectPoint.hpp:46
CIMPP::DiagramObjectGluePoint * DiagramObjectGluePoint
The glue point to which this point is associated. Default: nullptr.
Definition DiagramObjectPoint.hpp:37
CIMPP::Float zPosition
The Z coordinate of this point. Default: 0.0.
Definition DiagramObjectPoint.hpp:49
CIMPP::DiagramObject * DiagramObject
The diagram object with which the points are associated. Default: nullptr.
Definition DiagramObjectPoint.hpp:34
CIMPP::Integer sequenceNumber
The sequence position of the point, used for defining the order of points for diagram objects acting ...
Definition DiagramObjectPoint.hpp:40
An object that defines one or more points in a given space. This object can be associated with anythi...
Definition DiagramObject.hpp:32
A floating point number. The range is unspecified and not limited.
Definition Float.hpp:14
Definition Integer.hpp:13