WIL説明書(C++)  3.0.0
FvObject.h
[詳解]
1 // $Revision: 1.2 $
2 /*
3  @file FvObject.h
4  @brief CFvObject class interface
5  @author FAST Corporation
6 */
7 
8 #ifndef _FVOBJECT_H_INCLUDED_
9 #define _FVOBJECT_H_INCLUDED_
10 
11 #include "FvMacros.h"
12 #include "FvDefs.h"
13 #include "FvDebug.h"
14 #include "FvErrors.h"
15 #include "FvAlloc.h"
16 
17 
18 #pragma pack(push,_FVCL_PACKING)
19 
20 namespace FVCL
21 {
22 
24 {
25 public:
26  CFvObject();
27  virtual ~CFvObject();
28 
29  INT SetErrorCode(INT err);
30  INT SetErrorCode(INT err) const;
31  INT GetErrorCode() const;
32 
33  bool SetAllocateOption( INT value );
34  INT GetAllocateOption() const;
35 
36  static bool SetDefaultAllocateOption( INT value );
37  static INT GetDefaultAllocateOption();
38 
39  // operator new/delete
40  void* operator new ( size_t uiSize );
41  void* operator new [] ( size_t uiSize );
42  void operator delete ( void* pvObject );
43  void operator delete [] ( void* pvObject );
44  // operator new/delete (DEBUG_NEW)
45  void* operator new ( size_t uiSize, LPCSTR szFileName, INT iLine );
46  void* operator new [] ( size_t uiSize, LPCSTR szFileName, INT iLine );
47  void operator delete ( void* pvObject, LPCSTR szFileName, INT iLine );
48  void operator delete [] ( void* pvObject, LPCSTR szFileName, INT iLine );
49 
50  virtual CFvObject& operator = ( const CFvObject& src );
51  virtual bool operator == ( const CFvObject& src ) const;
52  virtual bool operator != ( const CFvObject& src ) const;
53 
54 protected:
55  INT fnCPUCheck();
56  INT m_ErrorCode; // error code
58 };
59 
60 }
61 
62 #pragma pack(pop)
63 
64 #endif // _FVOBJECT_H_INCLUDED_
#define FVCL_API
DLLエクスポートマクロ
Definition: FvMacros.h:61
FVCLのネームスペース
Definition: EVCbasicDeclare.txt:9
FVCLの基底クラス
Definition: FvObject.h:23
int INT
整数型(32ビット)
Definition: FvDefs.h:36
マクロ定義
const char * LPCSTR
ASCII文字列型(const付き)
Definition: FvDefs.h:45
エラーコード定義
INT m_AllocateOption
画像領域確保時のオプション
Definition: FvObject.h:57
メモリ確保と開放のグローバル関数のインターフェース
INT m_ErrorCode
エラーコード
Definition: FvObject.h:56
変数型と定数の定義
デバッグ用関数のインターフェース

Documentation copyright © 2007 FAST Corporation. [B-001864]
Generated on 2023年11月02日(木) 10時12分53秒 for WIL説明書(C++) by doxygen 1.8.11