|
OMSimulatorLib
The OMSimulator project is a FMI-based co-simulation environment that supports ordinary (i.e., non-delayed) and TLM connections.
|
#include <Scope.h>

Public Member Functions | |
| Model * | newModel (const ComRef &cref) |
| oms_status_enu_t | deleteModel (const ComRef &cref) |
| oms_status_enu_t | renameModel (const ComRef &cref, const ComRef &newCref) |
| oms_status_enu_t | exportModel (const ComRef &cref, const std::string &filename) |
| oms_status_enu_t | importModel (const std::string &filename, char **cref) |
| oms_status_enu_t | setTempDirectory (const std::string &newTempDir) |
| oms_status_enu_t | setWorkingDirectory (const std::string &newWorkingDir) |
| oms_status_enu_t | getElement (const ComRef &cref, oms::Element **element) |
| oms_status_enu_t | getElements (const ComRef &cref, oms::Element ***elements) |
| Model * | getModel (const ComRef &cref) |
| oms_status_enu_t | loadSnapshot (const ComRef &cref, const char *snapshot, char **newCref) |
| oms_status_enu_t | importSnapshot (const ComRef &cref, const char *snapshot, char **newCref) |
| const std::string & | getTempDirectory () const |
| std::string | getWorkingDirectory () |
Static Public Member Functions | |
| static Scope & | GetInstance () |
Static Protected Member Functions | |
| static oms_status_enu_t | miniunz (const std::string &filename, const std::string &extractdir) |
Private Member Functions | |
| Scope () | |
| ~Scope () | |
| Scope (Scope const &) | |
| not implemented More... | |
| Scope & | operator= (Scope const &) |
| not implemented More... | |
Private Attributes | |
| std::vector< Model * > | models |
| last element is always NULL More... | |
| std::map< ComRef, unsigned int > | models_map |
| std::string | tempDir |
|
private |

|
private |
|
private |
not implemented
| oms_status_enu_t oms::Scope::deleteModel | ( | const ComRef & | cref | ) |

| oms_status_enu_t oms::Scope::exportModel | ( | const ComRef & | cref, |
| const std::string & | filename | ||
| ) |


| oms_status_enu_t oms::Scope::getElement | ( | const ComRef & | cref, |
| oms::Element ** | element | ||
| ) |


| oms_status_enu_t oms::Scope::getElements | ( | const ComRef & | cref, |
| oms::Element *** | elements | ||
| ) |


|
static |
This is instance is used as global scope. It would also be possible to have several independent local scopes.
| oms::Model * oms::Scope::getModel | ( | const ComRef & | cref | ) |
|
inline |

| std::string oms::Scope::getWorkingDirectory | ( | ) |

| oms_status_enu_t oms::Scope::importModel | ( | const std::string & | filename, |
| char ** | cref | ||
| ) |


| oms_status_enu_t oms::Scope::importSnapshot | ( | const ComRef & | cref, |
| const char * | snapshot, | ||
| char ** | newCref | ||
| ) |


| oms_status_enu_t oms::Scope::loadSnapshot | ( | const ComRef & | cref, |
| const char * | snapshot, | ||
| char ** | newCref | ||
| ) |


|
staticprotected |


| oms::Model * oms::Scope::newModel | ( | const ComRef & | cref | ) |


| oms_status_enu_t oms::Scope::renameModel | ( | const ComRef & | cref, |
| const ComRef & | newCref | ||
| ) |


| oms_status_enu_t oms::Scope::setTempDirectory | ( | const std::string & | newTempDir | ) |


| oms_status_enu_t oms::Scope::setWorkingDirectory | ( | const std::string & | newWorkingDir | ) |


|
private |
last element is always NULL
|
private |
|
private |
1.8.13