Go to the documentation of this file. 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){
43 std::ostream&
operator <<(std::ostream& stream,
const Header& h);
44 std::ostream&
operator <<(std::ostream& stream,
const Frame& f);
FilteredFrameListener::FilterVector tofilters(const T &v)
std::string tostring(const Header &h, bool lc)
FrameFilterSharedPtr tofilter(const T &ct)
std::ostream & operator<<(std::ostream &stream, const Header &h)
bool dec2hex(char &h, const uint8_t &d, bool lc)
std::string byte2hex(const uint8_t &d, bool pad, bool lc)
std::vector< FrameFilterSharedPtr > FilterVector
std::string buffer2hex(const std::string &in, bool lc)
Header toheader(const std::string &s)
std::shared_ptr< FrameFilter > FrameFilterSharedPtr
bool hex2dec(uint8_t &d, const char &h)
Frame toframe(const std::string &s)
bool hex2buffer(std::string &out, const std::string &in_raw, bool pad)