1 #ifndef SOCKETCAN_INTERFACE_STRING_H 2 #define SOCKETCAN_INTERFACE_STRING_H 10 bool hex2dec(uint8_t& d,
const char& h);
12 bool hex2buffer(std::string& out,
const std::string& in_raw,
bool pad);
14 bool dec2hex(
char& h,
const uint8_t& d,
bool lc);
16 std::string
byte2hex(
const uint8_t& d,
bool pad,
bool lc);
19 std::string
buffer2hex(
const std::string& in,
bool lc);
21 std::string
tostring(
const Header& h,
bool lc);
23 Header
toheader(
const std::string& s);
25 std::string
tostring(
const Frame& f,
bool lc);
27 Frame
toframe(
const std::string& s);
37 for(
size_t i = 0; i < static_cast<size_t>(v.size()); ++i){
FilteredFrameListener::FilterVector tofilters(const T &v)
bool dec2hex(char &h, const uint8_t &d, bool lc)
std::string tostring(const Header &h, bool lc)
FrameFilterSharedPtr tofilter(const T &ct)
bool hex2dec(uint8_t &d, const char &h)
Header toheader(const std::string &s)
std::string buffer2hex(const std::string &in, bool lc)
Frame toframe(const std::string &s)
std::vector< FrameFilterSharedPtr > FilterVector
std::string byte2hex(const uint8_t &d, bool pad, bool lc)
std::ostream & operator<<(std::ostream &stream, const can::Header &h)
boost::shared_ptr< FrameFilter > FrameFilterSharedPtr
bool hex2buffer(std::string &out, const std::string &in_raw, bool pad)