Log helper class.
More...
#include <LogRecordPrivate.hh>
gazebo::util::LogRecordPrivate::Log::Log |
( |
LogRecord * |
_parent, |
|
|
const std::string & |
_relativeFilename, |
|
|
std::function< bool(std::ostringstream &)> |
_logCB |
|
) |
| |
Constructor.
- Parameters
-
[in] | _parent | Pointer to the LogRecord parent. |
[in] | _relativeFilename | The name of the log file to generate, sans the complete path. |
[in] | _logCB | Callback function, which is used to get log data. |
virtual gazebo::util::LogRecordPrivate::Log::~Log |
( |
| ) |
|
|
virtual |
unsigned int gazebo::util::LogRecordPrivate::Log::BufferSize |
( |
| ) |
|
Get the byte size of the buffer.
- Returns
- Buffer byte size.
void gazebo::util::LogRecordPrivate::Log::ClearBuffer |
( |
| ) |
|
std::string gazebo::util::LogRecordPrivate::Log::CompleteFilename |
( |
| ) |
const |
Get the complete filename.
- Returns
- The complete filename.
std::string gazebo::util::LogRecordPrivate::Log::RelativeFilename |
( |
| ) |
const |
Get the relative filename.
This is the filename passed to the constructor.
- Returns
- The relative filename.
void gazebo::util::LogRecordPrivate::Log::Start |
( |
const boost::filesystem::path & |
_path | ) |
|
Start the log.
- Parameters
-
[in] | _path | The complete path in which to put the log file. |
void gazebo::util::LogRecordPrivate::Log::Stop |
( |
| ) |
|
unsigned int gazebo::util::LogRecordPrivate::Log::Update |
( |
| ) |
|
Update the data buffer.
- Returns
- The size of the data buffer.
void gazebo::util::LogRecordPrivate::Log::Write |
( |
| ) |
|
std::string gazebo::util::LogRecordPrivate::Log::buffer |
boost::filesystem::path gazebo::util::LogRecordPrivate::Log::completePath |
std::function<bool (std::ostringstream &)> gazebo::util::LogRecordPrivate::Log::logCB |
Callback from which to get data.
std::ofstream gazebo::util::LogRecordPrivate::Log::logFile |
LogRecord* gazebo::util::LogRecordPrivate::Log::parent |
Pointer to the log record parent.
std::string gazebo::util::LogRecordPrivate::Log::relativeFilename |
The documentation for this class was generated from the following file: