#include "VersionGraphVersionCfg.h"
Public Member Functions | |
| VersionGraphVersionCfg () | |
| VersionGraphVersionCfg (const std::string &_name, const std::string &_label=std::string(), const std::string &_description=std::string()) | |
| VersionGraphVersionCfg (const VersionGraphVersionCfg &_other) | |
| virtual | ~VersionGraphVersionCfg () |
| VersionGraphVersionCfg & | operator= (const VersionGraphVersionCfg &_other) |
| void | addToJsonObject (ot::JsonValue &_object, ot::JsonAllocator &_allocator, const std::string &_customParentVersion) const |
| bool | setFromJsonObject (const ot::ConstJsonObject &_object, VersionGraphCfg *_graph) |
| void | setName (const std::string &_name) |
| 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 displayed on the version. | |
| void | setLabel (const std::string &_title) |
| const std::string & | getLabel (void) const |
| Returns the version label. The label will be displayed on the version if it is not empty. | |
| void | setDescription (const std::string &_description) |
| const std::string & | getDescription (void) const |
| VersionGraphVersionCfg * | addChildVersion (const std::string &_name, const std::string &_label=std::string(), const std::string &_description=std::string()) |
| void | addChildVersion (VersionGraphVersionCfg *_child) |
| Adds the provided version as a child. This version takes ownership of the provided child version. | |
| void | setChildVersions (const std::list< VersionGraphVersionCfg * > &_versions) |
| const std::list< VersionGraphVersionCfg * > & | getChildVersions (void) const |
| Returns the child versions. This version keeps ownership of the versions. | |
| VersionGraphVersionCfg * | findVersion (const std::string &_versionName) |
| Returns the version with the given name. The version may be this version. | |
| const VersionGraphVersionCfg * | findVersion (const std::string &_versionName) const |
| Returns the version with the given name. The version may be this version. | |
| bool | versionStartingWithNameExists (const std::string &_prefix) const |
| Returns true if a version with the given name prefix exists in any of the versions childs. Also checks this version. | |
| VersionGraphVersionCfg * | getLastBranchVersion (void) |
| Returns the last version in this branch (first child versions). | |
| void | setDirectParentIsHidden (bool _isHidden) |
| bool | getDirectParentIsHidden (void) const |
| If the direct parent is hidden the connection line will be displayed as a dashed line. | |
| void | applyConfigOnly (const VersionGraphVersionCfg &_other) |
| Copy data excluding child versions. | |
| VersionGraphVersionCfg * | getParentVersion (void) |
| const VersionGraphVersionCfg * | getParentVersion (void) const |
| ot::VersionGraphVersionCfg::VersionGraphVersionCfg | ( | ) |
| ot::VersionGraphVersionCfg::VersionGraphVersionCfg | ( | const std::string & | _name, |
| const std::string & | _label = std::string(), | ||
| const std::string & | _description = std::string() ) |
| ot::VersionGraphVersionCfg::VersionGraphVersionCfg | ( | const VersionGraphVersionCfg & | _other | ) |
|
virtual |
| ot::VersionGraphVersionCfg * ot::VersionGraphVersionCfg::addChildVersion | ( | const std::string & | _name, |
| const std::string & | _label = std::string(), | ||
| const std::string & | _description = std::string() ) |
| void ot::VersionGraphVersionCfg::addChildVersion | ( | VersionGraphVersionCfg * | _child | ) |
Adds the provided version as a child. This version takes ownership of the provided child version.
| void ot::VersionGraphVersionCfg::addToJsonObject | ( | ot::JsonValue & | _object, |
| ot::JsonAllocator & | _allocator, | ||
| const std::string & | _customParentVersion ) const |
| void ot::VersionGraphVersionCfg::applyConfigOnly | ( | const VersionGraphVersionCfg & | _other | ) |
Copy data excluding child versions.
| ot::VersionGraphVersionCfg * ot::VersionGraphVersionCfg::findVersion | ( | const std::string & | _versionName | ) |
Returns the version with the given name. The version may be this version.
| const ot::VersionGraphVersionCfg * ot::VersionGraphVersionCfg::findVersion | ( | const std::string & | _versionName | ) | const |
Returns the version with the given name. The version may be this version.
|
inline |
Returns the child versions. This version keeps ownership of the versions.
|
inline |
|
inline |
If the direct parent is hidden the connection line will be displayed as a dashed line.
|
inline |
Returns the version label. The label will be displayed on the version if it is not empty.
| ot::VersionGraphVersionCfg * ot::VersionGraphVersionCfg::getLastBranchVersion | ( | void | ) |
Returns the last version in this branch (first child versions).
|
inline |
Returns the version name. The name is used to identify the version in a graph. The name will be displayed on the version.
|
inline |
|
inline |
| ot::VersionGraphVersionCfg & ot::VersionGraphVersionCfg::operator= | ( | const VersionGraphVersionCfg & | _other | ) |
| void ot::VersionGraphVersionCfg::setChildVersions | ( | const std::list< VersionGraphVersionCfg * > & | _versions | ) |
|
inline |
|
inline |
| bool ot::VersionGraphVersionCfg::setFromJsonObject | ( | const ot::ConstJsonObject & | _object, |
| VersionGraphCfg * | _graph ) |
|
inline |
|
inline |
| bool ot::VersionGraphVersionCfg::versionStartingWithNameExists | ( | const std::string & | _prefix | ) | const |
Returns true if a version with the given name prefix exists in any of the versions childs. Also checks this version.