Simpatico
v1.10
|
A static class that holds a log output stream.
The Log class has one a static pointer member that points to an ostream that should be used by all other classes to output log and error messages. This stream is accessed by the file() method.
The log file initialized to point to std::cout. It may be reset to point to a ofstream file object using the static setFile() method.
#include <Log.h>
Static Public Member Functions | |
static void | initStatic () |
Initialize static members. More... | |
static void | setFile (std::ofstream &file) |
Set the log ostream to a file. More... | |
static void | close () |
Close log file, if any. More... | |
static std::ostream & | file () |
Get log ostream by reference. More... | |
|
static |
|
static |
Set the log ostream to a file.
file | ofstream open for writing. |
Definition at line 36 of file Log.cpp.
References file().
Referenced by DdMd::Simulation::setOptions(), and McMd::Simulation::Simulation().
|
static |
|
static |
Get log ostream by reference.
Definition at line 57 of file Log.cpp.
Referenced by DdMd::GroupStorage< N >::add(), McMd::LinkMaster::addLink(), DdMd::AtomMap::addLocal(), DdMd::AtomArray::allocate(), Tools::Processor::analyzeConfigs(), McMd::MdSimulation::analyzeConfigs(), McMd::McSimulation::analyzeConfigs(), Tools::Processor::analyzeTrajectory(), McMd::MdSimulation::analyzeTrajectory(), McMd::McSimulation::analyzeTrajectory(), Util::checkString(), Util::Manager< Data >::endReadManager(), Util::Exception::Exception(), McMd::DeformCommand::execute(), Util::XmlStartTag::finish(), McMd::Generator::generate(), McMd::McSystem::generateMolecules(), McMd::MdSystem::generateMolecules(), DdMd::AtomMap::isValid(), DdMd::GroupStorage< N >::isValid(), Util::Parameter::load(), McMd::McSimulation::load(), Util::ParamComposite::load(), Util::Factory< Data >::loadObject(), Util::ParamComposite::loadOptional(), DdMd::GroupStorage< N >::markSpanningGroups(), Util::XmlEndTag::match(), Util::XmlStartTag::matchLabel(), Util::MpiThrow(), Util::operator>>(), DdMd::Domain::ownerRank(), McMd::System::randomMolecule(), McMd::McMdConfigIo::read(), Tools::Processor::readCommands(), McMd::MdSimulation::readCommands(), McMd::McSimulation::readCommands(), DdMd::Simulation::readCommands(), Tools::HoomdConfigReader::readConfig(), McMd::MdSystem::readConfig(), Util::Factory< Data >::readObject(), Util::Blank::readParam(), Util::End::readParam(), Util::Begin::readParam(), Util::Parameter::readParam(), McMd::McCommandManager::readStandardCommand(), McMd::MdCommandManager::readStandardCommand(), DdMd::GroupDistributor< N >::receive(), DdMd::GroupStorage< N >::remove(), DdMd::AtomMap::removeLocal(), McMd::LinkMaster::reSetAtom(), McMd::LinkMaster::reSetAtoms(), DdMd::TwoStepIntegrator::run(), McMd::LogProgress::sample(), DdMd::LogEnergy::sample(), setFile(), Tools::Processor::setOptions(), McMd::MdSimulation::setOptions(), McMd::McSimulation::setOptions(), DdMd::Simulation::setOptions(), McMd::MdSimulation::simulate(), and McMd::McSimulation::simulate().