- Cal3D 0.9 API Reference -

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

datasource.h

00001 //****************************************************************************//
00002 // datasource.h                                                              //
00003 // Copyright (C) 2001-2003 Bruno 'Beosil' Heidelberger                       //
00004 //****************************************************************************//
00005 // This library is free software; you can redistribute it and/or modify it    //
00006 // under the terms of the GNU Lesser General Public License as published by   //
00007 // the Free Software Foundation; either version 2.1 of the License, or (at    //
00008 // your option) any later version.                                            //
00009 //****************************************************************************//
00010 
00011 #ifndef CAL_DATASOURCE_H
00012 #define CAL_DATASOURCE_H
00013 
00014 //****************************************************************************//
00015 // Includes                                                                   //
00016 //****************************************************************************//
00017 
00018 #ifdef HAVE_CONFIG_H
00019 #include "config.h"
00020 #endif
00021 
00022 #include <string>
00023 
00024 #include "cal3d/global.h"
00025 
00034 class CAL3D_API CalDataSource
00035 {
00036 public:
00037 
00038    virtual bool ok() const = 0;
00039    virtual void setError() const = 0;
00040    virtual bool readBytes(void* pBuffer, int length) = 0;
00041    virtual bool readFloat(float& value) = 0;
00042    virtual bool readInteger(int& value) = 0;
00043    virtual bool readString(std::string& strValue) = 0;
00044 
00045 
00046 
00047 
00048 };
00049 
00050 #endif

Generated at Sun Oct 12 18:38:47 2003 by The Cal3D Team with doxygen 1.2.14 © 1997-2001 Dimitri van Heesch