23 #ifndef LOG4CPLUS_SPI_FACTORY_HEADER_
24 #define LOG4CPLUS_SPI_FACTORY_HEADER_
26 #include "dcmtk/oflog/config.h"
128 typedef T product_type;
140 bool putValResult = putVal(object->getTypeName(),
object.
get());
150 return OFstatic_cast(T*, getVal(name));
154 virtual void deleteObject(
void *
object)
const {
155 delete OFstatic_cast(T*,
object);
160 typedef FactoryRegistry<AppenderFactory> AppenderFactoryRegistry;
161 typedef FactoryRegistry<LayoutFactory> LayoutFactoryRegistry;
162 typedef FactoryRegistry<FilterFactory> FilterFactoryRegistry;
168 LOG4CPLUS_EXPORT AppenderFactoryRegistry& getAppenderFactoryRegistry();
173 LOG4CPLUS_EXPORT LayoutFactoryRegistry& getLayoutFactoryRegistry();
178 LOG4CPLUS_EXPORT FilterFactoryRegistry& getFilterFactoryRegistry();
184 #endif // LOG4CPLUS_SPI_FACTORY_HEADER_
This header defines Filter and all of it's subclasses.
This class is used to layout strings sent to an log4cplus::Appender.
Users should extend this class to implement customized logging event filtering.
This is the base class for all factories.
This template class is used as a "Factory Registry".
bool put(OFauto_ptr< T > object)
Used to enter an object into the registry.
This abstract class defines the "Factory" interface to create "Appender" objects. ...
T * get() const
get the pointer that is managed by this class.
This is the base class used to implement the functionality required by the ObjectRegistry template cl...
This abstract class defines the "Factory" interface to create "Layout" objects.
a simple class which makes sure a pointer is deleted once it goes out of scope.
a simple string class that implements a subset of std::string.
Extend this class for implementing your own strategies for printing log statements.
This abstract class defines the "Factory" interface to create "Appender" objects. ...