INTRODUCTION
Overview
Download and Install
Documentation
Publications

REPOSITORY
Libraries

DEVELOPER
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         
printutil.h
1 #ifndef GBXSERIALDEVICEACFR_PRINTUTIL_H
2 #define GBXSERIALDEVICEACFR_PRINTUTIL_H
3 
4 #include <vector>
5 #include <string>
6 
7 namespace gbxserialdeviceacfr {
8 
10 // Printing Functions
12 
13 // For printing binary data
14 std::string toHexString( const char *buf, int bufLen );
15 inline std::string toHexString( const std::vector<char> &buf )
16 {return toHexString( &(buf[0]), buf.size() );}
17 inline std::string toHexString( const std::string &buf )
18 {return toHexString( &(buf[0]), buf.size() );}
19 
20 // For printing ascii data
21 std::string toAsciiString( const char *buf, int bufLen );
22 inline std::string toAsciiString( const std::vector<char> &buf )
23 {return toAsciiString( &(buf[0]), buf.size() );}
24 
25 }
26 
27 #endif
Definition: printutil.cpp:8
 

Generated for GearBox by  doxygen 1.4.5