libimage  0.25.4
 All Classes Namespaces Files Functions Variables Enumerations Macros Pages
Public Member Functions | Private Attributes | List of all members
BufferedDataSource Class Reference

#include <Data.h>

Inheritance diagram for BufferedDataSource:
Inheritance graph
Collaboration diagram for BufferedDataSource:
Collaboration graph

Public Member Functions

 BufferedDataSource (DataStream &dataStream)
virtual ~BufferedDataSource ()
const uint8_t * getData (size_t &size)
bool releaseData ()
std::string getType ()
int getHttpStatus ()
std::string getEncoding ()
- Public Member Functions inherited from DataSource
virtual ~DataSource ()

Private Attributes

std::string type
std::string encoding
int httpStatus
size_t dataSize
uint8_t * data

Detailed Description

Classe transformant un DataStream en DataSource.

Constructor & Destructor Documentation

BufferedDataSource::BufferedDataSource ( DataStream dataStream)

Constructeur. Le paramètre dataStream est complètement lu. Il est donc inutilisable par la suite.

Here is the call graph for this function:

virtual BufferedDataSource::~BufferedDataSource ( )
inlinevirtual

Destructeur

Member Function Documentation

const uint8_t* BufferedDataSource::getData ( size_t &  size)
inlinevirtual

Implémentation de l'interface DataSource

Implements DataSource.

std::string BufferedDataSource::getEncoding ( )
inlinevirtual
Returns
l'encodage du dataStream

Implements DataSource.

int BufferedDataSource::getHttpStatus ( )
inlinevirtual
Returns
le status du dataStream

Implements DataSource.

std::string BufferedDataSource::getType ( )
inlinevirtual
Returns
le type du dataStream

Implements DataSource.

bool BufferedDataSource::releaseData ( )
inlinevirtual

Le buffer ne peut pas être libéré car on n'a pas de moyen de le reremplir pour un éventuel futur getData

Returns
false

Implements DataSource.


The documentation for this class was generated from the following files: