46 void incrementActiveVersion(
void);
48 static std::string incrementVersion(
const std::string& _version);
58 VersionGraphVersionCfg& insertVersion(
const std::string& _version,
const std::string& _parentVersion,
const std::string& _label = std::string(),
const std::string& _description = std::string());
62 VersionsList& insertBranch(VersionsList&& _branch);
64 static VersionsList& insertBranch(VersionsList&& _branch, std::list<VersionsList>& _branchesList);
83 const VersionGraphVersionCfg* findNextVersion(
const std::string& _version,
const std::string& _activeBranch)
const;
89 std::list<const VersionGraphVersionCfg*> findNextVersions(
const std::string& _version,
const std::string& _lastVersion);
90 std::list<const VersionGraphVersionCfg*> findNextVersions(
const std::string& _version,
const std::string& _activeBranch,
const std::string& _lastVersion);
93 std::list<const VersionGraphVersionCfg*> findAllNextVersions(
const std::string& _version);
97 bool versionIsEndOfBranch(
const std::string& _version)
const;
100 bool versionStartingWithNameExists(
const std::string& _prefix);
103 void removeVersion(
const std::string& _version);
105 bool getBranchExists(
const std::string& _branchName)
const;
107 const std::list<std::list<VersionGraphVersionCfg>>&
getBranches(
void)
const {
return m_branches; };
110 int getBranchesCountFromNode(
const std::string& _version)
const;
113 std::list<std::list<VersionGraphVersionCfg>> getBranchesFromNode(
const std::string& _version)
const;
127 const ot::VersionGraphVersionCfg* findNextVersion(
const std::string& _version,
const std::string& _activeBranch,
const VersionsList*& _versionList, VersionsList::const_iterator& _currentVersionListIterator)
const;
129 void findAllNextVersions(std::list<const VersionGraphVersionCfg*>& _result,
const VersionsList* _list, VersionsList::const_iterator _iterator)
const;
131 bool findVersionIterator(
const std::string& _versionName,
const VersionsList*& _list, VersionsList::const_iterator& _iterator)
const;
133 typedef VersionsList* (FindBranchFun(
const std::string& _branchName));
134 VersionsList* findBranch(
const std::string& _branchName);
136 typedef const VersionsList* (ConstFindBranchFun(
const std::string& _branchName));
137 const VersionsList* findBranch(
const std::string& _branchName)
const;
139 std::string m_activeVersionName;
140 std::string m_activeBranchName;
141 BranchesList m_branches;
const std::string & getActiveBranchName(void) const
Returns the active branch name. The active branch is the currently active branch. All parent versions...
Definition VersionGraphCfg.h:56
const std::string & getActiveVersionName(void) const
Returns the active version name. The active version is the currently active model version.
Definition VersionGraphCfg.h:44