Polygon Crucher SDK - Documentation
Documentation
Loading...
Searching...
No Matches
sdk_xclass.h
1///////////////////////////////////////////////
2// MFC substitute defines
3//
4// This header maps MFC classes to its equivalent X object
5// It is to be used when building a project that previously used MFC
6//
7// The goal is progressively to remove the MFC object usage
8// in the whole project source
9
10#ifndef MOOTOOLS_SDK_XCLASS
11#define MOOTOOLS_SDK_XCLASS
12
13#ifdef _MSC_VER
14#pragma once
15#endif // _MSC_VER
16
17#ifdef __cplusplus
18
19# include <cmath>
20# define MOOTOOLS_CMATH
21
22#ifdef __WINDOWS__
23// The SDK may requires to use the debug version if your project is in debug mode and the release version if you compile in release mode.
24#pragma warning(disable: 4275) // deriving exported class from non-exported
25#pragma warning(disable: 4251) // using non-exported as public in exported
26#endif
27
28BEGIN_MOOTOOLS_NAMESPACE
29
30struct CXRuntimeClass;
31
32template <class TYPE, class ARG_TYPE> class CXArray;
33class CXObject;
34class CXFile;
35class CXStdioFile;
36class CXMemFile;
37class CXArchive;
38class CXApp;
39class CXRect;
40class CXSize;
41
42#ifndef MOOTOOLS_MFC_PRODUCT_BUILD
43class CXWnd;
44class CXDialog;
45class CXDC;
46#endif
47
48END_MOOTOOLS_NAMESPACE
49
50#include "XStdLib.h"
51#include "XMemory.h"
52#include "XString.h"
53#include "XDebug.h"
54#include "XException.h"
55#include "XObject.h"
56#include "XApp.h"
57#include "XWnd.h"
58#include "XTemplate.h"
59#include "XArchive.h"
60#include "XTemplateSerialize.h"
61#include "XFile.h"
62#include "XMemFile.h"
63#include "XStdioFile.h"
64#include "XFileUtils.h"
65
66#include "XThread.h"
67#include "XTime.h"
68
69# include "Hash.h"
70# include "HashMap.h"
71# include "HashAssocMap.h"
72# include "StackAr.h"
73# include "QueueAr.h"
74# include "Collection.h"
75
76#ifdef __WINDOWS__
77#ifndef MOOTOOLS_MFC_PRODUCT_BUILD
78#include "./win/win32xx.h" // It includes XWin* when possible
79#endif
80#elif defined(__APPLE__)
81#include "./macos/XMacOSApp.h"
82#include "./macos/XMacOSWnd.h"
83#elif defined(__LINUX__)
84#include "./linux/XLinuxApp.h"
85#include "./linux/XLinuxWnd.h"
86#endif
87
88#endif // __cplusplus
89#endif // MOOTOOLS_SDK_XCLASS
Associates key to a single value through an hash table.
CXFile is the base class for different kind of file (CXStdioFile, CXMemFile...)
Set memory callbacks, memory leaks and low level allocation functions.
CXStdioFile is the base class for reading text file.
CXStringT is a template class for handling unicode, utf8 or ansi strings.
a simple array class for handling data which does not require to be construct / destroy
The class defines an x, y, z 3D point which can use int, float or double.
Definition 3DPoint.h:27
Definition XArchive.h:17
CXArray is an array of simple data information which does not requires to call a constructor / destru...
Definition XTemplate.h:34
CXFile is the base class for CXStdioFile, CXStdioFileEx, CXMemFile.
Definition XFile.h:42
Definition XMemFile.h:20
Definition XRect.h:137
Definition XRect.h:64
CXStdioFile reads or write strings from the file.
Definition XStdioFile.h:24