NAVTOR SDK  v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
crc32_calculator_interface.h
Go to the documentation of this file.
1 #ifndef SDK_CRC32_CALCULATOR_INTERFACE_H_
9 #define SDK_CRC32_CALCULATOR_INTERFACE_H_
10 
13 
14 SDK_BEGIN_NAMESPACE
15 
16 namespace util {
17 
19 
20 FWD_DECL_INTERFACE(ICRC32Calculator)
21 
22 class ICRC32Calculator : public sdk::ISDKComponent {
25 public:
27  virtual SDKResult SDK_CALLTYPE Calculate(
28  const sdk::base::ISDKStreamSP& stream_in,
29  SDKCRC32& ret_val) const throw() = 0;
30 
32  virtual void SDK_CALLTYPE Restart() throw() = 0;
33 
38  virtual SDKResult SDK_CALLTYPE Update(const SDKUInt8* buf,
39  SDKUInt64 data_size) throw() = 0;
40 
45  virtual SDKResult SDK_CALLTYPE Final(SDKCRC32& ret_val) throw() = 0;
46 
48  SDK_IMPLEMENT_IID(ICRC32Calculator)
49  SDK_END_INTERFACE(ICRC32Calculator)
50 };
51 SDK_DECLARE_IID(ICRC32Calculator)
52 
53 } // util
54 
55 SDK_END_NAMESPACE
56 
57 #endif
util::ICRC32Calculator::Final
virtual SDKResult SDK_CALLTYPE Final(SDKCRC32 &ret_val)=0
Finalizes the operation.
util::ICRC32Calculator::Update
virtual SDKResult SDK_CALLTYPE Update(const SDKUInt8 *buf, SDKUInt64 data_size)=0
Updates the next buffer.
SDKCRC32
SDKUInt32 SDKCRC32
CRC32 value.
Definition: base_types.h:403
SDKResult
SDKInt32 SDKResult
Type of all error or return codes which SDK functions can end with.
Definition: sdk_results.h:17
stream_interface.h
Generic data stream interface.
sdk_component_interface.h
Common base SDK interfaces.
util::ICRC32Calculator::Calculate
virtual SDKResult SDK_CALLTYPE Calculate(const sdk::base::ISDKStreamSP &stream_in, SDKCRC32 &ret_val) const =0
Calculates the CRC32 for SDKStream.
util::ICRC32Calculator::Restart
virtual void SDK_CALLTYPE Restart()=0
Restarts the operation.
FWD_DECL_INTERFACE
FWD_DECL_INTERFACE(ILWEParserWrapper)
Provides a wrapper around the message parser to get, add or remove the.