#include <logstatus.h>
Public Types | |
| typedef std::vector< std::string > | NameVector |
Public Member Functions | |
| LogStatus () | |
| virtual | ~LogStatus () |
| const LogStateEnumeration & | GetStateEnum () const |
| Get the state enum. | |
| void | SetStateEnum (const LogStateEnumeration &newStateEnum) |
| Set the state enum. | |
| double | GetCurrentSimTime () const |
| Gets the current simulation time as believed by the server component (as opposed to real time). | |
| void | SetCurrentSimTime (double newCurrentSimTime) |
| Sets the current simulation time as believed by the server component (as opposed to real time). | |
| const NameVector & | GetActiveMaps () const |
| Gets the map name list that was active when this status was created. | |
| void | SetActiveMaps (const NameVector &newActiveMap) |
| Sets the active map names. | |
| const std::string & | GetLogFile () const |
| Gets the log file. | |
| void | SetLogFile (const std::string &newLogFile) |
| Sets the log file. | |
| double | GetAutoRecordKeyframeInterval () const |
| Gets the auto record keyframe interval. | |
| void | SetAutoRecordKeyframeInterval (double newAutoRecordKeyframeInterval) |
| Sets the auto record keyframe interval. | |
| double | GetCurrentRecordDuration () const |
| Sets the length (in seconds) of the current recording. | |
| void | SetCurrentRecordDuration (double newCurrentRecordDuration) |
| Sets the length (in seconds) of the current recording. | |
| unsigned long | GetNumMessages () const |
| Gets the number of messages that have been processed/sent by the server logger component. | |
| void | SetNumMessages (unsigned long numMessages) |
| Sets the number of messages that have been processed/sent by the server logger component. | |
Friends | |
| std::ostream & | operator<< (std::ostream &stream, const LogStatus &me) |
| Prints the log status to a stream. | |
This class has a copy constructor plus the = operator.
| typedef std::vector<std::string> dtGame::LogStatus::NameVector |
| dtGame::LogStatus::LogStatus | ( | ) |
| virtual dtGame::LogStatus::~LogStatus | ( | ) | [inline, virtual] |
| const LogStateEnumeration& dtGame::LogStatus::GetStateEnum | ( | ) | const [inline] |
Get the state enum.
This indicates the server logger component's recording/playback/idle state.
| void dtGame::LogStatus::SetStateEnum | ( | const LogStateEnumeration & | newStateEnum | ) | [inline] |
Set the state enum.
This is typically set by the server and indicates the server logger components state.
| newStateEnum | the new state. |
| double dtGame::LogStatus::GetCurrentSimTime | ( | ) | const [inline] |
Gets the current simulation time as believed by the server component (as opposed to real time).
| void dtGame::LogStatus::SetCurrentSimTime | ( | double | newCurrentSimTime | ) | [inline] |
Sets the current simulation time as believed by the server component (as opposed to real time).
| The | new simulation time stamp (as opposed to real time) |
| const NameVector& dtGame::LogStatus::GetActiveMaps | ( | ) | const [inline] |
Gets the map name list that was active when this status was created.
| void dtGame::LogStatus::SetActiveMaps | ( | const NameVector & | newActiveMap | ) |
Sets the active map names.
| The | map name |
| const std::string& dtGame::LogStatus::GetLogFile | ( | ) | const [inline] |
Gets the log file.
| void dtGame::LogStatus::SetLogFile | ( | const std::string & | newLogFile | ) | [inline] |
Sets the log file.
| The | new log file |
| double dtGame::LogStatus::GetAutoRecordKeyframeInterval | ( | ) | const [inline] |
Gets the auto record keyframe interval.
0 indicates no automatic interval. Any non-0 means that the server will attempt to make a keyframe every X seconds. Only the server should set this value.
| void dtGame::LogStatus::SetAutoRecordKeyframeInterval | ( | double | newAutoRecordKeyframeInterval | ) | [inline] |
Sets the auto record keyframe interval.
0 indicates no automatic interval. Any non-0 means that the server will attempt to make a keyframe every X seconds. Only the server should set this value.
| The | new auto record keyframe interval (in seconds) |
| double dtGame::LogStatus::GetCurrentRecordDuration | ( | ) | const [inline] |
Sets the length (in seconds) of the current recording.
This should only be non-zero during a record session. This should ONLY be set by the server log component.
| void dtGame::LogStatus::SetCurrentRecordDuration | ( | double | newCurrentRecordDuration | ) | [inline] |
Sets the length (in seconds) of the current recording.
This should only be non-zero during a record session. This should ONLY be set by the server log component.
| The | length of the current record (in seconds). |
| unsigned long dtGame::LogStatus::GetNumMessages | ( | ) | const [inline] |
Gets the number of messages that have been processed/sent by the server logger component.
| void dtGame::LogStatus::SetNumMessages | ( | unsigned long | numMessages | ) | [inline] |
Sets the number of messages that have been processed/sent by the server logger component.
This should only be set by the server logger component itself.
| numMessages | The number of messages. |
| std::ostream& operator<< | ( | std::ostream & | stream, | |
| const LogStatus & | me | |||
| ) | [friend] |
Prints the log status to a stream.
| stream | Standard stream | |
| me | The log status object to print. |