INET Framework for OMNeT++/OMNEST
|
Singleton object to read and store BonnMotion files. More...
#include <BonnMotionFileCache.h>
Public Member Functions | |
virtual const BonnMotionFile * | getFile (const char *filename) |
Returns the given document. More... | |
Static Public Member Functions | |
static BonnMotionFileCache * | getInstance () |
Returns the singleton instance. More... | |
static void | deleteInstance () |
Deletes the singleton instance. More... | |
Protected Types | |
typedef std::map< std::string, BonnMotionFile > | BMFileMap |
Protected Member Functions | |
void | parseFile (const char *filename, BonnMotionFile &bmFile) |
BonnMotionFileCache () | |
virtual | ~BonnMotionFileCache () |
Protected Attributes | |
BMFileMap | cache |
Static Protected Attributes | |
static BonnMotionFileCache * | inst |
Singleton object to read and store BonnMotion files.
Used within BonnMotionMobility. Needed because otherwise every node would have to open and read the file independently.
|
protected |
|
static |
Deletes the singleton instance.
Referenced by inet::BonnMotionMobility::~BonnMotionMobility().
|
virtual |
Returns the given document.
Referenced by inet::BonnMotionMobility::initialize().
|
static |
Returns the singleton instance.
Referenced by inet::BonnMotionMobility::initialize().
|
protected |
|
protected |
|
staticprotected |
Referenced by inet::BonnMotionFile::getLine().