gusimplewhiteboard
|
Provides a C++ wrapper around wb_data_logger
.
More...
#include <DataLogger.hpp>
Public Member Functions | |
DataLogger (std::string t_machineName="", uint32_t t_currentState=0, uint32_t t_currentSection=0, uint8_t t_dataSet=0, bool t_loggerRunning=false, bool t_shouldExit=false, std::string t_comment="") | |
Create a new DataLogger . More... | |
DataLogger (const DataLogger &t_other) | |
Copy Constructor. More... | |
DataLogger (const struct wb_data_logger &t_other) | |
Copy Constructor. More... | |
DataLogger & | operator= (const DataLogger &t_other) |
Copy Assignment Operator. More... | |
DataLogger & | operator= (const struct wb_data_logger &t_other) |
Copy Assignment Operator. More... | |
bool | operator== (const DataLogger &t_other) const |
bool | operator!= (const DataLogger &t_other) const |
bool | operator== (const wb_data_logger &t_other) const |
bool | operator!= (const wb_data_logger &t_other) const |
const char * | machineName () const |
size_t | machineName_size () const |
char & | machineName (int t_i) |
const char & | machineName (int t_i) const |
void | set_machineName (const char *t_newValue) |
uint32_t & | currentState () |
const uint32_t & | currentState () const |
void | set_currentState (const uint32_t &t_newValue) |
uint32_t & | currentSection () |
const uint32_t & | currentSection () const |
void | set_currentSection (const uint32_t &t_newValue) |
uint8_t & | dataSet () |
const uint8_t & | dataSet () const |
void | set_dataSet (const uint8_t &t_newValue) |
bool & | loggerRunning () |
const bool & | loggerRunning () const |
void | set_loggerRunning (const bool &t_newValue) |
bool & | shouldExit () |
const bool & | shouldExit () const |
void | set_shouldExit (const bool &t_newValue) |
const char * | comment () const |
size_t | comment_size () const |
char & | comment (int t_i) |
const char & | comment (int t_i) const |
void | set_comment (const char *t_newValue) |
DataLogger (const std::string &t_str) | |
String Constructor. More... | |
std::string | description () |
std::string | to_string () |
void | from_string (const std::string &t_str) |
Additional Inherited Members | |
Public Attributes inherited from wb_data_logger | |
char | machineName [40] |
Name of the machine being monitored, but could be anything. More... | |
uint32_t | currentState |
The machine's currently executing state (use integer rather than the state's name) More... | |
uint32_t | currentSection |
Section within the state (e.g. More... | |
uint8_t | dataSet |
Enables selection of a data set to be logged (default = 0, joints and sensors) (NYI) More... | |
bool | loggerRunning |
Starts/Stops logging. More... | |
bool | shouldExit |
Switch to cause DataLogger to exit. More... | |
char | comment [30] |
Comment to be attached to the logged data (NYI) More... | |
Provides a C++ wrapper around wb_data_logger
.
Definition at line 83 of file DataLogger.hpp.
|
inline |
|
inline |
Copy Constructor.
Definition at line 112 of file DataLogger.hpp.
References comment(), currentSection(), currentState(), dataSet(), loggerRunning(), machineName(), and shouldExit().
|
inline |
Copy Constructor.
Definition at line 119 of file DataLogger.hpp.
References wb_data_logger::comment, wb_data_logger::currentSection, wb_data_logger::currentState, wb_data_logger::dataSet, wb_data_logger::loggerRunning, wb_data_logger::machineName, and wb_data_logger::shouldExit.
|
inline |
|
inline |
Definition at line 265 of file DataLogger.hpp.
References wb_data_logger::comment.
Referenced by DataLogger(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 275 of file DataLogger.hpp.
References wb_data_logger::comment.
|
inline |
Definition at line 280 of file DataLogger.hpp.
References wb_data_logger::comment.
|
inline |
Definition at line 270 of file DataLogger.hpp.
|
inline |
Definition at line 205 of file DataLogger.hpp.
References wb_data_logger::currentSection.
Referenced by DataLogger(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 210 of file DataLogger.hpp.
References wb_data_logger::currentSection.
|
inline |
Definition at line 190 of file DataLogger.hpp.
References wb_data_logger::currentState.
Referenced by DataLogger(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 195 of file DataLogger.hpp.
References wb_data_logger::currentState.
|
inline |
Definition at line 220 of file DataLogger.hpp.
References wb_data_logger::dataSet.
Referenced by DataLogger(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 225 of file DataLogger.hpp.
References wb_data_logger::dataSet.
|
inline |
USE_WB_DATA_LOGGER_C_CONVERSION
Definition at line 299 of file DataLogger.hpp.
References comment(), currentSection(), currentState(), DATA_LOGGER_DESC_BUFFER_SIZE, dataSet(), loggerRunning(), machineName(), shouldExit(), and wb_data_logger_description().
|
inline |
USE_WB_DATA_LOGGER_C_CONVERSION
Definition at line 369 of file DataLogger.hpp.
References wb_data_logger::comment, DATA_LOGGER_DESC_BUFFER_SIZE, wb_data_logger::machineName, set_currentSection(), set_currentState(), set_dataSet(), set_loggerRunning(), and set_shouldExit().
Referenced by DataLogger().
|
inline |
Definition at line 235 of file DataLogger.hpp.
References wb_data_logger::loggerRunning.
Referenced by DataLogger(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 240 of file DataLogger.hpp.
References wb_data_logger::loggerRunning.
|
inline |
Definition at line 165 of file DataLogger.hpp.
References wb_data_logger::machineName.
Referenced by DataLogger(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 175 of file DataLogger.hpp.
References wb_data_logger::machineName.
|
inline |
Definition at line 180 of file DataLogger.hpp.
References wb_data_logger::machineName.
|
inline |
Definition at line 170 of file DataLogger.hpp.
|
inline |
Definition at line 150 of file DataLogger.hpp.
|
inline |
Definition at line 160 of file DataLogger.hpp.
|
inline |
Copy Assignment Operator.
Definition at line 126 of file DataLogger.hpp.
References comment(), currentSection(), currentState(), dataSet(), loggerRunning(), machineName(), and shouldExit().
|
inline |
Copy Assignment Operator.
Definition at line 134 of file DataLogger.hpp.
References wb_data_logger::comment, wb_data_logger::currentSection, wb_data_logger::currentState, wb_data_logger::dataSet, wb_data_logger::loggerRunning, wb_data_logger::machineName, and wb_data_logger::shouldExit.
|
inline |
Definition at line 139 of file DataLogger.hpp.
References comment(), currentSection(), currentState(), dataSet(), loggerRunning(), machineName(), and shouldExit().
|
inline |
Definition at line 155 of file DataLogger.hpp.
References DataLogger().
|
inline |
Definition at line 285 of file DataLogger.hpp.
References wb_data_logger::comment.
|
inline |
Definition at line 215 of file DataLogger.hpp.
References wb_data_logger::currentSection.
Referenced by from_string().
|
inline |
Definition at line 200 of file DataLogger.hpp.
References wb_data_logger::currentState.
Referenced by from_string().
|
inline |
Definition at line 230 of file DataLogger.hpp.
References wb_data_logger::dataSet.
Referenced by from_string().
|
inline |
Definition at line 245 of file DataLogger.hpp.
References wb_data_logger::loggerRunning.
Referenced by from_string().
|
inline |
Definition at line 185 of file DataLogger.hpp.
References wb_data_logger::machineName.
|
inline |
Definition at line 260 of file DataLogger.hpp.
References wb_data_logger::shouldExit.
Referenced by from_string().
|
inline |
Definition at line 250 of file DataLogger.hpp.
References wb_data_logger::shouldExit.
Referenced by DataLogger(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 255 of file DataLogger.hpp.
References wb_data_logger::shouldExit.
|
inline |
USE_WB_DATA_LOGGER_C_CONVERSION
Definition at line 332 of file DataLogger.hpp.
References comment(), currentSection(), currentState(), DATA_LOGGER_TO_STRING_BUFFER_SIZE, dataSet(), loggerRunning(), machineName(), shouldExit(), and wb_data_logger_to_string().