MongoType
MongoDB Collection Data Dump with BSON Types
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
IBSONRenderer.hpp
Go to the documentation of this file.
1 /*
2  * IBSONRenderer.hpp
3  *
4  * Created on: Jan 23, 2014
5  * Author: mdeazley
6  */
7 
8 #ifndef IBSONRENDERER_HPP_
9 #define IBSONRENDERER_HPP_
10 
11 #include <ostream>
12 #include <memory>
13 
14 namespace mongotype {
15 
17 public:
18  virtual ~IBSONRenderer() {};
19  virtual void setOutputStream(std::ostream& os) = 0;
20  virtual void begin(const char* prefix) = 0;
21  virtual void end(const char* suffix) = 0;
22  virtual void render(const BSONObj& object, int docIndex, int docCount) = 0;
23 };
24 
25 } /* namespace mongotype */
26 
27 #endif /* IBSONRENDERER_HPP_ */