tCanMessageMetaDumper.h
Go to the documentation of this file.
1 // -- BEGIN LICENSE BLOCK ----------------------------------------------
2 // This file is part of FZIs ic_workspace.
3 //
4 // This program is free software licensed under the LGPL
5 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
6 // You can find a copy of this license in LICENSE folder in the top
7 // directory of the source code.
8 //
9 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
10 //
11 // -- END LICENSE BLOCK ------------------------------------------------
12 
13 // ----------------------------------------------------------
14 /*
15  * tCanMessageMetaDumper.h
16  * <section>
17  *
18  * Created by Hugo Ritzkowski on 24.01.2012.
19  * Copyright 2012
20  * Company Forschungszentrum Informatik (FZI), Abteilung IDS.
21  * All rights reserved.
22  *
23  */
24 // ----------------------------------------------------------
35 // ----------------------------------------------------------
36 
37 #ifndef tCanMessageDumper_h
38 #define tCanMessageDumper_h
39 
40 #include "ImportExport.h"
41 
42 #include <boost/filesystem.hpp>
43 #include <fstream>
44 #include <iostream>
45 
46 namespace icl_hardware {
47 
48 namespace can {
49 
51 {
52 public:
53 
55 
57 
59  void open(const std::string identifier = "", const int baudrate = 0);
60 
61  void close();
62 
64  bool constructXmlFile();
65 
66 protected:
67 
68  int prepareFile();
69  void setDataFileName(const boost::filesystem::path &file_name);
70  const boost::filesystem::path & getDataFileName() const;
71 
72 private:
73 
74  unsigned int m_baudrate;
75  std::ifstream m_data_file;
76  boost::filesystem::path *m_data_file_name;
77 
78  static const short m_major_fileversion = 1;
79  static const short m_minor_fileversion = 2;
80 
81 };
82 
83 }
84 
85 }
86 
87 #endif // tCanMessageDumper_h
ICL_HARDWARE_CAN_IMPORT_EXPORT ICL_HARDWARE_CAN_IMPORT_EXPORT
Definition: Logging.h:36
Contains import/export definitions for the Win32 plattform.


fzi_icl_can
Author(s):
autogenerated on Mon Jun 10 2019 13:17:02