13#ifndef ML_ERROR_OUTPUT_INFOS_H 
   14#define ML_ERROR_OUTPUT_INFOS_H 
   43ML_UTILS_START_NAMESPACE
 
  105  inline const char*     
getReason()
        const { 
return reason.c_str();        }
 
  108  inline const char*     
getHandling()
      const { 
return handling.c_str();      }
 
  111  inline const char*     
getFile()
          const { 
return file.c_str();          }
 
 
  158ML_UTILS_END_NAMESPACE
 
  167  inline ostream& 
operator<<(ostream& s, 
const ML_UTILS_NAMESPACE::ErrorOutputInfos &eoi)
 
  169    return s << 
"Message type   :" << eoi.getMessageType()   << endl <<
 
  170    "Error Code     :" << eoi.getErrorCode()     << endl <<
 
  171    "Library Prefix :" << eoi.getLibraryPrefix() << endl <<
 
  172    "Function Prefix:" << eoi.getFunctionPrefix()       << endl <<
 
  173    "Function Name  :" << eoi.getFunctionName()  << endl <<
 
  174    "Reason         :" << eoi.getReason()        << endl <<
 
  175    "Handling       :" << eoi.getHandling()      << endl <<
 
  176    "File Name      :" << eoi.getFile()          << endl <<
 
  177    "Time Stamp     :" << eoi.getTime()          << endl <<
 
  179    "Line Number    :" << eoi.getLine() << endl;
 
 
Class for performing date/time arithmetic, comparisons and formatting.
 
Struct that contains all information about errors, fatal errors, warnings, information,...
 
const char * getFunctionName() const
Returns the name of function which caused this error/debug/warning/information or tracing print.
 
MLMessageType messageType
The type of information represented by this class.
 
const char * getFile() const
Returns the name of the file which caused this error/debug/warning/information or tracing print.
 
int line
Line number which caused this error/debug/warning/information or tracing print.
 
std::string file
File which caused this error/debug/warning/information or tracing print.
 
ErrorOutputInfos & operator=(const ErrorOutputInfos &ei)
Assignment operator to get identical copy.
 
MLMessageType getMessageType() const
Returns the type of information represented by this class.
 
const char * getLibraryPrefix() const
Returns the prefix string to indicate the library from where the message comes (e....
 
ErrorOutputInfos()
Default constructor.
 
std::string handling
How the routine handled the error.
 
std::string reason
Reason why the this error/debug/warning/information or tracing occurs.
 
MLErrorCode getErrorCode() const
ErrorCode. If not set, ML_RESULT_OK is set.
 
const DateTime & getTime() const
Returns the time stamp when message arrived.
 
const char * getHandling() const
Returns how the routine handled the error.
 
std::string functionName
Name of function which caused this error/debug/warning/information or tracing print.
 
DateTime time
Time stamp when message arrived.
 
ErrorOutputInfos(const ErrorOutputInfos &ei)
Copy constructor.
 
std::string libraryPrefix
Library prefix to indicate the library from where the message comes.
 
const char * getFunctionPrefix() const
Returns the prefix string to be printed before the function.
 
MLErrorCode errorCode
ErrorCode. If not set then ML_RESULT_OK is set.
 
std::string fPrefix
Prefix string to be printed before the function.
 
int getLine() const
Returns the line number which caused this error/debug/warning/information or tracing print.
 
const char * getReason() const
Returns the reason why the this error/debug/warning/information or tracing print occurs.
 
Class to handle all ML debug prints, errors, warnings, and information.
 
#define ML_PREFIX
Library identification prefix for messages from the ML.
 
MLint32 MLErrorCode
Type of an ML Error code.
 
#define ML_RESULT_OK
No error. Everything seems to be okay.
 
MLMessageType
Message types handled by the ErrorOutput class.
 
MLEXPORT std::ostream & operator<<(std::ostream &s, const ml::Field &v)
Overloads the operator '<<' for stream output of Field objects.