VMime
textPartFactory Class Reference

#include <textPartFactory.hpp>

Public Member Functions

template<class T>
void registerType (const mediaType &type)
shared_ptr< textPartcreate (const mediaType &type)

Static Public Member Functions

static textPartFactorygetInstance ()

Protected Types

typedef shared_ptr< textPart >(* AllocFunc) (void)
typedef std::vector< std::pair< mediaType, AllocFunc > > MapType

Protected Member Functions

 textPartFactory ()
 ~textPartFactory ()

Protected Attributes

MapType m_map

Member Typedef Documentation

◆ AllocFunc

typedef shared_ptr< textPart >(* AllocFunc) (void)
protected

◆ MapType

typedef std::vector<std::pair <mediaType, AllocFunc> > MapType
protected

Constructor & Destructor Documentation

◆ textPartFactory()

◆ ~textPartFactory()

~textPartFactory ( )
protected

Member Function Documentation

◆ create()

shared_ptr< textPart > create ( const mediaType & type)

◆ getInstance()

textPartFactory * getInstance ( )
static

◆ registerType()

template<class T>
void registerType ( const mediaType & type)

References m_map.

Referenced by textPartFactory().

Member Data Documentation

◆ m_map

MapType m_map
protected

Referenced by create(), and registerType().


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