fw4spl
|
Maintains a table of object versions and a table of links between objects. More...
#include <VersionsManager.hpp>
Public Types | |
Typedefs | |
typedef std::vector< ::boost::filesystem::path > | ListPathType |
typedef std::map< std::string, VersionsGraph::sptr > | VersionsGraphMapType |
Public Member Functions | |
FWATOMSPATCH_API VersionsGraph::sptr | getGraph (const std::string &context) |
Returns graph corresponding to given context. More... | |
FWATOMSPATCH_API void | buildVersionTable (const std::string &dirPath) |
Builds version table. More... | |
FWATOMSPATCH_API void | buildLinkTable (const std::string &dirPath) |
Builds link table. More... | |
Static Public Member Functions | |
static FWATOMSPATCH_API void | generateNewFile (const ::boost::filesystem::path &filePath, const std::string &context, const std::string &versionName) |
Generates a .versions file with currently known data versions. More... | |
static std::shared_ptr< VersionsManager > | getDefault () |
Returns the default instance of VersionsManager. | |
Maintains a table of object versions and a table of links between objects.
Version and link tables are built from .versions and .graphlink files.
Definition at line 30 of file VersionsManager.hpp.
void fwAtomsPatch::VersionsManager::buildLinkTable | ( | const std::string & | dirPath | ) |
Builds link table.
dirPath | directory to search for .graphlink files |
Definition at line 74 of file VersionsManager.cpp.
void fwAtomsPatch::VersionsManager::buildVersionTable | ( | const std::string & | dirPath | ) |
Builds version table.
dirPath | directory to search for .versions files |
Definition at line 59 of file VersionsManager.cpp.
|
static |
Generates a .versions file with currently known data versions.
filePath | path of .versions file to write. |
context | context of the VersionGraph. |
versionName | name of the version to write. |
Definition at line 90 of file VersionsManager.cpp.
References fwAtomsPatch::LinkDescriptor::getContext(), fwAtomsPatch::VersionDescriptor::getContext(), and OSLM_ASSERT.
VersionsGraph::sptr fwAtomsPatch::VersionsManager::getGraph | ( | const std::string & | context | ) |
Returns graph corresponding to given context.
context | context of the requested VersionGraph. |
Definition at line 230 of file VersionsManager.cpp.