mirror of
https://github.com/ENSL/NS.git
synced 2024-12-11 21:31:04 +00:00
39 lines
1,001 B
C
39 lines
1,001 B
C
|
//========= Copyright <20> 1996-2002, Valve LLC, All rights reserved. ============
|
|||
|
//
|
|||
|
// Purpose:
|
|||
|
//
|
|||
|
// $NoKeywords: $
|
|||
|
//=============================================================================
|
|||
|
|
|||
|
#ifndef VGUI_FILEINPUTSTREAM_H
|
|||
|
#define VGUI_FILEINPUTSTREAM_H
|
|||
|
|
|||
|
//TODO : figure out how to get stdio out of here, I think std namespace is broken for FILE for forward declaring does not work in vc6
|
|||
|
|
|||
|
#include<stdio.h>
|
|||
|
#include<VGUI_InputStream.h>
|
|||
|
|
|||
|
namespace vgui
|
|||
|
{
|
|||
|
|
|||
|
class VGUIAPI FileInputStream : public InputStream
|
|||
|
{
|
|||
|
private:
|
|||
|
FILE* _fp;
|
|||
|
public:
|
|||
|
FileInputStream(const char* fileName,bool textMode);
|
|||
|
public:
|
|||
|
virtual void seekStart(bool& success);
|
|||
|
virtual void seekRelative(int count,bool& success);
|
|||
|
virtual void seekEnd(bool& success);
|
|||
|
virtual int getAvailable(bool& success);
|
|||
|
virtual uchar readUChar(bool& success);
|
|||
|
virtual void readUChar(uchar* buf,int count,bool& success);
|
|||
|
virtual void close(bool& success);
|
|||
|
virtual void close();
|
|||
|
};
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
#endif
|