- Cal3D 0.11 API Reference -

buffersource.h
1 //****************************************************************************//
2 // buffersource.h //
3 // Copyright (C) 2001-2003 Bruno 'Beosil' Heidelberger //
4 //****************************************************************************//
5 // This library is free software; you can redistribute it and/or modify it //
6 // under the terms of the GNU Lesser General Public License as published by //
7 // the Free Software Foundation; either version 2.1 of the License, or (at //
8 // your option) any later version. //
9 //****************************************************************************//
10 
11 #ifndef CAL_BUFFERSOURCE_H
12 #define CAL_BUFFERSOURCE_H
13 
14 //****************************************************************************//
15 // Includes //
16 //****************************************************************************//
17 
18 #include "cal3d/global.h"
19 #include "cal3d/datasource.h"
20 #include <istream>
21 
30 class CAL3D_API CalBufferSource : public CalDataSource
31 {
32 public:
33  CalBufferSource(void* inputBuffer);
34  virtual ~CalBufferSource();
35 
36  virtual bool ok() const;
37  virtual void setError() const;
38  virtual bool readBytes(void* pBuffer, int length);
39  virtual bool readFloat(float& value);
40  virtual bool readInteger(int& value);
41  virtual bool readString(std::string& strValue);
42 
43 protected:
44 
45  void* mInputBuffer;
46  unsigned int mOffset;
47 
48 private:
49  CalBufferSource(); //Can't use this
50 };
51 
52 #endif
CalDataSource abstract interface class.
Definition: datasource.h:34
CalBufferSource class.
Definition: buffersource.h:30

Generated at Thu Sep 4 2014 00:32:52 by The Cal3D Team with Doxygen 1.8.7