Back to index

lightning-sunbird  0.9+nobinonly
Typedefs | Functions
prstrms.h File Reference
#include "prtypes.h"
#include "prio.h"
#include <iostream.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef int PRstreambuflen

Functions

class PR_IMPLEMENT (PRfilebuf)
class PR_IMPLEMENT (PRifstream)
class PR_IMPLEMENT (PRofstream)
class PR_IMPLEMENT (PRfstream)

Typedef Documentation

Definition at line 56 of file prstrms.h.


Function Documentation

class PR_IMPLEMENT ( PRfilebuf  )

Definition at line 70 of file prstrms.h.

                             : public streambuf
{
public:
    PRfilebuf();
    PRfilebuf(PRFileDesc *fd);
    PRfilebuf(PRFileDesc *fd, char * buffptr, int bufflen);
    ~PRfilebuf();
    virtual   int    overflow(int=EOF);
    virtual   int    underflow();
    virtual   streambuf *setbuf(char *buff, PRstreambuflen bufflen);
    virtual   streampos seekoff(streamoff, ios::seek_dir, int);
    virtual int sync();
    PRfilebuf *open(const char *name, int mode, int flags);
       PRfilebuf *attach(PRFileDesc *fd);
    PRfilebuf *close();
       int    is_open() const {return (_fd != 0);}
    PRFileDesc *fd(){return _fd;}

private:
    PRFileDesc * _fd;
    PRBool _opened;
       PRBool _allocated;
};
class PR_IMPLEMENT ( PRifstream  )

Definition at line 94 of file prstrms.h.

                              : public istream {
public:
       PRifstream();
       PRifstream(const char *, int mode=ios::in, int flags = 0);
       PRifstream(PRFileDesc *);
       PRifstream(PRFileDesc *, char *, int);
       ~PRifstream();

       streambuf * setbuf(char *, int);
       PRfilebuf* rdbuf(){return (PRfilebuf*) ios::rdbuf(); }

       void attach(PRFileDesc *fd);
       PRFileDesc *fd() {return rdbuf()->fd();}

       int is_open(){return rdbuf()->is_open();}
       void open(const char *, int mode=ios::in, int flags= 0);
       void close();
};
class PR_IMPLEMENT ( PRofstream  )

Definition at line 113 of file prstrms.h.

                               : public ostream {
public:
       PRofstream();
       PRofstream(const char *, int mode=ios::out, int flags = 0);
       PRofstream(PRFileDesc *);
       PRofstream(PRFileDesc *, char *, int);
       ~PRofstream();

       streambuf * setbuf(char *, int);
       PRfilebuf* rdbuf() { return (PRfilebuf*) ios::rdbuf(); }

       void attach(PRFileDesc *);
       PRFileDesc *fd() {return rdbuf()->fd();}

       int is_open(){return rdbuf()->is_open();}
       void open(const char *, int =ios::out, int = 0);
       void close();
};
class PR_IMPLEMENT ( PRfstream  )

Definition at line 132 of file prstrms.h.

                              : public iostream {
public:
       PRfstream();
       PRfstream(const char *name, int mode, int flags= 0);
       PRfstream(PRFileDesc *fd);
       PRfstream(PRFileDesc *fd, char *buff, int bufflen);
       ~PRfstream();

       streambuf * setbuf(char *, int);
       PRfilebuf* rdbuf(){ return (PRfilebuf*) ostream::rdbuf(); }

       void attach(PRFileDesc *);
       PRFileDesc *fd() { return rdbuf()->fd(); }

       int is_open() { return rdbuf()->is_open(); }
       void open(const char *, int, int = 0);
       void close();
};