32 #ifndef _OMS_SNAPSHOT_H_
33 #define _OMS_SNAPSHOT_H_
38 #include "OMSimulator/Types.h"
40 #include <pugixml.hpp>
52 oms_status_enu_t
import(
const char* snapshot);
53 oms_status_enu_t
importResourceFile(
const filesystem::path& filename,
const filesystem::path& root);
55 oms_status_enu_t
importResourceNode(
const filesystem::path& filename,
const pugi::xml_node& node);
60 pugi::xml_node
operator[](
const filesystem::path& filename);
62 void getResources(std::vector<std::string>& resources)
const;
82 oms_status_enu_t
writeResourceNode(
const filesystem::path& filename,
const filesystem::path& path)
const;
85 oms_status_enu_t
importPartialResourceNode(
const filesystem::path& filename,
const filesystem::path& nodename,
const pugi::xml_node& node);
93 pugi::xml_document
doc;
ComRef - component reference.
Definition: ComRef.h:47
Definition: Snapshot.h:47
pugi::xml_node getTemplateResourceNodeSSDVariants()
Definition: Snapshot.cpp:231
void debugPrintNode(const filesystem::path &filename) const
Definition: Snapshot.cpp:169
void debugPrintAll() const
Definition: Snapshot.cpp:177
oms::ComRef getSignalFilterFilename() const
Definition: Snapshot.cpp:250
Snapshot & operator=(Snapshot const ©)
not implemented
oms::ComRef getSSDFilename() const
Definition: Snapshot.cpp:240
Snapshot(bool partial=false)
Definition: Snapshot.cpp:39
oms_status_enu_t importPartialResourceNode(const filesystem::path &filename, const filesystem::path &nodename, const pugi::xml_node &node)
Definition: Snapshot.cpp:115
pugi::xml_document doc
Definition: Snapshot.h:93
oms_status_enu_t exportPartialSnapshot(const ComRef &cref, Snapshot &partialSnapshot)
Definition: Snapshot.cpp:271
pugi::xml_node getTemplateResourceNodeSSM(const filesystem::path &filename)
Definition: Snapshot.cpp:211
pugi::xml_node getTemplateResourceNodeSSV(const filesystem::path &filename, const std::string &cref)
Definition: Snapshot.cpp:198
pugi::xml_node operator[](const filesystem::path &filename)
Definition: Snapshot.cpp:158
pugi::xml_node newResourceNode(const filesystem::path &filename)
Definition: Snapshot.cpp:52
oms_status_enu_t writeDocument(char **contents)
Definition: Snapshot.cpp:412
Snapshot(Snapshot const ©)
not implemented
void getResources(std::vector< std::string > &resources) const
Definition: Snapshot.cpp:126
~Snapshot()
Definition: Snapshot.cpp:48
oms::ComRef getRootCref() const
Definition: Snapshot.cpp:260
oms_status_enu_t writeResourceNode(const filesystem::path &filename, const filesystem::path &path) const
Definition: Snapshot.cpp:439
oms_status_enu_t importResourceNode(const filesystem::path &filename, const pugi::xml_node &node)
Definition: Snapshot.cpp:105
pugi::xml_node getTemplateResourceNodeSSD(const filesystem::path &filename, const ComRef &cref)
Definition: Snapshot.cpp:182
pugi::xml_node getResourceNode(const filesystem::path &filename) const
Definition: Snapshot.cpp:133
oms_status_enu_t importResourceFile(const filesystem::path &filename, const filesystem::path &root)
Definition: Snapshot.cpp:83
oms_status_enu_t importResourceMemory(const filesystem::path &filename, const char *contents)
Definition: Snapshot.cpp:95
bool isPartialSnapshot() const
Definition: Snapshot.cpp:77
pugi::xml_node getTemplateResourceNodeSignalFilter(const filesystem::path &filename)
Definition: Snapshot.cpp:222
oms_status_enu_t importPartialSnapshot(const char *fullsnapshot)
Definition: Snapshot.cpp:332
oms_status_enu_t deleteResourceNode(const filesystem::path &filename)
Definition: Snapshot.cpp:145