SimpleJsonLoggerEntry Class Reference

#include <RobotAPI/libraries/SimpleJsonLogger/SimpleJsonLoggerEntry.h>

Public Member Functions

void Add (const std::string &key, const std::map< std::string, float > &value)
 
void Add (const std::string &key, const std::string &value)
 
void Add (const std::string &key, const std::vector< float > &value)
 
void Add (const std::string &key, float value)
 
void AddAsArr (const std::string &key, const Eigen::Matrix4f &mat)
 
void AddAsArr (const std::string &key, const Eigen::Vector3f &vec)
 
void AddAsArr (const std::string &key, const Eigen::VectorXf &vec)
 
void AddAsObj (const std::string &key, const Eigen::Vector3f &vec)
 
void AddMatrix (const std::string &key, const Eigen::MatrixXf &mat)
 
void AddTimestamp ()
 
 SimpleJsonLoggerEntry ()
 

Static Public Member Functions

static JsonArrayPtr MatrixToArr (Eigen::MatrixXf mat)
 
static JsonArrayPtr ToArr (const Eigen::VectorXf &vec)
 
static JsonArrayPtr ToArr (const std::vector< float > &vec)
 
static JsonArrayPtr ToArr (Eigen::Matrix4f mat)
 
static JsonObjectPtr ToObj (const std::map< std::string, float > &value)
 
static JsonObjectPtr ToObj (Eigen::Vector3f vec)
 

Public Attributes

JsonObjectPtr obj
 

Detailed Description

Definition at line 35 of file SimpleJsonLoggerEntry.h.

Constructor & Destructor Documentation

◆ SimpleJsonLoggerEntry()

Definition at line 29 of file SimpleJsonLoggerEntry.cpp.

Member Function Documentation

◆ Add() [1/4]

void Add ( const std::string &  key,
const std::map< std::string, float > &  value 
)

Definition at line 74 of file SimpleJsonLoggerEntry.cpp.

+ Here is the call graph for this function:

◆ Add() [2/4]

void Add ( const std::string &  key,
const std::string &  value 
)

Definition at line 59 of file SimpleJsonLoggerEntry.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Add() [3/4]

void Add ( const std::string &  key,
const std::vector< float > &  value 
)

Definition at line 69 of file SimpleJsonLoggerEntry.cpp.

+ Here is the call graph for this function:

◆ Add() [4/4]

void Add ( const std::string &  key,
float  value 
)

Definition at line 64 of file SimpleJsonLoggerEntry.cpp.

+ Here is the call graph for this function:

◆ AddAsArr() [1/3]

void AddAsArr ( const std::string &  key,
const Eigen::Matrix4f &  mat 
)

Definition at line 49 of file SimpleJsonLoggerEntry.cpp.

+ Here is the call graph for this function:

◆ AddAsArr() [2/3]

void AddAsArr ( const std::string &  key,
const Eigen::Vector3f &  vec 
)

Definition at line 34 of file SimpleJsonLoggerEntry.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddAsArr() [3/3]

void AddAsArr ( const std::string &  key,
const Eigen::VectorXf &  vec 
)

Definition at line 39 of file SimpleJsonLoggerEntry.cpp.

+ Here is the call graph for this function:

◆ AddAsObj()

void AddAsObj ( const std::string &  key,
const Eigen::Vector3f &  vec 
)

Definition at line 44 of file SimpleJsonLoggerEntry.cpp.

+ Here is the call graph for this function:

◆ AddMatrix()

void AddMatrix ( const std::string &  key,
const Eigen::MatrixXf &  mat 
)

Definition at line 54 of file SimpleJsonLoggerEntry.cpp.

+ Here is the call graph for this function:

◆ AddTimestamp()

void AddTimestamp ( )

Definition at line 170 of file SimpleJsonLoggerEntry.cpp.

+ Here is the call graph for this function:

◆ MatrixToArr()

JsonArrayPtr MatrixToArr ( Eigen::MatrixXf  mat)
static

Definition at line 155 of file SimpleJsonLoggerEntry.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ToArr() [1/3]

JsonArrayPtr ToArr ( const Eigen::VectorXf &  vec)
static

Definition at line 80 of file SimpleJsonLoggerEntry.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ToArr() [2/3]

JsonArrayPtr ToArr ( const std::vector< float > &  vec)
static

Definition at line 90 of file SimpleJsonLoggerEntry.cpp.

+ Here is the call graph for this function:

◆ ToArr() [3/3]

JsonArrayPtr ToArr ( Eigen::Matrix4f  mat)
static

Definition at line 119 of file SimpleJsonLoggerEntry.cpp.

+ Here is the call graph for this function:

◆ ToObj() [1/2]

JsonObjectPtr ToObj ( const std::map< std::string, float > &  value)
static

Definition at line 109 of file SimpleJsonLoggerEntry.cpp.

+ Here is the call graph for this function:

◆ ToObj() [2/2]

JsonObjectPtr ToObj ( Eigen::Vector3f  vec)
static

Definition at line 100 of file SimpleJsonLoggerEntry.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ obj

Definition at line 59 of file SimpleJsonLoggerEntry.h.


The documentation for this class was generated from the following files: