|
Field3D
|
Contains logging-related functions. More...
Enumerations | |
| enum | Severity { SevMessage, SevWarning } |
| Used by the Msg::print() call. More... | |
Functions | |
| void | print (Severity severity, const std::string &message) |
| Sends the string to the assigned output, prefixing the message with the severity. | |
| void | print (const std::string &message) |
| Sends the string to the assigned output. | |
Contains logging-related functions.
| enum Msg::Severity |
| void Msg::print | ( | Severity | severity, |
| const std::string & | message | ||
| ) |
Sends the string to the assigned output, prefixing the message with the severity.
Definition at line 62 of file Log.cpp.
References SevMessage, and SevWarning.
Referenced by SparseFile::FileReferences::append(), Field3DFileBase::closeInternal(), Field3DOutputFile::createNewPartition(), SparseField< Data_T >::fastLValue(), Field3DFileBase::getIntScalarLayerNames(), Field3DFileBase::getIntVectorLayerNames(), PluginLoader::loadPlugins(), SparseFile::Reference< Data_T >::openFile(), SparseField< Data_T >::iterator::operator*(), SparseField< Data_T >::iterator::operator->(), Field3DInputFile::parseLayer(), print(), SparseFieldIO::read(), FrustumFieldMappingIO::read(), MatrixFieldMappingIO::read(), NullFieldMappingIO::read(), readField(), readFieldMapping(), Field3DInputFile::readGroupMembership(), Field3DInputFile::readLayer(), Field3DInputFile::readMetadata(), Field3DInputFile::readPartitionAndLayerInfo(), Field3DInputFile::readProxyLayer(), ClassFactory::registerField(), ClassFactory::registerFieldIO(), ClassFactory::registerFieldMapping(), ClassFactory::registerFieldMappingIO(), FieldRes::setMapping(), SparseFieldIO::write(), FrustumFieldMappingIO::write(), MatrixFieldMappingIO::write(), NullFieldMappingIO::write(), Hdf5Util::writeAttribute(), writeField(), writeFieldMapping(), Field3DOutputFile::writeGlobalMetadata(), Field3DOutputFile::writeGroupMembership(), SparseFieldIO::writeInternal(), Field3DOutputFile::writeLayer(), Field3DOutputFile::writeMapping(), Field3DOutputFile::writeMetadata(), Field3DOutputFile::writeScalarLayer(), and Field3DOutputFile::writeVectorLayer().
{
switch(severity) {
case SevWarning:
cout << "WARNING: ";
break;
case SevMessage:
default:
break;
// Do nothing
}
cout << message << endl;
}
| void Msg::print | ( | const std::string & | message | ) | [inline] |
Sends the string to the assigned output.
Definition at line 76 of file Log.h.
References print(), and SevMessage.
{ print(SevMessage, message); }