25 #ifndef ICL_HARDWARE_CAN_SINK_HARDWARE_CAN_SINK_CANFILE_H_INCLUDED 26 #define ICL_HARDWARE_CAN_SINK_HARDWARE_CAN_SINK_CANFILE_H_INCLUDED 28 #include <icl_sourcesink/DataSinkRegistration.h> 35 #include <boost/filesystem.hpp> 54 typedef boost::shared_ptr<HardwareCanSinkCanfile>
Ptr;
56 typedef boost::shared_ptr<const HardwareCanSinkCanfile>
ConstPtr;
60 using namespace icl_sourcesink;
66 "Writes CAN message data to a file, using the FZI CAN file format.",
67 "can+file:<path>[?container_size=<container_size>]",
68 "<path> Path to the CAN file. A .can suffix is added if not yet\n" 70 "<container_size> Number of messages to buffer before writing out to disk\n" 78 const std::string& name =
"UnnamedHardwareCanSinkCanfile");
113 static const short cMAJOR_FILEVERSION = 1;
115 static const short cMINOR_FILEVERSION = 2;
icl_sourcesink::DataSink< tCanMessage > HardwareCanSink
Base type for all sinks providing tCanMessage data.
std::vector< CanMessageStamped::ConstPtr > m_msg_container
std::size_t m_msg_container_size
boost::posix_time::ptime m_last_msg_time
Timestamp of the last processed message.
std::ofstream m_data_file
CAN data file stream.
boost::shared_ptr< Stamped< DataType > > Ptr
#define ICL_HARDWARE_CAN_SINK_IMPORT_EXPORT
boost::posix_time::time_duration m_commit_timediff
boost::posix_time::ptime m_last_commit_time
Time at which the last message was committed to disk.
boost::shared_ptr< HardwareCanSinkCanfile > Ptr
Shared pointer shorthand.
static icl_sourcesink::URISchemeMap supportedURISchemes()
boost::shared_ptr< const HardwareCanSinkCanfile > ConstPtr
Const shared pointer shorthand.