Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
p6binhex.h
Go to the documentation of this file.
1 
10 #ifndef P6BINHEX_H__
11 #define P6BINHEX_H__ 1
12 
13 #include "p6com.h"
14 
15 namespace P6R {
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
29 const P6BINHEXFLAGS P6BINHEX_NOFLAGS = 0x00000000;
30 
31 
40 interface p6IBinhex : p6ICom
41 {
53  P6COMMETHOD initialize( P6BINHEXFLAGS flags ) = 0;
54 
77  P6COMMETHOD hex2bin( const P6CHAR* pHex,
78  P6UCHAR* pDecoded,
79  P6UINT32 cBuffer,
80  P6UINT32* pWritten ) = 0;
81 
104  P6COMMETHOD bin2hex( const P6UCHAR* pIn,
105  P6UINT32 inSize,
106  P6CHAR* pHex,
107  P6UINT32 cBuffer,
108  P6UINT32* pWritten ) = 0;
109 };
110 
111 
112 // {2871AEA4-C4CB-49f8-BF3B-B1FC634026A8}
113 #define IF_p6IBinhex {0x2871aea4,0xc4cb,0x49f8,{0xbf,0x3b,0xb1,0xfc,0x63,0x40,0x26,0xa8}}
114 
115 // {A9E89A74-144F-44c8-ACBA-25868897F261}
116 #define COMP_p6Binhex {0xa9e89a74,0x144f,0x44c8,{0xac,0xba,0x25,0x86,0x88,0x97,0xf2,0x61}}
117 
118 
119 #ifdef __cplusplus
120 }
121 #endif
122 
123 } // namespace
124 
125 #endif
126 
127 
128 
unsigned char P6UCHAR
Definition: p6types.h:74
unsigned int P6UINT32
Definition: p6types.h:40
const P6BINHEXFLAGS P6BINHEX_NOFLAGS
Definition: p6binhex.h:29
virtual P6R::P6ERR hex2bin(const P6CHAR *pHex, P6UCHAR *pDecoded, P6UINT32 cBuffer, P6UINT32 *pWritten)=0
This function converts a hexadecimal character string into a buffer of binary data.
virtual P6R::P6ERR initialize(P6BINHEXFLAGS flags)=0
This function ensures that this object is in its proper initial state.
The base interface all [p6]COM components must derive from and implement.
Definition: p6comdef.h:96
virtual P6R::P6ERR bin2hex(const P6UCHAR *pIn, P6UINT32 inSize, P6CHAR *pHex, P6UINT32 cBuffer, P6UINT32 *pWritten)=0
This function converts binary data into a hexadecimal character string format.
Standard p6Binhex block encoder and decoder.
Definition: p6binhex.h:40
#define P6COMMETHOD
Definition: p6types.h:872
P6UINT32 P6BINHEXFLAGS
P6BINHEXFLAGS.
Definition: p6binhex.h:28
P6COM definitions and interfaces.
char P6CHAR
Narrow character type.
Definition: p6types.h:71