OMSimulatorLib
The OMSimulator project is a FMI-based co-simulation environment that supports ordinary (i.e., non-delayed) and TLM connections.
|
Go to the documentation of this file.
37 #include "OMSimulator/Types.h"
66 oms_status_enu_t
importModel(
const std::string& filename,
char** cref);
73 oms_status_enu_t
loadSnapshot(
const ComRef& cref,
const char* snapshot,
char** newCref);
80 static oms_status_enu_t
miniunz(
const std::string& filename,
const std::string& extractdir);
oms_status_enu_t renameModel(const ComRef &cref, const ComRef &newCref)
Definition: Scope.cpp:109
oms_status_enu_t validateSSP(const char *ssd, const std::string &filePath)
Definition: XercesValidator.cpp:126
Scope()
Definition: Scope.cpp:43
oms_status_enu_t getElement(const ComRef &cref, oms::Element **element)
Definition: Scope.cpp:355
static oms_status_enu_t miniunz(const std::string &filename, const std::string &extractdir)
Definition: Scope.cpp:145
const char * system
Definition: Tags.cpp:57
oms_status_enu_t writeDocument(char **contents)
Definition: Snapshot.cpp:412
ComRef - component reference.
Definition: ComRef.h:46
oms::ComRef getRootCref() const
Definition: Snapshot.cpp:260
oms_status_enu_t importModel(const std::string &filename, char **cref)
Definition: Scope.cpp:183
#define OMS_RECURSIVE_DIRECTORY_ITERATOR(path)
Definition: OMSFileSystem.h:8
const char * component
Definition: Tags.cpp:45
Definition: XercesValidator.h:44
#define logError_AlreadyInScope(cref)
Definition: Logging.h:120
oms_status_enu_t setTempDirectory(const std::string &newTempDir)
Definition: Scope.cpp:276
oms_status_enu_t exportToFile(const std::string &filename) const
Definition: Model.cpp:1021
static bool isValidIdent(const std::string &ident)
Definition: ComRef.cpp:89
#define logInfo(msg)
Definition: Logging.h:100
Element.
Definition: Element.h:49
std::string tempDir
Definition: Scope.h:86
const char * elements
Definition: Tags.cpp:54
std::string getWorkingDirectory()
Definition: Scope.cpp:341
oms_status_enu_t deleteModel(const ComRef &cref)
Definition: Scope.cpp:90
filesystem::path oms_canonical(const filesystem::path &p)
Definition: OMSFileSystem.cpp:103
#define logError_ModelNotInScope(cref)
Definition: Logging.h:136
Model * newModel(const ComRef &cref)
Definition: Scope.cpp:70
static Scope & GetInstance()
Definition: Scope.cpp:63
std::string getTempDirectory() const
Definition: Model.h:68
Definition: Component.h:59
pugi::xml_node getResourceNode(const filesystem::path &filename) const
Definition: Snapshot.cpp:133
filesystem::path naive_uncomplete(const filesystem::path &path, const filesystem::path &base)
Definition: OMSFileSystem.cpp:46
#define logWarning(msg)
Definition: Logging.h:101
std::map< ComRef, char * > ssdVariants
list of all variants copied when user create a new variant using oms_duplicateVariant()
Definition: Model.h:138
bool isEmpty() const
Definition: ComRef.cpp:99
std::vector< std::string > importedResources
list of imported resources from ssp
Definition: Model.h:136
void copyResources(bool copy_resources)
Definition: Model.h:96
~Scope()
Definition: Scope.cpp:55
Definition: Snapshot.h:46
const ComRef & getCref() const
Definition: Model.h:63
const std::string & getTempDirectory() const
Definition: Scope.h:76
static Model * NewModel(const ComRef &cref)
Definition: Model.cpp:83
oms_status_enu_t getElements(const ComRef &cref, oms::Element ***elements)
Definition: Scope.cpp:383
Model * getModel(const ComRef &cref)
Definition: Scope.cpp:404
std::vector< Model * > models
last element is always NULL
Definition: Scope.h:83
oms_status_enu_t importSnapshot(const char *snapshot, char **newCref)
Definition: Model.cpp:293
oms_status_enu_t importResourceFile(const filesystem::path &filename, const filesystem::path &root)
Definition: Snapshot.cpp:83
std::map< ComRef, unsigned int > models_map
Definition: Scope.h:84
oms::Element ** getElements()
Definition: Model.h:99
const char * c_str() const
Definition: ComRef.h:75
#define logError(msg)
Definition: Logging.h:102
oms_status_enu_t setWorkingDirectory(const std::string &newWorkingDir)
Definition: Scope.cpp:311
oms_status_enu_t importSnapshot(const ComRef &cref, const char *snapshot, char **newCref)
Definition: Scope.cpp:447
Component * getComponent(const ComRef &cref)
Definition: Model.cpp:376
oms_status_enu_t importResourceMemory(const filesystem::path &filename, const char *contents)
Definition: Snapshot.cpp:95
System * getSystem(const ComRef &cref)
Definition: Model.cpp:359
ComRef pop_front()
returns the first part of the ComRef and removed it from the current object
Definition: ComRef.cpp:184
oms_status_enu_t exportModel(const ComRef &cref, const std::string &filename)
Definition: Scope.cpp:136
oms_status_enu_t importFromSnapshot(const Snapshot &snapshot)
Definition: Model.cpp:857
Scope & operator=(Scope const &)
not implemented
static bool SuppressPath()
Definition: Flags.h:75
oms_status_enu_t loadSnapshot(const ComRef &cref, const char *snapshot, char **newCref)
Definition: Scope.cpp:413