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
7namespace gbxserialdeviceacfr {
8
10// Printing Functions
12
13// For printing binary data
14std::string toHexString( const char *buf, int bufLen );
15inline std::string toHexString( const std::vector<char> &buf )
16{return toHexString( &(buf[0]), buf.size() );}
17inline std::string toHexString( const std::string &buf )
18{return toHexString( &(buf[0]), buf.size() );}
19
20// For printing ascii data
21std::string toAsciiString( const char *buf, int bufLen );
22inline std::string toAsciiString( const std::vector<char> &buf )
23{return toAsciiString( &(buf[0]), buf.size() );}
24
25}
26
27#endif
 

Generated for GearBox by  doxygen 1.4.5