Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
p6crc32.h
Go to the documentation of this file.
1 
10 #ifndef P6CRC32_H__
11 #define P6CRC32_H__ 1
12 
13 #include "p6com.h"
14 
15 
16 #ifdef __cplusplus
17 namespace P6R {
18 extern "C" {
19 #endif
20 
31 static const P6CRC32FLAGS P6CRC32_NOFLAGS = 0x00000000;
32 static const P6CRC32FLAGS P6CRC32_USEDEFAULTS = 0x00000001;
33 
34 
44 #undef INTERFACE
45 #define INTERFACE p6ICRC32
47 {
75  P6DECLCOMMETHOD(initialize)(P6THIS_ P6CRC32FLAGS flags,
76  P6UINT32 polynomial,
77  P6UINT32 initValue,
78  P6UINT32 finalXOR,
79  P6BOOL reflected
80  ) P6PURE;
81 
111  P6DECLCOMMETHOD(reset)(P6THIS_ P6CRC32FLAGS flags,
112  P6UINT32 polynomial,
113  P6UINT32 initValue,
114  P6UINT32 finalXOR,
115  P6BOOL reflected
116  ) P6PURE;
117 
135  P6DECLCOMMETHOD(firstBlock)(P6THIS_ P6UINT8* pBlock, P6UINT32 blockSize ) P6PURE;
136 
151  P6DECLCOMMETHOD(nextBlock)(P6THIS_ P6UINT8* pBlock, P6UINT32 blockSize ) P6PURE;
152 
166  P6DECLCOMMETHOD(getCRC)(P6THIS_ P6UINT32* pCRC32 ) P6PURE;
167 };
168 
169 // {D198EA72-F5FF-4bf6-9566-AAD292E0FB12}
170 #define IF_p6ICRC32 {0xd198ea72,0xf5ff,0x4bf6,{0x95,0x66,0xaa,0xd2,0x92,0xe0,0xfb,0x12}}
171 
172 // {90A7DE03-1560-4b7c-83A5-F00899AB04D6}
173 #define COMP_p6CRC32 {0x90a7de03,0x1560,0x4b7c,{0x83,0xa5,0xf0,0x8,0x99,0xab,0x4,0xd6}}
174 
175 #ifdef __cplusplus
176 }
177 } // namespace
178 #endif
179 
180 
181 #endif
182 
183 
184 
185 
186 
uint32_t P6UINT32
Definition: p6types.h:77
P6UINT32 P6CRC32FLAGS
P6CRC32FLAGS.
Definition: p6crc32.h:30
#define P6PURE
Definition: p6defs.h:192
unsigned char P6BOOL
Boolean type.
Definition: p6types.h:133
unsigned char P6UINT8
Definition: p6types.h:71
The base interface all [p6]COM components must derive from and implement.
Definition: p6comdef.h:97
Cyclic Redundancy Check 32 bits.
Definition: p6crc32.h:46
#define P6DECLCOMMETHOD(method)
Definition: p6defs.h:189
#define P6THIS_
Definition: p6defs.h:193
P6COM definitions and interfaces.
#define P6DECLAREIF_(iface, baseif)
Definition: p6defs.h:188