// utils.h #pragma once #include "../scripting/engine.h" namespace mongo { namespace shellUtils { void RecordMyLocation( const char *_argv0 ); void installShellUtils( Scope& scope ); // Scoped management of mongo program instances. Simple implementation: // destructor kills all mongod instances created by the shell. struct MongoProgramScope { MongoProgramScope() {} // Avoid 'unused variable' warning. ~MongoProgramScope(); }; void KillMongoProgramInstances(); } }