ICP  1
stdafx.h
Go to the documentation of this file.
1 // stdafx.h : include file for standard system include files,
2 // or project specific include files that are used frequently, but
3 // are changed infrequently
4 //
5 
6 #pragma once
7 
8 #ifndef WINVER // Allow use of features specific to Windows XP or later.
9 #define WINVER 0x0501 // Change this to the appropriate value to target other versions of Windows.
10 #endif
11 
12 #ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later.
13 #define _WIN32_WINNT 0x0501 // Change this to the appropriate value to target other versions of Windows.
14 #endif
15 
16 #define NOMINMAX /* so std::min(0 work */
17 
18 #include <crtdbg.h>
19 
20 #include <iostream>
21 #include <sstream>
22 #include <fstream>
23 #include <string>
24 #include <list>
25 #include <map>
26 #include <vector>
27 #include <algorithm>
28 #include <set>
29 #include <functional>
30 #include <limits>
31 #include <unordered_map>
32 
33 #include <cstdio>
34 #include <cstdlib>
35 #include <ctime>
36 #include <cstdarg>
37 #include <cstddef>
38 #include <cctype>
39 #include <cmath>
40 #include <bitset>
41 
42 #include <winsock2.h> // needs to be before windows.h
43 
44 #include <windows.h>
45 #include <tchar.h>
46 #include <sys/stat.h>
47 #include <process.h>
48 #include <fcntl.h>
49 #include <msxml2.h>
50 #include <atlbase.h>
51 #include <sys/timeb.h>
52 #include <math.h>
53 #include <direct.h>
54 #include <io.h>
55 #include <eh.h>
56 
57 #include <psapi.h>
58 
59 #ifndef _WIN64
60 #define BOOST_BIND_ENABLE_STDCALL 1
61 #endif /* !_WIN64 */
62 
63 #include <boost/bind.hpp>
64 #include <boost/function.hpp>
65 #include <boost/signals2.hpp>
66 #include <boost/static_assert.hpp>
67 #include <boost/foreach.hpp>
68 #include <boost/array.hpp>
69 #include <boost/type_traits.hpp>
70 #include <boost/iterator/transform_iterator.hpp>
71 #include <boost/pool/pool_alloc.hpp>
72 #include <boost/bimap.hpp>
73 #include <boost/circular_buffer.hpp>
74 
75 #include <Poco/Foundation.h>
76 #include <Poco/NotificationCenter.h>
77 #include <Poco/NotificationQueue.h>
78 #include <Poco/BasicEvent.h>
79 #include <Poco/Condition.h>
80 #include <Poco/Observer.h>
81 #include <Poco/NObserver.h>
82 #include <Poco/AutoPtr.h>
83 #include <Poco/Thread.h>
84 #include <Poco/Runnable.h>
85 #include <Poco/RunnableAdapter.h>
86 #include <Poco/ThreadTarget.h>
87 #include <Poco/Task.h>
88 #include <Poco/TaskManager.h>
89 #include <Poco/TaskNotification.h>
90 #include <Poco/MemoryPool.h>
91 #include <Poco/Thread.h>
92 #include <Poco/ThreadPool.h>
93 #include "Poco/String.h"
94 #include "Poco/Environment.h"
95 #include "Poco/Format.h"
96 #include <Poco/Path.h>
97 #include "Poco/Util/Application.h"
98 #include "Poco/String.h"
99 #include "Poco/Environment.h"
100 #include "Poco/Format.h"
101 #include "Poco/LogStream.h"
102 #include <Poco/File.h>
103 //#include "Poco/ThreadLocal.h"
104 #include "Poco/Mutex.h"
105 #include "Poco/NamedMutex.h"
106 #include "Poco/Glob.h"
107 #include "Poco/RegularExpression.h"
108 #include "Poco/NumberFormatter.h"
109 #include "Poco/NumberParser.h"
110 #include "Poco/LocalDateTime.h"
111 #include "Poco/DateTimeFormatter.h"
112 #include "Poco/DateTimeParser.h"
113 #include "Poco/Timespan.h"
114 #include "Poco/Dynamicfactory.h"
115 #include "Poco/LoggingFactory.h"
116 #include "Poco/TemporaryFile.h"
117 #include "Poco/Timer.h"
118 #include "Poco/RWLock.h"
119 #include "Poco/TextConverter.h"
120 #include "Poco/Latin1Encoding.h"
121 #include "Poco/UTF8Encoding.h"
122 #include "Poco/Windows1252Encoding.h"
123 #include "Poco/StringTokenizer.h"
124 #include "Poco/Semaphore.h"
125 #include "Poco/Process.h"
126 #include "Poco/PipeStream.h"
127 #include "Poco/StreamCopier.h"
128 
129 #include "Poco/Net/TCPServer.h"
130 #include "Poco/Net/TCPServerConnection.h"
131 #include "Poco/Net/TCPServerConnectionFactory.h"
132 #include "Poco/Net/TCPServerParams.h"
133 #include "Poco/Net/StreamSocket.h"
134 #include "Poco/Net/ServerSocket.h"
135 #include "Poco/Net/DatagramSocket.h"
136 
137 #include <Poco/SAX/ContentHandler.h>
138 #include <Poco/SAX/SAXParser.h>
139 
140 #include <Poco/DOM/DOMParser.h>
141 #include <Poco/DOM/Document.h>
142 #include <Poco/DOM/NodeIterator.h>
143 #include <Poco/DOM/NodeFilter.h>
144 #include <Poco/DOM/AutoPtr.h>
145 #include <Poco/SAX/InputSource.h>
146 
147 #include <Poco/DOM/NamedNodeMap.h>
148 
149 #include <Poco/Net/HTTPServer.h>
150 #include <Poco/Net/HTTPRequestHandlerFactory.h>
151 #include <Poco/Net/HTTPServerParams.h>
152 #include <Poco/Net/HTTPServerRequest.h>
153 #include <Poco/Net/HTTPServerResponse.h>
154 #include <Poco/Net/HTTPRequestHandler.h>
155 
156 //#include <MD5.h>
157 
158 // TODO: reference additional headers your program requires here