string.h
Go to the documentation of this file.
00001 #ifndef SOCKETCAN_INTERFACE_STRING_H
00002 #define SOCKETCAN_INTERFACE_STRING_H
00003 
00004 #include "interface.h"
00005 #include <sstream>
00006 
00007 namespace can{
00008 
00009 bool hex2dec(uint8_t& d, const char& h);
00010 
00011 bool hex2buffer(std::string& out, const std::string& in_raw, bool pad);
00012 
00013 bool dec2hex(char& h, const uint8_t& d, bool lc);
00014 
00015 std::string byte2hex(const uint8_t& d, bool pad, bool lc);
00016 
00017 
00018 std::string buffer2hex(const std::string& in, bool lc);
00019 
00020 std::string tostring(const Header& h, bool lc);
00021 
00022 Header toheader(const std::string& s);
00023 
00024 std::string tostring(const Frame& f, bool lc);
00025 
00026 Frame toframe(const std::string& s);
00027 
00028 }
00029 
00030 std::ostream& operator <<(std::ostream& stream, const can::Header& h);
00031 std::ostream& operator <<(std::ostream& stream, const can::Frame& f);
00032 
00033 #endif


socketcan_interface
Author(s): Mathias Lüdtke
autogenerated on Sun Sep 3 2017 03:10:38