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