#include <tCanMessageMetaDumper.h>
Public Member Functions | |
void | close () |
bool | constructXmlFile () |
void | open (const std::string identifier="", const int baudrate=0) |
tCanMessageMetaDumper () | |
~tCanMessageMetaDumper () | |
Protected Member Functions | |
const boost::filesystem::path & | getDataFileName () const |
int | prepareFile () |
void | setDataFileName (const boost::filesystem::path &file_name) |
Private Attributes | |
unsigned int | m_baudrate |
std::ifstream | m_data_file |
boost::filesystem::path * | m_data_file_name |
Static Private Attributes | |
static const short | m_major_fileversion = 1 |
static const short | m_minor_fileversion = 2 |
Definition at line 50 of file tCanMessageMetaDumper.h.
Definition at line 46 of file tCanMessageMetaDumper.cpp.
Definition at line 53 of file tCanMessageMetaDumper.cpp.
Definition at line 89 of file tCanMessageMetaDumper.cpp.
build the construct of a xml-can-file and outputs it to the console
This function reads through a file and outputs a block of meta-data for specific number of lines this number is declared by the given baudrate It returns false if no lines where read otherwise true
< do the first commit at line 1, line 0 is the header
Definition at line 104 of file tCanMessageMetaDumper.cpp.
const boost::filesystem::path & icl_hardware::can::tCanMessageMetaDumper::getDataFileName | ( | ) | const [protected] |
Definition at line 187 of file tCanMessageMetaDumper.cpp.
void icl_hardware::can::tCanMessageMetaDumper::open | ( | const std::string | identifier = "" , |
const int | baudrate = 0 |
||
) |
gets the path to a can-file
Definition at line 58 of file tCanMessageMetaDumper.cpp.
int icl_hardware::can::tCanMessageMetaDumper::prepareFile | ( | ) | [protected] |
Definition at line 166 of file tCanMessageMetaDumper.cpp.
void icl_hardware::can::tCanMessageMetaDumper::setDataFileName | ( | const boost::filesystem::path & | file_name | ) | [protected] |
Definition at line 178 of file tCanMessageMetaDumper.cpp.
unsigned int icl_hardware::can::tCanMessageMetaDumper::m_baudrate [private] |
Definition at line 74 of file tCanMessageMetaDumper.h.
std::ifstream icl_hardware::can::tCanMessageMetaDumper::m_data_file [private] |
Definition at line 75 of file tCanMessageMetaDumper.h.
boost::filesystem::path* icl_hardware::can::tCanMessageMetaDumper::m_data_file_name [private] |
Definition at line 76 of file tCanMessageMetaDumper.h.
const short icl_hardware::can::tCanMessageMetaDumper::m_major_fileversion = 1 [static, private] |
Definition at line 78 of file tCanMessageMetaDumper.h.
const short icl_hardware::can::tCanMessageMetaDumper::m_minor_fileversion = 2 [static, private] |
Definition at line 79 of file tCanMessageMetaDumper.h.