summaryrefslogtreecommitdiff
path: root/tools/tool.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-06-09 11:31:30 -0400
committerEliot Horowitz <eliot@10gen.com>2010-06-09 11:31:30 -0400
commitcbb36406f05f64f52d8a6f2c10a2c47d2a9d86d5 (patch)
tree43f8aa7ee47f0c09c27a6b4f5080dc9a07030e7f /tools/tool.h
parent1dd024da17ce2bb42c0e8a4e05c62ec6738b7ebc (diff)
downloadmongo-cbb36406f05f64f52d8a6f2c10a2c47d2a9d86d5.tar.gz
some tool cleaning, bsondump tool
Diffstat (limited to 'tools/tool.h')
-rw-r--r--tools/tool.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/tool.h b/tools/tool.h
index b22204485fd..70dd0e822f8 100644
--- a/tools/tool.h
+++ b/tools/tool.h
@@ -119,4 +119,20 @@ namespace mongo {
};
+ class BSONTool : public Tool {
+ bool _objcheck;
+ auto_ptr<Matcher> _matcher;
+
+ public:
+ BSONTool( const char * name , bool objcheck = false );
+
+ virtual int doRun() = 0;
+ virtual void gotObject( const BSONObj& obj ) = 0;
+
+ virtual int run();
+
+ long long processFile( const path& file );
+
+ };
+
}