16#pragma warning(disable:4251)
20 class VersionGraphCfg;
25 VersionGraphVersionCfg(
const std::string& _name,
const std::string& _label = std::string(),
const std::string& _description = std::string());
37 void setName(
const std::string& _name) { m_name = _name; };
42 const std::string&
getName(
void)
const {
return m_name; };
45 void setLabel(
const std::string& _title) { m_label = _title; };
49 const std::string&
getLabel(
void)
const {
return m_label; };
51 void setDescription(
const std::string& _description) { m_description = _description; };
54 VersionGraphVersionCfg* addChildVersion(
const std::string& _name,
const std::string& _label = std::string(),
const std::string& _description = std::string());
59 void setChildVersions(
const std::list<VersionGraphVersionCfg*>& _versions);
63 const std::list<VersionGraphVersionCfg*>&
getChildVersions(
void)
const {
return m_childVersions; };
75 bool versionStartingWithNameExists(
const std::string& _prefix)
const;
94 void eraseChildVersion(VersionGraphVersionCfg* _child);
96 void clearChilds(
void);
100 std::string m_description;
101 VersionGraphVersionCfg* m_parentVersion;
102 std::list<VersionGraphVersionCfg*> m_childVersions;
103 bool m_directParentIsHidden;
#define OT_GUI_API_EXPORT
Definition OTGuiAPIExport.h:9
Definition VersionGraphCfg.h:13
Definition VersionGraphVersionCfg.h:22
void setDirectParentIsHidden(bool _isHidden)
Definition VersionGraphVersionCfg.h:81
VersionGraphVersionCfg * getParentVersion(void)
Definition VersionGraphVersionCfg.h:89
const std::list< VersionGraphVersionCfg * > & getChildVersions(void) const
Returns the child versions. This version keeps ownership of the versions.
Definition VersionGraphVersionCfg.h:63
void setLabel(const std::string &_title)
Definition VersionGraphVersionCfg.h:45
void setName(const std::string &_name)
Definition VersionGraphVersionCfg.h:37
bool getDirectParentIsHidden(void) const
If the direct parent is hidden the connection line will be displayed as a dashed line.
Definition VersionGraphVersionCfg.h:84
const std::string & getDescription(void) const
Definition VersionGraphVersionCfg.h:52
const std::string & getName(void) const
Returns the version name. The name is used to identify the version in a graph. The name will be displ...
Definition VersionGraphVersionCfg.h:42
const VersionGraphVersionCfg * getParentVersion(void) const
Definition VersionGraphVersionCfg.h:90
void setDescription(const std::string &_description)
Definition VersionGraphVersionCfg.h:51
const std::string & getLabel(void) const
Returns the version label. The label will be displayed on the version if it is not empty.
Definition VersionGraphVersionCfg.h:49
rapidjson::Value JsonValue
Writable JSON value.
Definition JSON.h:27
rapidjson::GenericObject< true, rapidjson::GenericValue< rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > > > ConstJsonObject
Read only JSON Object.
Definition JSON.h:35
rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > JsonAllocator
Allocator used for writing to JSON values.
Definition JSON.h:30