rewrite stats collecting using iterators
[smart-snmpd-watch-mongodb.git] / src / mongo / pch.h
blob044dfa0256846a84fea379208497d76b4cc68ebe
1 /** @file pch.h : include file for standard system include files,
2 * or project specific include files that are used frequently, but
3 * are changed infrequently
4 */
6 /* Copyright 2009 10gen Inc.
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
21 #ifndef MONGO_PCH_H
22 #define MONGO_PCH_H
24 // our #define macros must not be active when we include
25 // system headers and boost headers
26 #include "mongo/client/undef_macros.h"
28 #include "mongo/platform/basic.h"
30 #include <ctime>
31 #include <cstring>
32 #include <string>
33 #include <memory>
34 #include <string>
35 #include <iostream>
36 #include <map>
37 #include <vector>
38 #include <set>
39 #include <stdio.h>
40 #include <stdlib.h>
41 #include <signal.h>
43 #include "time.h"
44 #include "string.h"
45 #include "limits.h"
47 #include <boost/shared_ptr.hpp>
48 #include <boost/smart_ptr.hpp>
49 #include <boost/function.hpp>
50 #include <boost/bind.hpp>
51 #include <boost/version.hpp>
53 #include "mongo/client/redef_macros.h"
55 #include "mongo/util/exit_code.h"
57 namespace mongo {
59 using namespace std;
60 using boost::shared_ptr;
62 void dbexit( ExitCode returnCode, const char *whyMsg = "" );
64 /**
65 this is here so you can't just type exit() to quit the program
66 you should either use dbexit to shutdown cleanly, or ::exit to tell the system to quit
67 if you use this, you'll get a link error since mongo::exit isn't defined
69 void exit( ExitCode returnCode );
70 bool inShutdown();
75 #include "mongo/util/assert_util.h"
76 #include "mongo/util/debug_util.h"
77 #include "mongo/util/goodies.h"
78 #include "mongo/util/allocator.h"
79 #include "mongo/util/log.h"
81 #endif // MONGO_PCH_H