- Cal3D 0.11 API Reference -

streamsource.h
1//****************************************************************************//
2// streamsource.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_STREAMSOURCE_H
12#define CAL_STREAMSOURCE_H
13
14//****************************************************************************//
15// Includes //
16//****************************************************************************//
17
18#include "cal3d/global.h"
19#include "cal3d/datasource.h"
20#include <istream>
21
30class CAL3D_API CalStreamSource : public CalDataSource
31{
32public:
33 CalStreamSource(std::istream& inputStream);
34 virtual ~CalStreamSource();
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 readShort(short& value);
41 virtual bool readInteger(int& value);
42 virtual bool readString(std::string& strValue);
43
44protected:
45
46 std::istream *mInputStream;
47
48private:
49 CalStreamSource(); //Can't use this
50};
51
52#endif
CalDataSource abstract interface class.
Definition datasource.h:31
CalStreamSource class.
Definition streamsource.h:31

Generated by The Cal3D Team with Doxygen 1.10.0