A singleton for managing TerraLib Virtual Machines.
More...
#include <VirtualMachineManager.h>
A singleton for managing TerraLib Virtual Machines.
- See also
- VirtualMachine
Definition at line 57 of file VirtualMachineManager.h.
te::vm::core::VirtualMachineManager::VirtualMachineManager |
( |
| ) |
|
|
private |
te::vm::core::VirtualMachineManager::~VirtualMachineManager |
( |
| ) |
|
|
private |
void te::vm::core::VirtualMachineManager::clear |
( |
| ) |
|
void te::vm::core::VirtualMachineManager::erase |
( |
const std::string & |
id | ) |
|
It removes a given virtual machine.
- Parameters
-
- Exceptions
-
VirtualMachine* te::vm::core::VirtualMachineManager::get |
( |
const std::string & |
id | ) |
const |
It returns the VM identified by id.
- Parameters
-
id | The VM identifier. Example: lua, python. |
- Returns
- A pointer to a VM managed by this singleton.
- Exceptions
-
void te::vm::core::VirtualMachineManager::insert |
( |
const std::string & |
id, |
|
|
std::unique_ptr< VirtualMachine > |
vm |
|
) |
| |
It adds a new VM to be managed.
- Parameters
-
id | The VM id. |
lvm | The VM to be managed. The singleton will take the VM ownership. |
- Exceptions
-
Return a reference to the singleton.
Impl* te::vm::core::VirtualMachineManager::m_pimpl |
|
private |
The documentation for this class was generated from the following file: