23 #ifndef ICL_HARDWARE_CAN_SOURCE_CAN_FILE_RESOLUTION_HELPER_H_INCLUDED 24 #define ICL_HARDWARE_CAN_SOURCE_CAN_FILE_RESOLUTION_HELPER_H_INCLUDED 28 #include <boost/shared_ptr.hpp> 30 #include <icl_sourcesink/Position.h> 31 #include <icl_sourcesink/FileResolutionHelper.h> 41 typedef boost::shared_ptr<CanFileResolutionHelper>
Ptr;
43 typedef boost::shared_ptr<const CanFileResolutionHelper>
ConstPtr;
60 virtual icl_sourcesink::Position
current()
const 67 virtual std::ifstream::pos_type
size()
const 69 std::ifstream::pos_type curr =
m_file.tellg();
70 m_file.seekg(0, std::ios::end);
71 std::ifstream::pos_type result =
m_file.tellg();
76 virtual std::ifstream::pos_type
tellg()
const 81 virtual bool seekg(std::ifstream::pos_type position)
88 virtual bool seekg(std::ifstream::off_type offset, std::ios_base::seekdir direction)
91 m_file.seekg(offset, direction);
virtual std::ifstream::pos_type size() const
static boost::posix_time::ptime timestampToPtime(double stamp)
virtual bool good() const
virtual bool seekg(std::ifstream::off_type offset, std::ios_base::seekdir direction)
boost::shared_ptr< const CanFileResolutionHelper > ConstPtr
Convenience shared pointer shorthand (const version).
virtual std::ifstream::pos_type tellg() const
boost::shared_ptr< Stamped< DataType > > Ptr
unsigned __int64 uint64_t
CanFileResolutionHelper(const std::string &filename)
virtual CanFileResolutionHelper * clone() const
CanMessageStamped::Ptr m_current_message
boost::shared_ptr< CanFileResolutionHelper > Ptr
Convenience shared pointer shorthand.
CanMessageStamped::Ptr currentMessage() const
icl_sourcesink::Position m_current_position
virtual bool seekg(std::ifstream::pos_type position)
virtual icl_sourcesink::Position current() const
bool tryParse(const std::string &line, uint64_t current_pos)