IBlob.h
Go to the documentation of this file.
1 /********************************************************************
2 *
3 * Project Artec 3D Scanning SDK
4 *
5 * Purpose: Store large binary data.
6 *
7 * Copyright: Artec Group
8 *
9 ********************************************************************/
10 
11 #ifndef _IBLOB_H_
12 #define _IBLOB_H_
13 
15 #include <artec/sdk/base/IRef.h>
16 #include <artec/sdk/base/Errors.h>
17 
18 namespace artec { namespace sdk { namespace base
19 {
20 
21 class IBlob;
22 
23 extern "C"
24 {
25 
27  createBlob(IBlob** blob, int size);
28 
29 }
30 
31 class IBlob : public IRef
32 {
33 public:
34  /** Get data size.
35  *
36  * @return
37  * Data size.
38  */
39  virtual int getSize() const = 0;
40 
41  /** Get data pointer.
42  *
43  * @return
44  * Data pointer.
45  */
46  virtual void* getPointer() const = 0;
47 };
48 
49 } } } // namespace artec::sdk::base
50 
51 #endif // _IBLOB_H_
virtual void * getPointer() const =0
ErrorCode ABASESDK_LINK_SPEC createBlob(IBlob **blob, int size)
virtual int getSize() const =0
#define ABASESDK_LINK_SPEC
Definition: BaseSdkDefines.h:7