00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #pragma once
00019
00020 #include "util/misc.h"
00021
00022 namespace bson { }
00023
00024 namespace mongo {
00025
00026 using namespace std;
00027
00028 class BSONArrayBuilder;
00029 class BSONElement;
00030 class BSONObj;
00031 class BSONObjBuilder;
00032 class BSONObjBuilderValueStream;
00033 class BSONObjIterator;
00034 class Ordering;
00035 class Record;
00036 struct BSONArray;
00037 struct BSONElementCmpWithoutField;
00038
00039 extern BSONObj maxKey;
00040 extern BSONObj minKey;
00041
00046 enum BSONType {
00048 MinKey=-1,
00050 EOO=0,
00052 NumberDouble=1,
00054 String=2,
00056 Object=3,
00058 Array=4,
00060 BinData=5,
00062 Undefined=6,
00064 jstOID=7,
00066 Bool=8,
00068 Date=9,
00070 jstNULL=10,
00072 RegEx=11,
00074 DBRef=12,
00076 Code=13,
00078 Symbol=14,
00080 CodeWScope=15,
00082 NumberInt = 16,
00084 Timestamp = 17,
00086 NumberLong = 18,
00088 JSTypeMax=18,
00090 MaxKey=127
00091 };
00092
00093
00094
00095
00096
00097 enum BinDataType {
00098 BinDataGeneral=0,
00099 Function=1,
00100 ByteArrayDeprecated=2,
00101 bdtUUID = 3,
00102 MD5Type=5,
00103 bdtCustom=128
00104 };
00105
00106 }
00107