2009-08-17 17:58:18 +02:00
|
|
|
/** @file jsobj.h
|
|
|
|
BSON classes
|
|
|
|
*/
|
2008-10-22 22:56:39 +02:00
|
|
|
|
2009-10-27 20:58:27 +01:00
|
|
|
/* Copyright 2009 10gen Inc.
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2009-01-31 00:51:09 +01:00
|
|
|
/**
|
2008-10-22 22:56:39 +02:00
|
|
|
BSONObj and its helpers
|
|
|
|
|
|
|
|
"BSON" stands for "binary JSON" -- ie a binary way to represent objects that would be
|
|
|
|
represented in JSON (plus a few extensions useful for databases & other languages).
|
2009-08-17 17:58:18 +02:00
|
|
|
|
2010-04-22 16:31:16 +02:00
|
|
|
http://www.bsonspec.org/
|
2008-10-22 22:56:39 +02:00
|
|
|
*/
|
2008-06-06 15:43:15 +02:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2010-04-27 21:27:52 +02:00
|
|
|
#include "../pch.h"
|
2010-04-25 00:25:58 +02:00
|
|
|
#include "../bson/util/builder.h"
|
2009-05-15 14:30:08 +02:00
|
|
|
#include "../util/optime.h"
|
2008-06-11 22:58:34 +02:00
|
|
|
#include "boost/utility.hpp"
|
2008-06-06 15:43:15 +02:00
|
|
|
#include <set>
|
2010-04-21 21:03:05 +02:00
|
|
|
#include "../bson/bsontypes.h"
|
2010-04-21 21:23:00 +02:00
|
|
|
#include "../bson/oid.h"
|
2010-04-21 21:03:05 +02:00
|
|
|
#include "../bson/bsonelement.h"
|
2010-04-22 16:31:16 +02:00
|
|
|
#include "../bson/bsonobj.h"
|
|
|
|
#include "../bson/bsonmisc.h"
|
2010-04-21 21:23:00 +02:00
|
|
|
#include "../bson/bsonobjbuilder.h"
|
2010-04-22 16:31:16 +02:00
|
|
|
#include "../bson/bsonobjiterator.h"
|
|
|
|
#include "../bson/bsoninlines.h"
|
|
|
|
#include "../bson/ordering.h"
|
2010-04-24 23:14:44 +02:00
|
|
|
|
|
|
|
#include "../bson/bson_db.h"
|