Field3D
Msg Namespace Reference

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.

Detailed Description

Contains logging-related functions.


Enumeration Type Documentation

Used by the Msg::print() call.

Enumerator:
SevMessage 
SevWarning 

Definition at line 66 of file Log.h.


Function Documentation

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 SevWarning, and SevMessage.

Referenced by FieldRes::setMapping(), Field3DInputFile::readLayer(), Field3DInputFile::readProxyLayer(), Field3DOutputFile::createNewPartition(), Field3DOutputFile::writeLayer(), Field3DOutputFile::writeScalarLayer(), Field3DOutputFile::writeVectorLayer(), readField(), print(), SparseField::iterator::operator*(), SparseField::iterator::operator->(), SparseField::fastLValue(), SparseFieldIO::writeInternal(), SparseFile::Reference::openFile(), SparseFile::FileReferences::append(), ClassFactory::registerField(), ClassFactory::registerFieldIO(), ClassFactory::registerFieldMapping(), ClassFactory::registerFieldMappingIO(), Field3DFileBase::getIntScalarLayerNames(), Field3DFileBase::getIntVectorLayerNames(), Field3DFileBase::closeInternal(), Field3DInputFile::readPartitionAndLayerInfo(), Field3DInputFile::parseLayer(), Field3DInputFile::readMetadata(), Field3DInputFile::readGroupMembership(), Field3DOutputFile::writeMapping(), Field3DOutputFile::writeMetadata(), Field3DOutputFile::writeGlobalMetadata(), Field3DOutputFile::writeGroupMembership(), writeField(), readFieldMapping(), writeFieldMapping(), NullFieldMappingIO::read(), NullFieldMappingIO::write(), MatrixFieldMappingIO::read(), MatrixFieldMappingIO::write(), FrustumFieldMappingIO::read(), FrustumFieldMappingIO::write(), Hdf5Util::writeAttribute(), PluginLoader::loadPlugins(), SparseFieldIO::read(), and SparseFieldIO::write().

{
  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); }