23 #ifndef ICL_HARDWARE_CAN_SOURCE_HARDWARE_CAN_SOURCE_CAN_FILE_H_INCLUDED 24 #define ICL_HARDWARE_CAN_SOURCE_HARDWARE_CAN_SOURCE_CAN_FILE_H_INCLUDED 28 #include <boost/date_time/posix_time/posix_time.hpp> 31 #include <icl_sourcesink/KeyframePositionResolver.h> 60 typedef boost::shared_ptr<HardwareCanSourceCanfile>
Ptr;
62 typedef boost::shared_ptr<const HardwareCanSourceCanfile>
ConstPtr;
67 using namespace icl_sourcesink;
73 "Reads tCanMessage data from FZI CAN files.",
74 "can+file:<filepath>[#start-end]",
75 "<filepath> File to read.")));
92 const std::string& name =
"HardwareCanSourceCanfile");
97 friend class icl_sourcesink::SourceSinkManager;
103 virtual bool seekImpl(
const icl_sourcesink::InternalIndex internal_index);
106 virtual bool advance();
icl_sourcesink::DataSource< tCanMessage > HardwareCanSource
Base type for all sources providing tCanMessage data.
boost::shared_ptr< const HardwareCanSourceCanfile > ConstPtr
Const shared pointer shorthand.
#define ICL_HARDWARE_CAN_SOURCE_IMPORT_EXPORT
std::size_t m_sequence_number
Ever-increasing sequence number.
boost::shared_ptr< Stamped< DataType > > Ptr
CanMessageStamped::Ptr m_buffer
Buffers the current data element.
static icl_sourcesink::URISchemeMap supportedURISchemes()
URI schemes supported by this source.
virtual bool isSeekable() const
This source works on CAN files and is therefore seekable.
icl_sourcesink::KeyframePositionResolver::Ptr m_resolver_x
boost::shared_ptr< CanFileResolutionHelper > Ptr
Convenience shared pointer shorthand.
CanFileResolutionHelper::Ptr m_resolution_helper
Our own resolution helper.
boost::shared_ptr< HardwareCanSourceCanfile > Ptr
Shared pointer shorthand.