RiIORead

Encapsulate IO

This is an abstract class and cannot be directly instanced.


[ IO | Source | Search | Keywords | Summary | Ancestors | All Members | Descendants ]

Quick Index

DESCRIPTION

Class Summary

class RiIORead
{
public:
~RiIORead() ;;
// Members
bool ReadChar(char &c); // pure virtual
bool ReadUChar(unsigned char &c); // pure virtual
bool ReadChars(char *s, int len); // pure virtual
bool ReadUChars(unsigned char *s, int len); // pure virtual
bool ReadUShort(int &s); // pure virtual
bool ReadUInt(unsigned int &i); // pure virtual
bool ReadInt(int &i); // pure virtual
bool ReadReal(RiReal &r); // pure virtual
bool ReadVector2(RiVector2 &v); // pure virtual
bool ReadVector3(RiVector3 &v); // pure virtual
protected:
}; // RiIORead


DESCRIPTION

Geared towards binary IO (input), with some generality allowed. The interface knows explicitly exactly how long each type is


~RiIORead() ;;

Destructor

    virtual ~RiIORead()   ;
;

Function is currently defined inline.


bool ReadChar(char &c);

1 byte

    virtual bool ReadChar(char &c);    

bool ReadUChar(unsigned char &c);

1 byte

    virtual bool ReadUChar(unsigned char &c);    

bool ReadChars(char *s, int len);

len bytes

    virtual bool ReadChars(char *s, int len);    

bool ReadUChars(unsigned char *s, int len);

len bytes

    virtual bool ReadUChars(unsigned char *s, int len);    

bool ReadUShort(int &s);

2 bytes

    virtual bool ReadUShort(int &s);    

bool ReadUInt(unsigned int &i);

4 bytes

    virtual bool ReadUInt(unsigned int &i);    

bool ReadInt(int &i);

4 bytes

    virtual bool ReadInt(int &i);    

bool ReadReal(RiReal &r);

4 bytes

    virtual bool ReadReal(RiReal &r);    

bool ReadVector2(RiVector2 &v);

2 * 4 bytes

    virtual bool ReadVector2(RiVector2 &v);    

bool ReadVector3(RiVector3 &v);

3 * 4 bytes

    virtual bool ReadVector3(RiVector3 &v);    

All Members

public:
// Members
bool ReadChar(char &c); // pure virtual
bool ReadUChar(unsigned char &c); // pure virtual
bool ReadChars(char *s, int len); // pure virtual
bool ReadUChars(unsigned char *s, int len); // pure virtual
bool ReadUShort(int &s); // pure virtual
bool ReadUInt(unsigned int &i); // pure virtual
bool ReadInt(int &i); // pure virtual
bool ReadReal(RiReal &r); // pure virtual
bool ReadVector2(RiVector2 &v); // pure virtual
bool ReadVector3(RiVector3 &v); // pure virtual
protected:

Ancestors

Class does not inherit from any other class.


Descendants


Generated from source by the Cocoon utilities on Fri Feb 25 15:15:21 2000 .