Google APIs Client Library for C++
data_reader.h File Reference
#include <istream>
#include <string>
#include <vector>
#include "googleapis/base/callback.h"
#include "googleapis/base/integral_types.h"
#include "googleapis/base/macros.h"
#include "googleapis/base/scoped_ptr.h"
#include "googleapis/strings/stringpiece.h"
#include "googleapis/util/status.h"

Go to the source code of this file.

Classes

class  DataReader
 Interface for reading from an asynchronous binary data stream. More...

Namespaces

namespace  googleapis
 

A service request pager acts as a high level iterator for paging through results.


namespace  googleapis::client
 

namespace thread


Functions

DataReader * NewManagedInvalidDataReader (util::Status status, Closure *deleter)
 Returns a data reader that is always in an error state.
DataReader * NewUnmanagedInvalidDataReader (util::Status status)
 Returns an unmanaged invalid data reader.
DataReader * NewManagedInMemoryDataReader (const StringPiece &data, Closure *deleter)
 Reads from a contiguous byte array.
DataReader * NewUnmanagedInMemoryDataReader (const StringPiece &data)
 Creates an unmanaged InMenoryDataReaderThis is shorthand for NewManagedInMemoryDataReader(data, NULL)
DataReader * NewManagedInMemoryDataReader (string *data)
 Returns a managed reader that consumes a dynanic input string.
DataReader * NewManagedInMemoryDataReader (const string &data)
 Creates a managed InMemoryDataReader from an existing string.
DataReader * NewManagedBufferedDataReader (DataReader *reader, int64 buffer_bytes)
 Returns an InMemoryDataReader that returns the content from another data reader.
DataReader * NewUnmanagedBufferedDataReader (DataReader *reader, int64 buffer_bytes)
 Similar to NewUManagedBufferdDataReader but the caller retains ownership of the original reader.
DataReader * NewManagedBufferedDataReader (DataReader *reader, int64 buffer_bytes, Closure *deleter)
 A general form of a managed BufferedDataReader.
DataReader * NewUnmanagedCompositeDataReader (const vector< DataReader * > &readers)
 Returns an unmanaged composite DataReader that reads directly from one or more other data readers.
DataReader * NewManagedCompositeDataReader (const vector< DataReader * > &readers, Closure *deleter)
 Returns a managed composite DataReader that reads directly from one or more other data readers.
Closure * NewCompositeReaderListAndContainerDeleter (vector< DataReader * > *readers)
 Creates a managed closure that deletes an entire vector of readers when run.
DataReader * NewManagedFileDataReader (const StringPiece &path, Closure *deleter)
 Creates a managed DataReader that reads its byte stream from a file on disk.
DataReader * NewUnmanagedFileDataReader (const StringPiece &path)
 Creates an unmanaged DataReader that reads its byte stream from a file on disk.
DataReader * NewManagedIstreamDataReader (std::istream *stream, Closure *deleter)
 Creates a managed reader that reads its byte stream from a generic C++ std::istream of unknown length.
DataReader * NewManagedIstreamDataReaderWithLength (std::istream *stream, int64 length, Closure *deleter)
 Creates a managed reader that reads its byte stream from a generic C++ std::istream of unknown length.
DataReader * NewUnmanagedIstreamDataReader (std::istream *stream)
 Creates an unmanaged reader that reads its byte stream from a generic C++ std::istream of unknown length.
DataReader * NewUnmanagedIstreamDataReaderWithLength (std::istream *stream, int64 length)
 Creates an unmanaged reader that reads its byte stream from a generic C++ std::istream of a known length.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines