/* common/consoleinterface.cc This file is part of the Osirion project and is distributed under the terms of the GNU General Public License version 2 */ #include "common/consoleinterface.h" #include #include namespace common { ConsoleInterface *ConsoleInterface::consoleinterface_instance = 0; ConsoleInterface::ConsoleInterface() { if (consoleinterface_instance) { std::cerr << "multiple singleton instances: common::ConsoleInterface" << std::endl; exit(2); } consoleinterface_instance = this; } ConsoleInterface::~ConsoleInterface() { consoleinterface_instance = 0; } ConsoleInterface *ConsoleInterface::instance() { return consoleinterface_instance; } } // namespace common