Google APIs Client Library for C++
|
CodecFactory for creating and configuring Base64Codecs. More...
#include "client/data/base64_codec.h"
Public Member Functions | |
Base64CodecFactory () | |
Standard constructor. | |
void | set_chunk_size (int size) |
Sets the desired chunk size for codecs. | |
int | chunk_size () const |
Returns the desired chunk size. | |
void | set_websafe (bool websafe) |
Whether to construct encoders with the websafe encoding. | |
bool | websafe () const |
Returns whether to construct encoders with the websafe encoding. | |
~Base64CodecFactory () | |
Standard destructor. | |
virtual Codec * | New (util::Status *status) |
Constructs and configures a new codec instance. |
CodecFactory for creating and configuring Base64Codecs.
Standard constructor.
This will construct standard (non-websafe) base64 encodings by default.
~Base64CodecFactory | ( | ) |
Standard destructor.
int chunk_size | ( | ) | const [inline] |
Returns the desired chunk size.
virtual Codec* New | ( | util::Status * | status | ) | [virtual] |
Constructs and configures a new codec instance.
[out] | status | ok or reason for failure. |
Implements CodecFactory.
void set_chunk_size | ( | int | size | ) | [inline] |
Sets the desired chunk size for codecs.
[in] | size | The desired size used to configure new Codec instances. |
void set_websafe | ( | bool | websafe | ) | [inline] |
Whether to construct encoders with the websafe encoding.
bool websafe | ( | ) | const [inline] |
Returns whether to construct encoders with the websafe encoding.