libpointmatcher  1.3.1
Public Member Functions | List of all members
PointMatcherSupport::Logger Struct Reference

The logger interface, used to output warnings and informations. More...

#include <PointMatcher.h>

Inheritance diagram for PointMatcherSupport::Logger:
PointMatcherSupport::Parametrizable

Public Member Functions

 Logger ()
 Construct without parameter.
 
 Logger (const std::string &className, const ParametersDoc paramsDoc, const Parameters &params)
 Construct with parameters.
 
virtual ~Logger ()
 Virtual destructor, do nothing.
 
virtual bool hasInfoChannel () const
 Return whether this logger provides the info channel.
 
virtual void beginInfoEntry (const char *file, unsigned line, const char *func)
 Start a new entry into the info channel.
 
virtual std::ostream * infoStream ()
 Return the info stream, 0 if hasInfoChannel() returns false.
 
virtual void finishInfoEntry (const char *file, unsigned line, const char *func)
 Finish the entry into the info channel.
 
virtual bool hasWarningChannel () const
 Return whether this logger provides the warning channel.
 
virtual void beginWarningEntry (const char *file, unsigned line, const char *func)
 Start a new entry into the warning channel.
 
virtual std::ostream * warningStream ()
 Return the warning stream, 0 if hasWarningChannel() returns false.
 
virtual void finishWarningEntry (const char *file, unsigned line, const char *func)
 Finish the entry into the warning channel.
 
- Public Member Functions inherited from PointMatcherSupport::Parametrizable
 Parametrizable ()
 Construct a documentation of parameters from a description in the source. More...
 
 Parametrizable (const std::string &className, const ParametersDoc paramsDoc, const Parameters &params)
 Construct with documented parameters.
 
virtual ~Parametrizable ()
 Virtual destructor, do nothing.
 
std::string getParamValueString (const std::string &paramName)
 Get the value of a parameter, as a string.
 
template<typename S >
get (const std::string &paramName)
 Return the value of paramName, lexically-casted to S.
 

Additional Inherited Members

- Public Types inherited from PointMatcherSupport::Parametrizable
typedef bool(* LexicalComparison) (std::string a, std::string b)
 A function that returns whether a is smaller than b.
 
typedef std::vector< ParameterDocParametersDoc
 The documentation of all parameters.
 
typedef std::string Parameter
 alias
 
typedef std::map< std::string, ParameterParameters
 Parameters stored as a map of string->string.
 
typedef std::set< std::string > ParametersUsed
 Parameters whose value has been read.
 
- Static Public Member Functions inherited from PointMatcherSupport::Parametrizable
template<typename S >
static bool Comp (std::string a, std::string b)
 Return whether a < b, lexically casted to S.
 
- Public Attributes inherited from PointMatcherSupport::Parametrizable
const std::string className
 name of the class
 
const ParametersDoc parametersDoc
 documentation of parameters
 
Parameters parameters
 parameters with their values encoded in string
 
ParametersUsed parametersUsed
 parameters whose value has actually been read
 

Detailed Description

The logger interface, used to output warnings and informations.


The documentation for this struct was generated from the following files: