#include <FileModule.h>
Inheritance diagram for ot::FileModule:


Public Member Functions | |
| FileModule () | |
| virtual | ~FileModule () |
| virtual void | init (StringTable &attributes, ConfigNode *localTree) |
| virtual Node * | createNode (const std::string &name, StringTable &attributes) |
| virtual void | pushEvent () |
| virtual void | close () |
Protected Attributes | |
| std::map< std::string, NodeVector > | nodes |
| map of name to list of either FileSink or FileSource nodes | |
| std::map< std::string, File * > | files |
| map of name to File objects | |
| std::list< FileSource * > | sources |
| list of file sources | |
| bool | append |
| flag whether output files should be appended to or not | |
| bool | loop |
| flag whether to loop input files or not | |
| double | interval |
| interval time between new events | |
| bool | ot11Format |
| flag whether to use OT v1.1 compatible file format (for testing purposes only) | |
| bool | realtime |
| flag whether to play back events in realtime | |
| double | lastTime |
| last timestamp | |
| Event | event |
| local event | |
| double | firstPlaybackTime |
| the time at which the first event was played back | |
| double | firstSavedEventTime |
| the time at which the first event was recorded | |
|
|
constructor method. initializes internal and static data such as the functionMap and keyMap tables. |
|
|
Destructor method, clears nodes member. |
|
|
Closes the files and cleans up data structures. Reimplemented from ot::Module. |
|
||||||||||||
|
This method is called to construct a new Node. It compares name to the FileSink or FileSource element name, and if it matches creates the necessary File and Node objects.
Implements ot::NodeFactory. |
|
||||||||||||
|
initializes the tracker module. This class provides an implementation that sets the initialization flag to true. Subclasses should call this method if they override this method. It takes the attributes of the element configuring this module and a local tree consisting of the children of the element. This tree must be build of Nodes.
Reimplemented from ot::Module. |
|
|
reads from the input files and fires new events, if necessary. Reimplemented from ot::Module. |
|
|
flag whether output files should be appended to or not
|
|
|
local event
|
|
|
map of name to File objects
|
|
|
the time at which the first event was played back
|
|
|
the time at which the first event was recorded
|
|
|
interval time between new events
|
|
|
last timestamp
|
|
|
flag whether to loop input files or not
|
|
|
map of name to list of either FileSink or FileSource nodes
|
|
|
flag whether to use OT v1.1 compatible file format (for testing purposes only)
|
|
|
flag whether to play back events in realtime
|
|
|
list of file sources
|
1.4.6