- Cal3D 0.11 API Reference -

datasource.h
1 //****************************************************************************//
2 // datasource.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_DATASOURCE_H
12 #define CAL_DATASOURCE_H
13 
14 //****************************************************************************//
15 // Includes //
16 //****************************************************************************//
17 
18 #ifdef HAVE_CONFIG_H
19 #include "config.h"
20 #endif
21 
22 #include <string>
23 
24 #include "cal3d/global.h"
25 
34 class CAL3D_API CalDataSource
35 {
36 public:
37 
38  virtual bool ok() const = 0;
39  virtual void setError() const = 0;
40  virtual bool readBytes(void* pBuffer, int length) = 0;
41  virtual bool readFloat(float& value) = 0;
42  virtual bool readInteger(int& value) = 0;
43  virtual bool readString(std::string& strValue) = 0;
44  virtual ~CalDataSource() {};
45 
46 };
47 
48 #endif
CalDataSource abstract interface class.
Definition: datasource.h:34

Generated at Wed Nov 26 2014 05:33:20 by The Cal3D Team with Doxygen 1.8.7