Google APIs Client Library for C++
CodecFactory Class Reference

A factory for creating Codec instances. More...

#include "client/data/codec.h"

+ Inheritance diagram for CodecFactory:

List of all members.

Public Member Functions

 CodecFactory ()
 Standard constructor.
virtual ~CodecFactory ()
 Standard destructor.
virtual CodecNew (util::Status *status)=0
 The factory method that creates a new instance.

Detailed Description

A factory for creating Codec instances.

This factory must be subclassed for a particualr concrete Codec. The subclasses may provide additional configuration parameters particular to the encoding/decoding scheme they implement.

See also:
Codec

Constructor & Destructor Documentation

Standard constructor.

virtual ~CodecFactory ( ) [virtual]

Standard destructor.


Member Function Documentation

virtual Codec* New ( util::Status status) [pure virtual]

The factory method that creates a new instance.

Parameters:
[out]statusok on success, otherwise the reason for failure.
Returns:
Ownership of the new instance is passed back to the caller.

Implemented in OpenSslCodecFactory, and Base64CodecFactory.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines