MongoType
MongoDB Collection Data Dump with BSON Types
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mongotype.hpp File Reference

MongoType Common Definitions File. More...

#include <time.h>
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <memory>
#include <deque>
#include <map>
#include <iterator>
#include <cstdlib>
#include <functional>
#include <boost/any.hpp>
#include <boost/program_options.hpp>
#include <mongo/client/dbclient.h>
#include <mongo/bson/bsonobj.h>
Include dependency graph for mongotype.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  mongotype
 

Macros

#define OSTREAM_FRIEND(ref)   friend std::ostream& operator<<(std::ostream& out, ref)
 

Variables

const string mongotype::VERSION
 
const string mongotype::COPYRIGHT
 
const string mongotype::LICENSE
 

Detailed Description

MongoType Common Definitions File.

Author
Mark Deazley <mdeaz.nosp@m.ley@.nosp@m.gmail.nosp@m..com>

License: Free Software Foundation’s GNU AGPL v3.0.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see http://www.gnu.org/licenses/ .

Definition in file mongotype.hpp.

Macro Definition Documentation

#define OSTREAM_FRIEND (   ref)    friend std::ostream& operator<<(std::ostream& out, ref)

Used to standardize the definition of the overloaded output stream friend functions. For example:

class X {
int i;
public:
X(int pi) : i(pi) {}
out << "I:" << i;
return out;
}
};
X x(10);
cout << x; // Prints "I:10".

Definition at line 83 of file mongotype.hpp.