VMime
|
Classes | |
class | registeredEncoder |
Public Member Functions | |
template<class E > | |
void | registerName (const string &name) |
shared_ptr< encoder > | create (const string &name) |
const shared_ptr< const registeredEncoder > | getEncoderByName (const string &name) const |
size_t | getEncoderCount () const |
const shared_ptr< const registeredEncoder > | getEncoderAt (const size_t pos) const |
const std::vector< shared_ptr < const registeredEncoder > > | getEncoderList () const |
Static Public Member Functions | |
static shared_ptr< encoderFactory > | getInstance () |
A factory to create 'encoder' objects for the specified encoding.
Create a new encoder instance from an encoding name.
name | encoding name (eg. "base64") |
exceptions::no_encoder_available | if no encoder is registered for this encoding |
References encoderFactory::getEncoderByName().
const shared_ptr< const encoderFactory::registeredEncoder > getEncoderAt | ( | const size_t | pos | ) | const |
Return the registered encoder at the specified position.
pos | position of the registered encoder to return |
const shared_ptr< const encoderFactory::registeredEncoder > getEncoderByName | ( | const string & | name | ) | const |
Return information about a registered encoder.
name | encoding name |
exceptions::no_encoder_available | if no encoder is registered for this encoding |
References stringUtils::toLower().
Referenced by encoderFactory::create().
size_t getEncoderCount | ( | ) | const |
Return the number of registered encoders.
const std::vector< shared_ptr< const encoderFactory::registeredEncoder > > getEncoderList | ( | ) | const |
Return a list of all registered encoders.
|
static |
Referenced by SASLContext::decodeB64(), SASLContext::encodeB64(), and encoding::getEncoder().
void registerName | ( | const string & | name | ) |
Register a new encoder by its encoding name.
name | encoding name |
References stringUtils::toLower().