diff options
| author | Apollon Oikonomopoulos <apoikos@debian.org> | 2016-01-14 00:10:06 +0200 |
|---|---|---|
| committer | Apollon Oikonomopoulos <apollon@skroutz.gr> | 2016-01-14 00:10:06 +0200 |
| commit | 374e1947abcd3e127a2a613aff73ecffdb9199ea (patch) | |
| tree | d83973c3c9802450acd5b5e86fe0d4e8e60a3a1b /src/mongo/db/module.cpp | |
| parent | 65585c90b12d6523bea75a2aebaae2a2fdf9e641 (diff) | |
Imported Upstream version 2.6.11upstream/2.6.11
Diffstat (limited to 'src/mongo/db/module.cpp')
| -rw-r--r-- | src/mongo/db/module.cpp | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/src/mongo/db/module.cpp b/src/mongo/db/module.cpp deleted file mode 100644 index f3035b56dde..00000000000 --- a/src/mongo/db/module.cpp +++ /dev/null @@ -1,68 +0,0 @@ -// module.cpp -/* - * Copyright (C) 2010 10gen Inc. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License, version 3, - * as published by the Free Software Foundation. - * - * 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/>. - */ - -#include "mongo/pch.h" - -#include "mongo/db/module.h" - -namespace mongo { - - std::list<Module*> * Module::_all; - - Module::Module( const string& name ) - : _name( name ) , _options( (string)"Module " + name + " options" ) { - if ( ! _all ) - _all = new list<Module*>(); - _all->push_back( this ); - } - - Module::~Module() {} - - void Module::addOptions( boost::program_options::options_description& options ) { - if ( ! _all ) { - return; - } - for ( list<Module*>::iterator i=_all->begin(); i!=_all->end(); i++ ) { - Module* m = *i; - options.add( m->_options ); - } - } - - void Module::configAll( boost::program_options::variables_map& params ) { - if ( ! _all ) { - return; - } - for ( list<Module*>::iterator i=_all->begin(); i!=_all->end(); i++ ) { - Module* m = *i; - m->config( params ); - } - - } - - - void Module::initAll() { - if ( ! _all ) { - return; - } - for ( list<Module*>::iterator i=_all->begin(); i!=_all->end(); i++ ) { - Module* m = *i; - m->init(); - } - - } - -} |
