# Loggable Class Reference

Base class for objects that can output their string representation. More...

`#include <Loggable.h>`

Inheritance diagram for Loggable:

List of all members.

## Public Member Functions
virtual std::tstring | GetTypeName () const
| Returns the string representation of this Loggable.
virtual std::tstring | GetHumanReadableTypeName () const
virtual std::tstring | GetStringValue () const =0
| Returns the string representation of the type of this Loggable.

## Detailed Description

Base class for objects that can output their string representation.

Should not be used directly, please inherit from SimpleLoggable or CompositeLoggable instead.

Definition at line 30 of file Loggable.h.

## Member Function Documentation

virtual std::tstring GetStringValue | ( |  | ) | const`[pure virtual]`

Returns the string representation of the type of this Loggable.

Preferalby this should be a short, human-readable representation of the type, not necessarily reflecting the real type of the object.

Implemented in ChainLoggable< ChainType >, FormattedChainLoggable< ChainType >, GenericSimpleLoggable< T >, VectorLoggable< T >, and ChainLoggable< ChainType >.

Referenced by XMLLogPrinter::DoFormatMessage(), SimpleTextLogPrinter::DoFormatMessage(), XMLContentsPrinter::LogContentInternal(), and SimpleContentsPrinter::LogContentInternal().

The documentation for this class was generated from the following file:

- Loggable.h