AnimatLab  2
Test
StdIncludes.h
1 #if !defined STD_UTILS_INCLUDES
2 #define STD_UTILS_INCLUDES
3 
4 #ifdef WIN32
5  #define STD_UTILS_PORT __declspec( dllexport )
6 
7  #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
8 
9  #ifndef _WIN32_WCE
10  #include <conio.h>
11  #include <io.h>
12  #include <tchar.h>
13  #endif
14 #else
15  #define STD_UTILS_PORT
16 
17  #include <linux/types.h>
18  #include <stdbool.h>
19  #include <dlfcn.h>
20  #include <limits.h>
21  #include <unistd.h>
22  #include <utime.h>
23  #include <sys/stat.h>
24 
25  #define DWORD unsigned long
26  #define LPCSTR const char *
27  #define LONG long
28  #define ULONG unsigned long
29  #define LPLONG long *
30  #define __int64 int64_t
31  #define LPCTSTR const char*
32 #endif
33 
34 #pragma warning(disable: 4018 4244 4290 4786 4251 4275 4267 4311 4312 4800 4996 )
35 
36 #include <sys/types.h>
37 #include <sys/timeb.h>
38 
39 
40 #include <exception>
41 #include <string>
42 #include <iosfwd>
43 #include <sstream>
44 #include <fstream>
45 #include <iterator>
46 #include <iostream>
47 #include <vector>
48 #include <deque>
49 #include <stack>
50 #include <map>
51 #include <list>
52 #include <unordered_set>
53 #include <stdio.h>
54 #include <stdlib.h>
55 #include <cctype>
56 #include <math.h>
57 #include <memory.h>
58 #include <algorithm>
59 #include <string.h>
60 
61 //Std atomic not included until VS2012, but I need it in linux
62 //because I need to use boost 1.48 and boost::atomic is not included
63 //until later.
64 #ifdef WIN32
65  #include <boost/atomic.hpp>
66 
67  //For some reason this is not in math.h on windows.
68  inline double round( double d )
69  {
70  return floor( d + 0.5 );
71  }
72 
73 #else
74  #include <atomic>
75 #endif
76 
77 #include <boost/thread.hpp>
78 #include <boost/algorithm/string.hpp>
79 #include <boost/filesystem.hpp>
80 #include "boost/format.hpp"
81 
82 #define STD_TRACING_ON
83 //#define STD_TRACE_DEBUG
84 //#define STD_TRACE_INFO
85 #define STD_TRACE_DETAIL
86 
87 #define STD_TRACE_TO_DEBUGGER
88 #define STD_TRACE_TO_FILE true
89 
90 namespace StdUtils
91 {
92  class CStdFont;
93  class CStdVariable;
94  class CStdPostFixEval;
95  class CMarkupSTL;
96  class CStdXml;
97  class CStdCriticalSection;
98  class CStdErrorInfo;
99 
100  void STD_UTILS_PORT Std_RelayError(CStdErrorInfo oInfo, std::string strSourceFile, long lSourceLine);
101  void STD_UTILS_PORT Std_ThrowError(long lError, std::string strError, std::string strSourceFile, long lSourceLine,
102  std::string strValueName, unsigned char iVal);
103  void STD_UTILS_PORT Std_ThrowError(long lError, std::string strError, std::string strSourceFile, long lSourceLine,
104  std::string strValueName, unsigned short iVal);
105  void STD_UTILS_PORT Std_ThrowError(long lError, std::string strError, std::string strSourceFile, long lSourceLine,
106  std::string strValueName, int iVal);
107  void STD_UTILS_PORT Std_ThrowError(long lError, std::string strError, std::string strSourceFile, long lSourceLine,
108  std::string strValueName, long lVal);
109  void STD_UTILS_PORT Std_ThrowError(long lError, std::string strError, std::string strSourceFile, long lSourceLine,
110  std::string strValueName, float fltVal);
111  void STD_UTILS_PORT Std_ThrowError(long lError, std::string strError, std::string strSourceFile, long lSourceLine,
112  std::string strValueName, double dblVal);
113  void STD_UTILS_PORT Std_ThrowError(long lError, std::string strError, std::string strSourceFile, long lSourceLine,
114  std::string strValueName, std::string strVal);
115  void STD_UTILS_PORT Std_ThrowError(long lError, std::string strError, std::string strSourceFile, long lSourceLine,
116  std::string strText);
117 }
118 
119 #include "tree.hh"
120 #include "tree_util.hh"
121 
122 #include "StdConstants.h"
123 #include "StdADT.h"
124 #include "StdADTCopy.h"
125 #include "StdErrorInfo.h"
126 #include "StdUtilFunctions.h"
127 #include "MarkupSTL.h"
128 #include "StdXml.h"
129 #include "StdSerialize.h"
130 #include "StdFont.h"
131 #include "StdVariable.h"
132 #include "StdPostFixEval.h"
133 #include "StdVariant.h"
134 #include "StdClassFactory.h"
135 #include "StdLookupTable.h"
136 #include "StdFixed.h"
137 #include "StdColor.h"
138 #include "StdCriticalSection.h"
139 
140 #ifdef WIN32
141  #ifndef _WIN32_WCE
142  #include "XYTrace.h"
143  #else
144  #include "StdLogFile.h"
145  #endif
146 #endif
147 
148 #endif //STD_UTILS_INCLUDES
Declares a standard lookup table class.
Declares the standard xml class.
Declares the standard class factory class.
Declares the standard critical section class.
Declares the standard post fix evaluation class.
Declares the standard error information class.
Declares the standard serialize class.
Declares the standard font class.
Declares the standard color class.
Declares the standard variable class.
void Std_ThrowError(long lError, std::string strError, std::string strSourceFile, long lSourceLine, std::string strValueName, unsigned char iVal)
Standard throw error.
Namespace for the standard utility objects.
Definition: MarkupSTL.cpp:19
Declares the standard utility functions class.
Declares the standard fixed-point calculation class.
void Std_RelayError(CStdErrorInfo oInfo, std::string strSourceFile, long lSourceLine)
Standard relay error.
Declares the standard variant class.