summaryrefslogtreecommitdiff
path: root/ipstdio.h
blob: bb6c14fd5342ac6611d53f38ef6371e102b5f710 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*

	ipstdio.h
	Interface for perl stdio functions

*/

#ifndef __Inc__IPerlStdIO___
#define __Inc__IPerlStdIO___

#ifndef PerlIO
typedef struct _PerlIO PerlIO;
#endif

class IPerlStdIO
{
public:
	virtual PerlIO* Stdin(void) = 0;
	virtual PerlIO* Stdout(void) = 0;
	virtual PerlIO* Stderr(void) = 0;
	virtual PerlIO* Open(const char *, const char *, int &err) = 0;
	virtual int Close(PerlIO*, int &err) = 0;
	virtual int Eof(PerlIO*, int &err) = 0;
	virtual int Error(PerlIO*, int &err) = 0;
	virtual void Clearerr(PerlIO*, int &err) = 0;
	virtual int Getc(PerlIO*, int &err) = 0;
	virtual char* GetBase(PerlIO *, int &err) = 0;
	virtual int GetBufsiz(PerlIO *, int &err) = 0;
	virtual int GetCnt(PerlIO *, int &err) = 0;
	virtual char* GetPtr(PerlIO *, int &err) = 0;
	virtual int Putc(PerlIO*, int, int &err) = 0;
	virtual int Puts(PerlIO*, const char *, int &err) = 0;
	virtual int Flush(PerlIO*, int &err) = 0;
	virtual int Ungetc(PerlIO*,int, int &err) = 0;
	virtual int Fileno(PerlIO*, int &err) = 0;
	virtual PerlIO* Fdopen(int, const char *, int &err) = 0;
	virtual SSize_t Read(PerlIO*,void *,Size_t, int &err) = 0;
	virtual SSize_t Write(PerlIO*,const void *,Size_t, int &err) = 0;
	virtual void SetCnt(PerlIO *, int, int &err) = 0;
	virtual void SetPtrCnt(PerlIO *, char *, int, int& err) = 0;
	virtual void Setlinebuf(PerlIO*, int &err) = 0;
	virtual int Printf(PerlIO*, int &err, const char *,...) = 0;
	virtual int Vprintf(PerlIO*, int &err, const char *, va_list) = 0;
	virtual long Tell(PerlIO*, int &err) = 0;
	virtual int Seek(PerlIO*, off_t, int, int &err) = 0;
	virtual void Rewind(PerlIO*, int &err) = 0;
	virtual PerlIO*	Tmpfile(int &err) = 0;
	virtual int Getpos(PerlIO*, Fpos_t *, int &err) = 0;
	virtual int Setpos(PerlIO*, const Fpos_t *, int &err) = 0;
	virtual void Init(int &err) = 0;
	virtual void InitOSExtras(void* p) = 0;
};

#endif	/* __Inc__IPerlStdIO___ */