11#ifndef CAL_BUFFERSOURCE_H
12#define CAL_BUFFERSOURCE_H
18#include "cal3d/global.h"
19#include "cal3d/datasource.h"
36 virtual bool ok()
const;
38 virtual bool readBytes(
void *pBuffer,
int length);
42 virtual bool readString(std::string& strValue);
CalBufferSource(void *inputBuffer)
Constructs a buffer source instance from an existing memory buffer.
Definition buffersource.cpp:30
virtual bool ok() const
Checks whether the data source is in a good state.
Definition buffersource.cpp:56
virtual bool readFloat(float &value)
Reads a float.
Definition buffersource.cpp:110
virtual bool readShort(short &value)
Reads a short.
Definition buffersource.cpp:133
virtual bool readInteger(int &value)
Reads an integer.
Definition buffersource.cpp:156
virtual bool readString(std::string &strValue)
Reads a string.
Definition buffersource.cpp:179
virtual bool readBytes(void *pBuffer, int length)
Reads a number of bytes.
Definition buffersource.cpp:87
virtual void setError() const
Sets the error code and message related to a memory buffer source.
Definition buffersource.cpp:69
CalDataSource abstract interface class.
Definition datasource.h:31