00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef DCBASE_H
00016 #define DCBASE_H
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifdef WITHIN_PANDA
00026
00027
00028
00029 #include "directbase.h"
00030 #include "pnotify.h"
00031 #include "numeric_types.h"
00032 #include "filename.h"
00033 #include "pvector.h"
00034 #include "pmap.h"
00035 #include "pset.h"
00036
00037 #else // WITHIN_PANDA
00038
00039 #ifdef WIN32
00040
00041 #pragma warning (disable : 4786)
00042
00043 #pragma warning (disable : 4503)
00044 #endif
00045
00046 #include <iostream>
00047 #include <fstream>
00048 #include <iomanip>
00049 #include <sstream>
00050
00051 #include <string>
00052 #include <assert.h>
00053
00054
00055
00056
00057 #ifdef WIN32
00058 #include <io.h>
00059 #include <malloc.h>
00060 #else
00061 #include <unistd.h>
00062 #endif
00063
00064 using namespace std;
00065
00066 #define INLINE inline
00067 #define TYPENAME typename
00068
00069
00070
00071
00072 #define PUBLISHED public
00073 #define BEGIN_PUBLISH
00074 #define END_PUBLISH
00075 #define BLOCKING
00076
00077
00078
00079 #define nassertr(condition, return_value) assert(condition)
00080 #define nassertr_always(condition, return_value) assert(condition)
00081 #define nassertv(condition) assert(condition)
00082 #define nassertv_always(condition) assert(condition)
00083
00084
00085
00086
00087 #define EXPCL_DIRECT
00088 #define EXPTP_DIRECT
00089
00090
00091
00092 typedef string Filename;
00093
00094
00095
00096
00097
00098
00099 #include <vector>
00100 #include <map>
00101 #include <set>
00102 #define pvector vector
00103 #define pmap map
00104 #define pset set
00105
00106 #ifdef WIN32
00107 typedef __int64 PN_int64;
00108 typedef unsigned __int64 PN_uint64;
00109 #else
00110 typedef long long PN_int64;
00111 typedef unsigned long long PN_uint64;
00112 #endif
00113
00114 typedef unsigned char PN_uint8;
00115 typedef unsigned short PN_uint16;
00116 typedef unsigned int PN_uint32;
00117
00118 typedef ifstream pifstream;
00119 typedef ofstream pofstream;
00120 typedef fstream pfstream;
00121
00122 #endif // WITHIN_PANDA
00123
00124
00125 typedef PN_uint64 CHANNEL_TYPE;
00126 typedef PN_uint32 DOID_TYPE;
00127 typedef PN_uint32 ZONEID_TYPE;
00128
00129 #endif // DCBASE_H