40 #ifndef FROMJSON_HPP__ 
   41 #define FROMJSON_HPP__ 
   43 #include "ossFeat.hpp" 
   44 #if defined (SDB_ENGINE) || defined (SDB_CLIENT) 
   45 #include "../bson/util/builder.h" 
   46 #include "../bson/util/optime.h" 
   47 #include "../bson/bsontypes.h" 
   48 #include "../bson/oid.h" 
   49 #include "../bson/bsonelement.h" 
   50 #include "../bson/bsonobj.h" 
   51 #include "../bson/bsonmisc.h" 
   52 #include "../bson/bsonobjbuilder.h" 
   53 #include "../bson/bsonobjiterator.h" 
   54 #include "../bson/bson-inl.h" 
   55 #include "../bson/ordering.h" 
   56 #include "../bson/stringdata.h" 
   57 #include "../bson/bson_db.h" 
   59 #include "bson/bson.hpp" 
   75    SDB_EXPORT INT32 fromjson ( 
const string &str, BSONObj &out, 
 
   76                                BOOLEAN isBatch = TRUE ) ;
 
   86    SDB_EXPORT INT32 fromjson ( 
const CHAR *pStr, BSONObj &out,
 
   87                                BOOLEAN isBatch = TRUE ) ;