Loader Class Reference

Load LTMs into WM. More...

#include <RobotAPI/libraries/armem/client/Loader.h>

Public Member Functions

 Loader (const Loader &)=default
 Construct a memory reader.
 
 Loader (server::LoadingMemoryInterfacePrx loadingMemory=nullptr)
 
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 CoreSegments)
 
void loadLTMintoWM (bool complete=true)
 Loads all entries of potential multiple ltms into the wm (i.e.
 
 operator bool () const
 
void setLoadingMemory (server::LoadingMemoryInterfacePrx configuringMemory)
 

Public Attributes

server::LoadingMemoryInterfacePrx loadingPrx
 

Detailed Description

Load LTMs into WM.

Definition at line 11 of file Loader.h.

Constructor & Destructor Documentation

◆ Loader() [1/2]

Loader ( const Loader & )
default

Construct a memory reader.

Parameters
memoryThe memory proxy.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Loader() [2/2]

Loader ( server::LoadingMemoryInterfacePrx loadingMemory = nullptr)
inline

Definition at line 21 of file Loader.h.

Member Function Documentation

◆ loadExportIntoWM()

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 CoreSegments)

This function loads an LTM specified by export_path and memoryName into the current WM. It handles if the path is not a correct LTM export. If you do this multiple times the LTM is always appended to the WM ,meaning you can load several LTM exports into the same WM. This does not exclude the maxHistory size from working! If you load to much snapshots they will still be discarded.

Parameters
export_pathpath to the export folder (needs to be a string with '/' as delimiter)
memoryNamename of the memory server (e.g. 'Object', 'Skill')
coreSegmentName(not yet supported)
addNonExistingCoreSegments(not yet supported)
amountOfSnapshotsPerSegmentToLoad(not yet supported)
Returns
bool true if everything worked fine, false if some error arose permitting the LTM to be loaded

Definition at line 18 of file Loader.cpp.

◆ loadLTMintoWM()

void loadLTMintoWM ( bool complete = true)

Loads all entries of potential multiple ltms into the wm (i.e.

if a RedundantPersistenceStrategy is used with multiple strategies inside)

Definition at line 10 of file Loader.cpp.

◆ operator bool()

operator bool ( ) const
inline

Definition at line 55 of file Loader.h.

◆ setLoadingMemory()

void setLoadingMemory ( server::LoadingMemoryInterfacePrx configuringMemory)

Member Data Documentation

◆ loadingPrx

server::LoadingMemoryInterfacePrx loadingPrx

Definition at line 62 of file Loader.h.


The documentation for this class was generated from the following files: