Vault  4.1
Public Member Functions
VLogAppenderFactory Class Reference

The abstract base class is what you implement to allow an appender class to be dynamically instantiated from settings, typically during a call to configure() at startup. More...

#include <vlogger.h>

Inheritance diagram for VLogAppenderFactory:
VCoutLogAppenderFactory VFileLogAppenderFactory VRollingFileLogAppenderFactory VSilentLogAppenderFactory VStringLogAppenderFactory VStringVectorLogAppenderFactory

List of all members.

Public Member Functions

virtual VLogAppenderPtr instantiateLogAppender (const VSettingsNode &settings, const VSettingsNode &defaults) const =0
 Instantiates the concreted appender class from the specified settings.
virtual void addInfo (VBentoNode &infoNode) const =0
 For diagnostic purposes, adds the properties/state of this factory to the supplied Bento node.

Detailed Description

The abstract base class is what you implement to allow an appender class to be dynamically instantiated from settings, typically during a call to configure() at startup.

Definition at line 648 of file vlogger.h.


Member Function Documentation

virtual VLogAppenderPtr VLogAppenderFactory::instantiateLogAppender ( const VSettingsNode settings,
const VSettingsNode defaults 
) const [pure virtual]

Instantiates the concreted appender class from the specified settings.

Parameters:
settingssettings to use to configure the appender
defaultsoptional default settings for the appender to use if not specified in settings

Implemented in VStringVectorLogAppenderFactory, VStringLogAppenderFactory, VSilentLogAppenderFactory, VRollingFileLogAppenderFactory, VFileLogAppenderFactory, and VCoutLogAppenderFactory.

virtual void VLogAppenderFactory::addInfo ( VBentoNode infoNode) const [pure virtual]

For diagnostic purposes, adds the properties/state of this factory to the supplied Bento node.

Concrete classes should add their type-specific info, primarily the factory and appender class names.

Parameters:
infoNodea Bento node to which to add properties describing this factory, specifically a string of name "type" whose value is the appender class name

Implemented in VStringVectorLogAppenderFactory, VStringLogAppenderFactory, VSilentLogAppenderFactory, VRollingFileLogAppenderFactory, VFileLogAppenderFactory, and VCoutLogAppenderFactory.


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

Copyright ©1997-2014 Trygve Isaacson. All rights reserved. This documentation was generated with Doxygen.