OWLNext 7.0
Borland's Object Windows Library for the modern age
|
TEventHandler, TStreamableBase, and TGdiBase are important base classes. More...
Classes | |
class | owl::TResponseTableEntry< T > |
A template class, TResponseTableEntry lets you define a pattern for entries into a response table. More... | |
class | owl::TEventHandler |
TEventHandler is a base class from which you can derive classes that handle messages. More... | |
class | owl::TGdiBase |
Root and abstract class for Windows object wrappers. More... | |
class | owl::TStreamableBase |
Classes that inherit from TStreamableBase are known as streamable classes (their objects can be written to and read from streams). More... | |
class | owl::TStreamable |
class | owl::TStreamer |
Provides a base class for all streamable objects. More... | |
class | owl::TOldStreamer |
Provides a base class for all streamable objects. More... | |
class | owl::TNewStreamer |
class | owl::TPWrittenObjects |
class | owl::TPReadObjects |
class | owl::pstream |
Base class for handling streamable objects. More... | |
class | owl::ipstream |
ipstream, a specialized input stream derivative of pstream, is the base class for reading (extracting) streamable objects. More... | |
class | owl::opstream |
Base class for writing streamable objects. More... | |
class | owl::fpbase |
Provides the basic operations common to all object file stream I/O. More... | |
class | owl::ifpstream |
ifpstream is a simple "mix" of its bases, fpbase and ipstream. More... | |
class | owl::ofpstream |
Provides the base class for writing (inserting) streamable objects to file streams. More... | |
Typedefs | |
typedef TResponseTableEntry< TGeneric > | owl::TGenericTableEntry |
typedef unsigned | owl::P_id_type |
Enumerations | |
enum | owl::TAutoDelete { owl::NoAutoDelete , owl::AutoDelete } |
Flag for Handle ctors to control Handle deletion in dtor. More... | |
enum | owl::StreamableInit { owl::streamableInit } |
Functions | |
ipstream & | owl::operator>> (ipstream &is, tstring &str) |
This operator of ipstream extracts (reads) from the ipstream is, to the string str. | |
opstream & | owl::operator<< (opstream &os, const tstring &str) |
ipstream & | owl::operator>> (ipstream &ps, int8 &ch) |
This friend operator of ipstream extracts (reads) from the ipstream ps, to the given argument. | |
ipstream & | owl::operator>> (ipstream &ps, uint8 &ch) |
This friend operator of ipstream extracts (reads) from the ipstream ps, to the given argument. | |
ipstream & | owl::operator>> (ipstream &ps, char &ch) |
This friend operator of ipstream extracts (reads) from the ipstream ps, to the given argument. | |
ipstream & | owl::operator>> (ipstream &ps, signed short &sh) |
This friend operator of ipstream extracts (reads) from the ipstream ps, to the given argument. | |
ipstream & | owl::operator>> (ipstream &ps, unsigned short &sh) |
This friend operator of ipstream extracts (reads) from the ipstream ps, to the given argument. | |
ipstream & | owl::operator>> (ipstream &ps, signed int &i) |
This friend operator of ipstream extracts (reads) from the ipstream ps, to the given argument. | |
ipstream & | owl::operator>> (ipstream &ps, unsigned int &i) |
This friend operator of ipstream extracts (reads) from the ipstream ps, to the given argument. | |
ipstream & | owl::operator>> (ipstream &ps, bool &b) |
This friend operator of ipstream extracts (reads) from the ipstream ps, to the given argument. | |
ipstream & | owl::operator>> (ipstream &ps, signed long &l) |
This friend operator of ipstream extracts (reads) from the ipstream ps, to the given argument. | |
ipstream & | owl::operator>> (ipstream &ps, unsigned long &l) |
This friend operator of ipstream extracts (reads) from the ipstream ps, to the given argument. | |
ipstream & | owl::operator>> (ipstream &, int64 &) |
ipstream & | owl::operator>> (ipstream &, uint64 &) |
ipstream & | owl::operator>> (ipstream &ps, float &f) |
This friend operator of ipstream extracts (reads) from the ipstream ps, to the given argument. | |
ipstream & | owl::operator>> (ipstream &ps, double &d) |
This friend operator of ipstream extracts (reads) from the ipstream ps, to the given argument. | |
ipstream & | owl::operator>> (ipstream &ps, long double &l) |
This friend operator of ipstream extracts (reads) from the ipstream ps, to the given argument. | |
opstream & | owl::operator<< (opstream &, int8) |
opstream, a specialized derivative of pstream, is the base class for writing (inserting) streamable objects. | |
opstream & | owl::operator<< (opstream &ps, uint8 ch) |
This friend operator of opstream inserts (writes) the given argument to the given ipstream object. | |
opstream & | owl::operator<< (opstream &ps, char ch) |
This friend operator of opstream inserts (writes) the given argument to the given ipstream object. | |
opstream & | owl::operator<< (opstream &ps, signed short sh) |
This friend operator of opstream inserts (writes) the given argument to the given ipstream object. | |
opstream & | owl::operator<< (opstream &ps, unsigned short sh) |
This friend operator of opstream inserts (writes) the given argument to the given ipstream object. | |
opstream & | owl::operator<< (opstream &ps, signed int i) |
This friend operator of opstream inserts (writes) the given argument to the given ipstream object. | |
opstream & | owl::operator<< (opstream &ps, unsigned int i) |
This friend operator of opstream inserts (writes) the given argument to the given ipstream object. | |
opstream & | owl::operator<< (opstream &ps, bool b) |
This friend operator of opstream inserts (writes) the given argument to the given ipstream object. | |
opstream & | owl::operator<< (opstream &ps, signed long l) |
This friend operator of opstream inserts (writes) the given argument to the given ipstream object. | |
opstream & | owl::operator<< (opstream &ps, unsigned long l) |
This friend operator of opstream inserts (writes) the given argument to the given ipstream object. | |
opstream & | owl::operator<< (opstream &, int64) |
opstream & | owl::operator<< (opstream &, uint64) |
opstream & | owl::operator<< (opstream &ps, float f) |
This friend operator of opstream inserts (writes) the given argument to the given ipstream object. | |
opstream & | owl::operator<< (opstream &ps, double d) |
This friend operator of opstream inserts (writes) the given argument to the given ipstream object. | |
opstream & | owl::operator<< (opstream &ps, long double l) |
This friend operator of opstream inserts (writes) the given argument to the given ipstream object. | |
template<class Base > | |
void | owl::WriteBaseObject (Base *base, opstream &out) |
template<class Base > | |
void | owl::ReadBaseObject (Base *base, ipstream &in) |
template<class Base > | |
void | owl::WriteVirtualBase (Base *base, opstream &out) |
template<class Base > | |
void | owl::ReadVirtualBase (Base *base, ipstream &in) |
owl::pstream::pstream (std::streambuf *) | |
Creates a buffered pstream with the given buffer. The state is set to 0. | |
int | owl::pstream::rdstate () const |
Returns the current state value. | |
int | owl::pstream::eof () const |
Returns nonzero on end of stream. | |
int | owl::pstream::fail () const |
Returns nonzero if a previous stream operation failed. | |
int | owl::pstream::bad () const |
Returns nonzero if an error occurs. | |
int | owl::pstream::good () const |
Returns nonzero if no error states have been recorded for the stream (that is, no errors have occurred). | |
void | owl::pstream::clear (int=0) |
Sets the stream state to the given value (defaults to 0). | |
owl::pstream::operator void * () const | |
Converts to a void pointer. | |
int | owl::pstream::operator! () const |
Overloads the NOT operator. | |
std::streambuf * | owl::pstream::rdbuf () const |
Returns the pb pointer to the buffer assigned to the stream. | |
owl::pstream::pstream () | |
Creates a pstream without initializing the buffer pointer bp or state. | |
void | owl::pstream::init (std::streambuf *) |
The init member function initializes the stream and sets state to 0 and bp to sbp. | |
void | owl::pstream::setstate (int) |
Updates the state data member with state |= (b & 0xFF). | |
owl::ipstream::ipstream (std::streambuf *) | |
Creates a buffered ipstream with the given buffer. The state is set to 0. | |
owl::ipstream::ipstream () | |
Creates a buffered ipstream without initializing the buffer pointer, bp. | |
TStreamableBase * | owl::ipstream::find (P_id_type) |
Returns a pointer to the object corresponding to Id. | |
void | owl::ipstream::registerObject (TStreamableBase *adr) |
Registers the object pointed to by adr. | |
uint32 | owl::ipstream::getVersion () const |
Returns the object version number. | |
virtual | owl::opstream::~opstream () |
void | owl::opstream::writeWord (uint32) |
Writes the 32-bit word us to the stream. | |
void | owl::opstream::writeSuffix (const TStreamableBase *) |
Writes the class name suffix to the stream. | |
P_id_type | owl::opstream::findObject (TStreamableBase *adr) |
Returns the type ID for the object pointed to by adr. | |
void | owl::opstream::registerObject (TStreamableBase *adr) |
Registers the class of the object pointed to by adr. | |
P_id_type | owl::opstream::findVB (TStreamableBase *adr) |
Returns a pointer to the virtual base. | |
void | owl::opstream::registerVB (TStreamableBase *adr) |
Registers a virtual base class. | |
owl::fpbase::fpbase () | |
Creates a buffered fpbase object. | |
owl::fpbase::fpbase (LPCSTR, int, int=openprot) | |
Creates a buffered fpbase object. | |
owl::fpbase::fpbase (LPCWSTR, int, int=openprot) | |
Creates a buffered fpbase object. | |
std::filebuf * | owl::fpbase::rdbuf () |
Returns a pointer to the current file buffer. | |
owl::ifpstream::ifpstream () | |
Creates a buffered ifpstream object using a default buffer. | |
owl::ifpstream::ifpstream (LPCSTR, int=std::ios::in, int=fpbase::openprot) | |
Creates a buffered ifpstream object. | |
owl::ifpstream::ifpstream (LPCWSTR, int=std::ios::in, int=fpbase::openprot) | |
Creates a buffered ifpstream object. | |
std::filebuf * | owl::ifpstream::rdbuf () |
Returns a pointer to the current file buffer. | |
void | owl::ifpstream::open (LPCSTR, int=std::ios::in, int=fpbase::openprot) |
It opens the named file in the given mode (app, ate, in, out, binary, trunc, nocreate, or noreplace) and protection. | |
void | owl::ifpstream::open (LPCWSTR, int=std::ios::in, int=fpbase::openprot) |
It opens the named file in the given mode (app, ate, in, out, binary, trunc, nocreate, or noreplace) and protection. | |
owl::ofpstream::ofpstream () | |
Creates a buffered ofpstream object using a default buffer. | |
owl::ofpstream::ofpstream (LPCSTR, int=std::ios::out, int=fpbase::openprot) | |
Creates a buffered ofpstream object. | |
owl::ofpstream::ofpstream (LPCWSTR, int=std::ios::out, int=fpbase::openprot) | |
Creates a buffered ofpstream object. | |
std::filebuf * | owl::ofpstream::rdbuf () |
void | owl::ofpstream::open (LPCSTR, int=std::ios::out, int=fpbase::openprot) |
Opens the named file in the given mode (app, ate, in, out, binary, trunc, nocreate, or noreplace) and protection. | |
void | owl::ofpstream::open (LPCWSTR, int=std::ios::out, int=fpbase::openprot) |
Returns a pointer to the current file buffer. | |
Variables | |
class _RTTI | owl::TStreamable |
TEventHandler, TStreamableBase, and TGdiBase are important base classes.
All ObjectWindows classes are derived from one or more of these classes. Classes that inherit from TEventHandler are able to respond to window messages. Classes that inherit from TStreamableBase support streaming; that is, their objects can write to and read from streams. Almost all of the ObjectWindows classes are derived from TStreamableBase. You can use multiple inheritance to derive a class from both TEventHandler and TStreamableBase. Classes that inherit from TGDIBase, a private base class, support GDI drawing objects such as pens, brushes, fonts, and bitmaps.
TEventHandler sends
messages to the appropriate message handler.TStreamableBase provides
support for C++ streaming and persistence.TGdiBase is
the root class for all derived GDI classes that support Windows' GDI library. #define DECLARE_ABSTRACT_STREAMABLE | ( | exp, | |
cls, | |||
ver ) DECLARE_CASTABLE |
#define DECLARE_ABSTRACT_STREAMABLE_OWL | ( | cls, | |
ver ) DECLARE_CASTABLE |
#define DECLARE_ABSTRACT_STREAMABLE_S | ( | cls, | |
ver ) DECLARE_CASTABLE |
#define DECLARE_STREAMABLE | ( | exp, | |
cls, | |||
ver ) DECLARE_CASTABLE |
#define DECLARE_STREAMABLE_FROM_BASE | ( | exp, | |
cls, | |||
base ) DECLARE_CASTABLE |
#define DECLARE_STREAMABLE_FROM_BASE_OWL | ( | cls, | |
base ) DECLARE_CASTABLE |
#define DECLARE_STREAMABLE_FROM_BASE_S | ( | cls, | |
base ) DECLARE_CASTABLE |
#define DECLARE_STREAMABLE_OWL | ( | cls, | |
ver ) DECLARE_CASTABLE |
#define DECLARE_STREAMABLE_S | ( | cls, | |
ver ) DECLARE_CASTABLE |
#define IMPLEMENT_STREAMABLE_CTOR1_IMPL | ( | template_prefix, | |
cls, | |||
constructor, | |||
base1 ) |
#define IMPLEMENT_STREAMABLE_POINTER_IMPL | ( | template_prefix, | |
cls ) |
#define READBASEOBJECT | ( | cls | ) | ReadBaseObject( cls *, ::owl::ipstream& ) |
#define READVIRTUALBASE | ( | cls | ) | ReadVirtualBase( cls *, ::owl::ipstream& ) |
#define WRITEBASEOBJECT | ( | cls | ) | WriteBaseObject( cls *, ::owl::opstream& ) |
#define WRITEVIRTUALBASE | ( | cls | ) | WriteVirtualBase( cls *, ::owl::opstream& ) |
Definition at line 144 of file eventhan.h.
\ class TStreamable
This is the base class from which all streamable objects must be
derived.
Enumerator | |
---|---|
streamableInit |
|
inline |
Creates a buffered fpbase object.
Definition at line 772 of file objstrm.h.
References owl::pstream::init().
Creates a buffered fpbase object.
It opens the file specified by name, using the mode omode and protection prot; and attaches this file to the stream.
Definition at line 778 of file objstrm.h.
References owl::pstream::init(), and owl::fpbase::open().
Creates a buffered fpbase object.
It opens the file specified by name, using the mode omode and protection prot; and attaches this file to the stream.
Definition at line 785 of file objstrm.h.
References owl::pstream::init(), and owl::fpbase::open().
|
inline |
|
inline |
|
inline |
|
inlineprotected |
Creates a buffered ipstream without initializing the buffer pointer, bp.
Use psteam::init to set the buffer and state.
Definition at line 716 of file objstrm.h.
References owl::pstream::bp, and owl::ipstream::readVersion().
|
inline |
Creates a buffered ipstream with the given buffer. The state is set to 0.
Definition at line 709 of file objstrm.h.
References owl::pstream::init(), and owl::ipstream::readVersion().
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
Creates a buffered pstream with the given buffer. The state is set to 0.
Definition at line 640 of file objstrm.h.
References owl::pstream::init().
|
inline |
Returns nonzero if an error occurs.
Definition at line 660 of file objstrm.h.
References owl::pstream::state.
Sets the stream state to the given value (defaults to 0).
Definition at line 671 of file objstrm.h.
References owl::pstream::state.
|
inline |
Returns nonzero on end of stream.
Definition at line 650 of file objstrm.h.
References owl::pstream::state.
|
inline |
Returns nonzero if a previous stream operation failed.
Definition at line 655 of file objstrm.h.
References owl::pstream::state.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns nonzero if no error states have been recorded for the stream (that is, no errors have occurred).
Definition at line 666 of file objstrm.h.
References owl::pstream::state.
|
inlineprotected |
The init member function initializes the stream and sets state to 0 and bp to sbp.
Definition at line 698 of file objstrm.h.
References owl::pstream::bp, and owl::pstream::state.
|
inline |
It opens the named file in the given mode (app, ate, in, out, binary, trunc, nocreate, or noreplace) and protection.
The default mode for ifpstream is ios::in (input) with openprot protection. The opened file is attached to this stream.
Definition at line 824 of file objstrm.h.
References owl::fpbase::open(), and owl::ipstream::readVersion().
|
inline |
Opens the named file in the given mode (app, ate, in, out, binary, trunc, nocreate, or noreplace) and protection.
The default mode for ofpstream is ios::out (output) with openprot protection. The opened file is attached to this stream.
Definition at line 874 of file objstrm.h.
References owl::fpbase::open(), and owl::opstream::writeVersion().
|
inline |
It opens the named file in the given mode (app, ate, in, out, binary, trunc, nocreate, or noreplace) and protection.
The default mode for ifpstream is ios::in (input) with openprot protection. The opened file is attached to this stream.
Definition at line 836 of file objstrm.h.
References owl::fpbase::open(), and owl::ipstream::readVersion().
|
inline |
Returns a pointer to the current file buffer.
Definition at line 883 of file objstrm.h.
References owl::fpbase::open(), and owl::opstream::writeVersion().
|
inline |
|
inline |
Overloads the NOT operator.
Returns 0 if the operation has failed (that is, if pstream::fail returned nonzero); otherwise, returns nonzero.
Definition at line 682 of file objstrm.h.
References owl::pstream::fail().
opstream, a specialized derivative of pstream, is the base class for writing (inserting) streamable objects.
This friend operator of opstream inserts (writes) the given argument to the given ipstream object.
The data type of the argument determines the form of write operation employed.
Definition at line 954 of file objstrm.cpp.
References _USES_CONVERSION, and _W2A.
This operator of ipstream extracts (reads) from the ipstream is, to the string str.
It returns a reference to the stream that lets you chain >> operations in the usual way.
Definition at line 964 of file objstrm.cpp.
This friend operator of ipstream extracts (reads) from the ipstream ps, to the given argument.
It returns a reference to the stream that lets you chain >> operations in the usual way. The data type of the argument determines how the read is performed. For example, reading a signed char is implemented using readByte.
This friend operator of ipstream extracts (reads) from the ipstream ps, to the given argument.
It returns a reference to the stream that lets you chain >> operations in the usual way. The data type of the argument determines how the read is performed. For example, reading a signed char is implemented using readByte.
This friend operator of ipstream extracts (reads) from the ipstream ps, to the given argument.
It returns a reference to the stream that lets you chain >> operations in the usual way. The data type of the argument determines how the read is performed. For example, reading a signed char is implemented using readByte.
This friend operator of ipstream extracts (reads) from the ipstream ps, to the given argument.
It returns a reference to the stream that lets you chain >> operations in the usual way. The data type of the argument determines how the read is performed. For example, reading a signed char is implemented using readByte.
This friend operator of ipstream extracts (reads) from the ipstream ps, to the given argument.
Base class for reading streamable objects
It returns a reference to the stream that lets you chain >> operations in the usual way. The data type of the argument determines how the read is performed. For example, reading a signed char is implemented using readByte.
This friend operator of ipstream extracts (reads) from the ipstream ps, to the given argument.
It returns a reference to the stream that lets you chain >> operations in the usual way. The data type of the argument determines how the read is performed. For example, reading a signed char is implemented using readByte.
This friend operator of ipstream extracts (reads) from the ipstream ps, to the given argument.
It returns a reference to the stream that lets you chain >> operations in the usual way. The data type of the argument determines how the read is performed. For example, reading a signed char is implemented using readByte.
This friend operator of ipstream extracts (reads) from the ipstream ps, to the given argument.
It returns a reference to the stream that lets you chain >> operations in the usual way. The data type of the argument determines how the read is performed. For example, reading a signed char is implemented using readByte.
This friend operator of ipstream extracts (reads) from the ipstream ps, to the given argument.
It returns a reference to the stream that lets you chain >> operations in the usual way. The data type of the argument determines how the read is performed. For example, reading a signed char is implemented using readByte.
This friend operator of ipstream extracts (reads) from the ipstream ps, to the given argument.
It returns a reference to the stream that lets you chain >> operations in the usual way. The data type of the argument determines how the read is performed. For example, reading a signed char is implemented using readByte.
This friend operator of ipstream extracts (reads) from the ipstream ps, to the given argument.
It returns a reference to the stream that lets you chain >> operations in the usual way. The data type of the argument determines how the read is performed. For example, reading a signed char is implemented using readByte.
This friend operator of ipstream extracts (reads) from the ipstream ps, to the given argument.
It returns a reference to the stream that lets you chain >> operations in the usual way. The data type of the argument determines how the read is performed. For example, reading a signed char is implemented using readByte.
This friend operator of ipstream extracts (reads) from the ipstream ps, to the given argument.
It returns a reference to the stream that lets you chain >> operations in the usual way. The data type of the argument determines how the read is performed. For example, reading a signed char is implemented using readByte.
|
inline |
|
inline |
Returns a pointer to the current file buffer.
Definition at line 816 of file objstrm.h.
References owl::fpbase::rdbuf().
|
inline |
Definition at line 866 of file objstrm.h.
References owl::fpbase::rdbuf().
|
inline |
Returns the pb pointer to the buffer assigned to the stream.
Definition at line 687 of file objstrm.h.
References owl::pstream::bp.
|
inline |
Returns the current state value.
Definition at line 645 of file objstrm.h.
References owl::pstream::state.
Definition at line 1190 of file objstrm.h.
References owl::pstream::ptIndexed, and owl::pstream::ptObject.
|
inline |
|
inline |
|
inline |
Updates the state data member with state |= (b & 0xFF).
Definition at line 704 of file objstrm.h.
References owl::pstream::state.
|
inlineprotected |
Writes the class name suffix to the stream.
The << operator uses this function to write a prefix and suffix around the data written with writeData. The prefix/suffix is used to ensure type-safe stream I/O.
Definition at line 747 of file objstrm.h.
References owl::opstream::writeByte().
Definition at line 1169 of file objstrm.h.
References owl::pstream::ptIndexed, and owl::pstream::ptObject.
Writes the 32-bit word us to the stream.
Definition at line 740 of file objstrm.h.
References owl::opstream::writeWord32().