Google APIs Client Library for C++
Base64CodecFactory Class Reference

CodecFactory for creating and configuring Base64Codecs. More...

#include "client/data/base64_codec.h"

+ Inheritance diagram for Base64CodecFactory:

List of all members.

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 CodecNew (util::Status *status)
 Constructs and configures a new codec instance.

Detailed Description

CodecFactory for creating and configuring Base64Codecs.


Constructor & Destructor Documentation

Standard constructor.

This will construct standard (non-websafe) base64 encodings by default.

Standard destructor.


Member Function Documentation

int chunk_size ( ) const [inline]

Returns the desired chunk size.

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

Constructs and configures a new codec instance.

Parameters:
[out]statusok or reason for failure.
Returns:
NULL on failure.

Implements CodecFactory.

void set_chunk_size ( int  size) [inline]

Sets the desired chunk size for codecs.

Parameters:
[in]sizeThe 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.


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