|
pocolog_cpp
|
#include <Write.hpp>
Public Member Functions | |
| StreamWriter (std::string const &name, std::string const &type_name, std::vector< StreamMetadata > const &metadata, Output &file) | |
| StreamWriter (std::string const &name, std::string const &type_name, Typelib::Registry const &type_def, std::vector< StreamMetadata > const &metadata, Output &file) | |
| void | registerStream () |
| void | setSampling (base::Time const &period) |
| bool | writeSampleHeader (const base::Time ×tamp, uint32_t payload_size) |
| std::ostream & | getStream () |
The objects of this class can be used to easily log samples for a given stream.
| pocolog_cpp::StreamWriter::StreamWriter | ( | std::string const & | name, |
| std::string const & | type_name, | ||
| std::vector< StreamMetadata > const & | metadata, | ||
| Output & | file | ||
| ) |
Create a new logger, with no type definition
This logger will define a new named stream in stream, but without saving the type definition as the other constructor would.
| pocolog_cpp::StreamWriter::StreamWriter | ( | std::string const & | name, |
| std::string const & | type_name, | ||
| Typelib::Registry const & | type_def, | ||
| std::vector< StreamMetadata > const & | metadata, | ||
| Output & | file | ||
| ) |
Create a new logger, with type definition
This logger will define a new named stream in stream, in which a type definition string is saved, allowing to re-read the log file without having to care about the type definition and (possible) type changes.
| std::ostream & pocolog_cpp::StreamWriter::getStream | ( | ) |
| void pocolog_cpp::StreamWriter::registerStream | ( | ) |
Registers the sample stream in the output file
| void pocolog_cpp::StreamWriter::setSampling | ( | base::Time const & | period | ) |
Sets the sampling period. It is used in update() to filter out samples that are too near from each other
| bool pocolog_cpp::StreamWriter::writeSampleHeader | ( | const base::Time & | timestamp, |
| uint32_t | payload_size | ||
| ) |
1.8.6