36#ifndef _OMS_SNAPSHOT_H_
37#define _OMS_SNAPSHOT_H_
42#include "OMSimulator/Types.h"
56 oms_status_enu_t
import(
const char* snapshot);
57 oms_status_enu_t
importResourceFile(
const filesystem::path& filename,
const filesystem::path& root);
59 oms_status_enu_t
importResourceNode(
const filesystem::path& filename,
const pugi::xml_node& node);
64 pugi::xml_node
operator[](
const filesystem::path& filename);
66 void getResources(std::vector<std::string>& resources)
const;
86 oms_status_enu_t
writeResourceNode(
const filesystem::path& filename,
const filesystem::path& path)
const;
89 oms_status_enu_t
importPartialResourceNode(
const filesystem::path& filename,
const filesystem::path& nodename,
const pugi::xml_node& node);
97 pugi::xml_document
doc;
ComRef - component reference.
Definition ComRef.h:51
pugi::xml_node getTemplateResourceNodeSSDVariants()
Definition Snapshot.cpp:235
void debugPrintNode(const filesystem::path &filename) const
Definition Snapshot.cpp:173
void debugPrintAll() const
Definition Snapshot.cpp:181
oms::ComRef getSignalFilterFilename() const
Definition Snapshot.cpp:254
oms::ComRef getSSDFilename() const
Definition Snapshot.cpp:244
oms_status_enu_t importPartialResourceNode(const filesystem::path &filename, const filesystem::path &nodename, const pugi::xml_node &node)
Definition Snapshot.cpp:119
pugi::xml_document doc
Definition Snapshot.h:97
oms_status_enu_t exportPartialSnapshot(const ComRef &cref, Snapshot &partialSnapshot)
Definition Snapshot.cpp:275
pugi::xml_node getTemplateResourceNodeSSM(const filesystem::path &filename)
Definition Snapshot.cpp:215
pugi::xml_node getTemplateResourceNodeSSV(const filesystem::path &filename, const std::string &cref)
Definition Snapshot.cpp:202
pugi::xml_node operator[](const filesystem::path &filename)
Definition Snapshot.cpp:162
pugi::xml_node newResourceNode(const filesystem::path &filename)
Definition Snapshot.cpp:56
oms_status_enu_t writeDocument(char **contents)
Definition Snapshot.cpp:416
Snapshot(Snapshot const ©)
not implemented
void getResources(std::vector< std::string > &resources) const
Definition Snapshot.cpp:130
~Snapshot()
Definition Snapshot.cpp:52
oms::ComRef getRootCref() const
Definition Snapshot.cpp:264
oms_status_enu_t writeResourceNode(const filesystem::path &filename, const filesystem::path &path) const
Definition Snapshot.cpp:443
oms_status_enu_t importResourceNode(const filesystem::path &filename, const pugi::xml_node &node)
Definition Snapshot.cpp:109
pugi::xml_node getTemplateResourceNodeSSD(const filesystem::path &filename, const ComRef &cref)
Definition Snapshot.cpp:186
pugi::xml_node getResourceNode(const filesystem::path &filename) const
Definition Snapshot.cpp:137
Snapshot & operator=(Snapshot const ©)
not implemented
oms_status_enu_t importResourceFile(const filesystem::path &filename, const filesystem::path &root)
Definition Snapshot.cpp:87
oms_status_enu_t importResourceMemory(const filesystem::path &filename, const char *contents)
Definition Snapshot.cpp:99
bool isPartialSnapshot() const
Definition Snapshot.cpp:81
pugi::xml_node getTemplateResourceNodeSignalFilter(const filesystem::path &filename)
Definition Snapshot.cpp:226
oms_status_enu_t importPartialSnapshot(const char *fullsnapshot)
Definition Snapshot.cpp:336
oms_status_enu_t deleteResourceNode(const filesystem::path &filename)
Definition Snapshot.cpp:149