#include <ReplayFeatureContainer.h>
Inheritance diagram for ReplayFeatureContainer:
Public Member Functions | |
ReplayFeatureContainer (ConfigReader *config) | |
virtual | ~ReplayFeatureContainer () |
virtual void | nextSample () |
virtual const featurevector * | getSampleVector () const |
void | resetFile () |
long | getFilesize () |
long | getCurrentPos () |
Related Functions | |
(Note that these are not member functions.) | |
string | serializeFeatureVector (const featurevector &samples) |
size_t | unserializeFeatureVector (const featurevector &features, featurevector &samples, char *data) |
|
Constructor Replays any transactions stored in the logfile from a LoggingFeatureContainer.
|
|
Destructor |
|
Get log file handle position |
|
Get log file size |
|
Get sample vector A sample vector contains pointers to implementations of the specific features, with values representing the current sensor values. For performance reasons (since this method can be called by multiple callers in the same time step for retrieving the current feature values), this method returns a pointer to a globally allocated object. Callers must not free or modify either the returned vector reference or the feature implementations contained therein.
Reimplemented from FeatureContainer. |
|
Reimplemented from FeatureContainer. |
|
Reset log file handle position |
|
These are just two helper functions for serializing and deserializing a whole feature vector just returns, for a given feature vector, the serialized, correctly escaped form with ';' as delimiter |
|
parameters: features must contain all _features_ that will be unserialized from data, while samples must be empty as this method will fill it with newly created Feature objects of the correct type (by cloning them from the objects in features) beware that data will be changed by this method ! returns the number of characters processed from dat |