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

00001 #ifndef GBXSERIALDEVICEACFR_PRINTUTIL_H
00002 #define GBXSERIALDEVICEACFR_PRINTUTIL_H
00003 
00004 #include <vector>
00005 #include <string>
00006 
00007 namespace gbxserialdeviceacfr {
00008 
00010 // Printing Functions
00012 
00013 // For printing binary data
00014 std::string toHexString( const char *buf, int bufLen );
00015 inline std::string toHexString( const std::vector<char> &buf )
00016 {return toHexString( &(buf[0]), buf.size() );}
00017 inline std::string toHexString( const std::string &buf )
00018 {return toHexString( &(buf[0]), buf.size() );}
00019 
00020 // For printing ascii data
00021 std::string toAsciiString( const char *buf, int bufLen );
00022 inline std::string toAsciiString( const std::vector<char> &buf )
00023 {return toAsciiString( &(buf[0]), buf.size() );}
00024 
00025 }
00026 
00027 #endif
 

Generated for GearBox by  doxygen 1.4.5