CGMES_3_0_0
Loading...
Searching...
No Matches
StreetAddress.hpp
1#ifndef StreetAddress_H
2#define StreetAddress_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 Status;
22 class StreetDetail;
23 class TownDetail;
24
26 class StreetAddress : public BaseClass
27 {
28 public:
29 /* constructor initialising all attributes to null */
30 StreetAddress();
31 ~StreetAddress() 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* StreetAddress_factory();
79}
80#endif
Definition BaseClass.hpp:22
Definition BaseClassDefiner.hpp:12
Current status information relevant to an entity.
Definition Status.hpp:25
CIMPP::String language
The language in which the address is specified, using ISO 639-1 two digit language code....
Definition StreetAddress.hpp:34
CIMPP::TownDetail * townDetail
Town detail. Default: nullptr.
Definition StreetAddress.hpp:49
CIMPP::Status * status
Status of this address. Default: nullptr.
Definition StreetAddress.hpp:43
CIMPP::String postalCode
Postal code for the address. Default: "".
Definition StreetAddress.hpp:40
CIMPP::StreetDetail * streetDetail
Street detail. Default: nullptr.
Definition StreetAddress.hpp:46
CIMPP::String poBox
Post office box. Default: "".
Definition StreetAddress.hpp:37
Street details, in the context of address.
Definition StreetDetail.hpp:25
A string consisting of a sequence of characters. The character encoding is UTF-8. The string length i...
Definition String.hpp:15
Town details, in the context of address.
Definition TownDetail.hpp:24