18#pragma warning(disable:4251)
22 class VersionGraphCfg;
37 VersionGraphVersionCfg(
const std::string& _versionName,
const std::string& _label = std::string(),
const std::string& _description = std::string());
49 bool operator != (
const std::string& _name)
const;
56 void setName(
const std::string& _name) { m_name = _name; };
67 const std::string&
getName(
void)
const {
return m_name; };
71 std::string getBranchName(
void)
const;
75 std::string getBranchNodeName(
void)
const;
78 void setLabel(
const std::string& _title) { m_label = _title; };
82 const std::string&
getLabel(
void)
const {
return m_label; };
84 void setDescription(
const std::string& _description) { m_description = _description; };
102 static VersionNumberType getVersionNumber(
const std::string& _version);
104 std::vector<VersionNumberType> getVersionNumbers(
void)
const;
105 static std::vector<VersionNumberType> getVersionNumbers(
const std::string& _version);
107 bool isValid(
void)
const;
110 static bool isValid(
const std::string& _versionName);
112 bool isOnActivePath(
const std::string& _activeBranchName)
const;
114 static bool isOnActivePath(
const std::string& _versionName,
const std::string& _activeBranchName);
119 std::string m_description;
120 std::string m_parentVersion;
121 bool m_directParentIsHidden;
The ArchitectureInfo contains multiple definitions that specify the current OS architecture.
bool operator==(const FaceSelection &left, const FaceSelection &right)
Definition Model.cpp:55
#define OT_GUI_API_EXPORT
Definition OTGuiAPIExport.h:9
The Serializable class is the default interface of serializable objects.
Definition Serializable.h:17
Definition VersionGraphVersionCfg.h:24
void setDirectParentIsHidden(bool _isHidden)
Definition VersionGraphVersionCfg.h:91
void setLabel(const std::string &_title)
Definition VersionGraphVersionCfg.h:78
VersionNumberType getVersionNumber(void) const
getVersionNumber
Definition VersionGraphVersionCfg.h:97
void setName(const std::string &_name)
Definition VersionGraphVersionCfg.h:56
long VersionNumberType
Definition VersionGraphVersionCfg.h:29
bool getDirectParentIsHidden(void) const
If the direct parent is hidden the connection line will be displayed as a dashed line.
Definition VersionGraphVersionCfg.h:94
const std::string & getDescription(void) const
Definition VersionGraphVersionCfg.h:85
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:67
const std::string & getParentVersion(void) const
Definition VersionGraphVersionCfg.h:88
void setDescription(const std::string &_description)
Definition VersionGraphVersionCfg.h:84
void setParentVersion(const std::string &_version)
Definition VersionGraphVersionCfg.h:87
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:82
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