Loader.cpp
Go to the documentation of this file.
1#include "Loader.h"
2
4
6
8{
9 void
10 Loader::loadLTMintoWM(bool complete)
11 {
12 ARMARX_IMPORTANT << "Load LTM into WM (LoaderPrx) full=" << complete;
13
14 loadingPrx->loadLTMintoWM(complete);
15 }
16
17 bool
18 Loader::loadExportIntoWM(std::string export_path,
19 std::string memoryName,
20 std::vector<std::string> coreSegmentNames,
21 bool addNonExistingCoreSegments,
22 int amountOfSnapshotsPerSegmentToLoad)
23 {
24 ARMARX_IMPORTANT << "Load export into WM (LoaderPrx)";
25 ARMARX_INFO << VAROUT(export_path);
26 ARMARX_INFO << VAROUT(memoryName);
27 ARMARX_INFO << VAROUT(coreSegmentNames);
28 ARMARX_INFO << VAROUT(addNonExistingCoreSegments);
29 ARMARX_INFO << VAROUT(amountOfSnapshotsPerSegmentToLoad);
30
31
32 loadingPrx->loadExportIntoWM(export_path,
33 memoryName,
34 coreSegmentNames,
35 addNonExistingCoreSegments,
36 amountOfSnapshotsPerSegmentToLoad);
37 return true;
38 }
39} // namespace armarx::armem::client
#define VAROUT(x)
bool loadExportIntoWM(std::string export_path, std::string memoryName, std::vector< std::string > coreSegmentNames, bool addNonExistingCoreSegments, int amountOfSnapshotsPerSegmentToLoad)
loads data from a specified LTM export into the currently running WM (needs to already have the CoreS...
Definition Loader.cpp:18
server::LoadingMemoryInterfacePrx loadingPrx
Definition Loader.h:62
void loadLTMintoWM(bool complete=true)
Loads all entries of potential multiple ltms into the wm (i.e.
Definition Loader.cpp:10
#define ARMARX_INFO
The normal logging level.
Definition Logging.h:181
#define ARMARX_IMPORTANT
The logging level for always important information, but expected behaviour (in contrast to ARMARX_WAR...
Definition Logging.h:190
This file is part of ArmarX.