Go to the documentation of this file.
   36 #ifndef __POINTMATCHER_LOGGER_H 
   37 #define __POINTMATCHER_LOGGER_H 
   48                         return "Does not log anything.";
 
   59                         return "Log using std::stream.";
 
   64                                 {
"infoFileName", 
"name of the file to output infos to, or an empty string to output infos to the standard output stream", 
""},
 
   65                                 {
"warningFileName", 
"name of the file to output warnings to, or an empty string to output warnings to the standard error stream", 
""},
 
   66                                 {
"displayLocation", 
"display the location of message in source code", 
"0"}
 
   77                 virtual void beginInfoEntry(
const char *file, 
unsigned line, 
const char *func);
 
   79                 virtual void finishInfoEntry(
const char *file, 
unsigned line, 
const char *func);
 
   81                 virtual void beginWarningEntry(
const char *file, 
unsigned line, 
const char *func);
 
   93 #endif // __POINTMATCHER_LOGGER_H 
  
virtual void beginWarningEntry(const char *file, unsigned line, const char *func)
Start a new entry into the warning channel.
static const std::string description()
virtual void beginInfoEntry(const char *file, unsigned line, const char *func)
Start a new entry into the info channel.
const std::string warningFileName
std::ofstream _infoFileStream
static const std::string description()
const bool displayLocation
The logger interface, used to output warnings and informations.
virtual std::ostream * warningStream()
Return the warning stream, 0 if hasWarningChannel() returns false.
virtual void finishInfoEntry(const char *file, unsigned line, const char *func)
Finish the entry into the info channel.
FileLogger(const Parameters ¶ms=Parameters())
virtual std::ostream * infoStream()
Return the info stream, 0 if hasInfoChannel() returns false.
const std::string infoFileName
std::vector< ParameterDoc > ParametersDoc
The documentation of all parameters.
static const ParametersDoc availableParameters()
virtual void finishWarningEntry(const char *file, unsigned line, const char *func)
Finish the entry into the warning channel.
virtual bool hasWarningChannel() const
Return whether this logger provides the warning channel.
std::ostream _warningStream
std::ofstream _warningFileStream
Functions and classes that are not dependant on scalar type are defined in this namespace.
virtual bool hasInfoChannel() const
Return whether this logger provides the info channel.
std::map< std::string, Parameter > Parameters
Parameters stored as a map of string->string.
mp2p_icp
Author(s): 
autogenerated on Mon May 26 2025 02:45:49