tCanMessageMetaDumper.h
Go to the documentation of this file.
00001 // -- BEGIN LICENSE BLOCK ----------------------------------------------
00002 // This file is part of FZIs ic_workspace.
00003 //
00004 // This program is free software licensed under the LGPL
00005 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
00006 // You can find a copy of this license in LICENSE folder in the top
00007 // directory of the source code.
00008 //
00009 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
00010 //
00011 // -- END LICENSE BLOCK ------------------------------------------------
00012 
00013 // ----------------------------------------------------------
00014 /*
00015  * tCanMessageMetaDumper.h
00016  * <section>
00017  *
00018  * Created by Hugo Ritzkowski on 24.01.2012.
00019  * Copyright 2012
00020  * Company Forschungszentrum Informatik (FZI), Abteilung IDS.
00021  * All rights reserved.
00022  *
00023  */
00024 // ----------------------------------------------------------
00035 // ----------------------------------------------------------
00036 
00037 #ifndef tCanMessageDumper_h
00038 #define tCanMessageDumper_h
00039 
00040 #include "ImportExport.h"
00041 
00042 #include <boost/filesystem.hpp>
00043 #include <fstream>
00044 #include <iostream>
00045 
00046 namespace icl_hardware {
00047 
00048 namespace can {
00049 
00050 class ICL_HARDWARE_CAN_IMPORT_EXPORT tCanMessageMetaDumper
00051 {
00052 public:
00053 
00054     tCanMessageMetaDumper();
00055 
00056     ~tCanMessageMetaDumper();
00057 
00059     void open(const std::string identifier = "", const int baudrate = 0);
00060 
00061     void close();
00062 
00064     bool constructXmlFile();
00065 
00066 protected:
00067 
00068     int prepareFile();
00069     void setDataFileName(const boost::filesystem::path &file_name);
00070     const boost::filesystem::path & getDataFileName() const;
00071 
00072 private:
00073 
00074     unsigned int m_baudrate;
00075     std::ifstream m_data_file;
00076     boost::filesystem::path *m_data_file_name;
00077 
00078     static const short m_major_fileversion = 1;
00079     static const short m_minor_fileversion = 2;
00080 
00081 };
00082 
00083 }
00084 
00085 }
00086 
00087 #endif // tCanMessageDumper_h


fzi_icl_can
Author(s):
autogenerated on Thu Jun 6 2019 20:26:01