#include <FormattedChainLoggable.h>
Public Member Functions | |
FormattedChainLoggable (const ChainType &chain, std::tstring &format) | |
Constructor. | |
virtual std::tstring | GetStringValue () const |
Returns all elements of the m_wrappedChain formatted into a string using boost::format. | |
Private Member Functions | |
template<typename HeadType , typename TailType > | |
void | AppendChain (const Chain< HeadType, TailType > &chain, boost::tformat &formatter) const |
template<> | |
void | AppendChain (const EmptyChain &, boost::tformat &) const |
Private Attributes | |
std::tstring | m_format |
Format string. |
ChainType | Type of the wrapped Chain. |
Definition at line 31 of file FormattedChainLoggable.h.
FormattedChainLoggable | ( | const ChainType & | chain, | |
std::tstring & | format | |||
) | [inline] |
Constructor.
chain | The chain which should be wrapped. | |
format | Format string conforming to the boost::format specification (which is compatible with printf format specification, see http://www.boost.org/doc/libs/1_39_0/libs/format/doc/format.html#printf_directives for details). |
Definition at line 47 of file FormattedChainLoggable.h.
virtual std::tstring GetStringValue | ( | ) | const [inline, virtual] |
Returns all elements of the m_wrappedChain formatted into a string using boost::format.
The m_wrappedChain is processed in reverse, i.e. from the tail to the head.
Reimplemented from ChainLoggable< ChainType >.
Definition at line 56 of file FormattedChainLoggable.h.
References FormattedChainLoggable< ChainType >::m_format, and ChainLoggable< ChainType >::m_wrappedChain.