#include <envirext.h>
Inheritance diagram for cSnapshotManager:
cSnapshotManagers are plugins into the Envir user interface library (src/envir) that provide an output stream into which snapshots are written (see cSimulation::snapshot()).
The default output snapshot manager is cFileSnapshotManager, defined in the Envir library.
To create your own snaphot manager class, subclass cSnapshotManager, register your new class with the Register_Class() macro, then select it by adding the following to omnetpp.ini
:
[General] snapshotmanager-class="MyClass"
Public Member Functions | |
Constructor, destructor | |
cSnapshotManager () | |
virtual | ~cSnapshotManager () |
Controlling the beginning and end of collecting data. | |
virtual void | startRun ()=0 |
virtual void | endRun ()=0 |
Snapshot management | |
virtual std::ostream * | getStreamForSnapshot ()=0 |
virtual void | releaseStreamForSnapshot (std::ostream *os)=0 |
virtual const char * | fileName () const =0 |
|
Constructor.
|
|
Destructor.
|
|
Called at the end of a simulation run.
|
|
Returns the snapshot file name. Returns NULL if this object is not producing file output. |
|
Returns a stream where a snapshot can be written.
|
|
Releases a stream after a snapshot was written.
|
|
Called at the beginning of a simulation run.
|