MongoDB  2.7.0
version.h
1 
29 #ifndef UTIL_VERSION_HEADER
30 #define UTIL_VERSION_HEADER
31 
32 #include <string>
33 
34 #include "mongo/bson/bsonobj.h"
35 
36 namespace mongo {
37  struct BSONArray;
38 
39  // mongo version
40  extern const char versionString[];
41  extern const BSONArray versionArray;
42  std::string mongodVersion();
43 
44  // Convert a version string into a numeric array
45  BSONArray toVersionArray(const char* version);
46 
47  // Checks whether another version is the same major version as us
48  bool isSameMajorVersion(const char* version);
49 
50  const char * gitVersion();
51  const char * compiledJSEngine();
52  const char * allocator();
53  const char * loaderFlags();
54  const char * compilerFlags();
55  std::string sysInfo();
56 
57 } // namespace mongo
58 
59 #endif // UTIL_VERSION_HEADER