class CorStream : public CorBase A simple stream class
| | StreamFlow $Id: CorStream |
| | become ( const CorStream& aRef ) |
| | close () |
| | CorStream ( const RWCString& aFileName, StreamFlow aMode ) |
| | CorStream ( const CorStream& aRef ) |
| | CorStream () |
| | CorStream::isValid () |
| | getLine ( istream* aStream = 0 ) |
| | getName () |
| | isReading () |
| | isWriting () |
| | open ( StreamFlow aMode = CorStream::READ ) |
| | open ( const RWCString& aFileName, StreamFlow aMode ) |
| | operator<< ( const char aChar ) |
| | operator<< ( const int anInt ) |
| | operator<< ( const short anInt ) |
| | operator<< ( const unsigned short anInt ) |
| | operator<< ( const double aDouble ) |
| | operator<< ( const RWCString& aString ) |
| | operator<< ( CorStream& aStream, const CorPersistent* anObject ) Purpose Query whether this instance is in write mode |
| | operator<< ( const unsigned int anInt ) |
| | operator<< ( const unsigned char aChar ) |
| | operator= ( const CorStream& aRef ) |
| | operator>> ( RWCString& aString ) |
| | operator>> ( char& aChar ) |
| | operator>> ( int& anInt ) |
| | operator>> ( short& aValue ) |
| | operator>> ( unsigned short& aValue ) |
| | operator>> ( double& aDouble ) |
| | operator>> ( unsigned char& aChar ) |
| | operator>> ( unsigned int& anInt ) |
| | read ( void* aBuffer, unsigned int aSize ) |
| | readObject ( const CorRunTimeType* aType ) |
| | readText ( RWCString& aVal ) |
| | readText ( double& aVal ) |
| | readText ( int& aVal ) |
| | write ( const void* aBuffer, unsigned int aSize ) |
| | writeObject ( const CorPersistent* pOb ) |
| | writeText ( const RWCString& aVal ) |
| | writeText ( double aVal ) |
| | writeText ( int aVal ) |
| | ~CorStream () |
| | clear () |
| | Purpose Query the name of this stream (the file name) |
| | utest_CorStream (CorUnitTest&) Purpose Clear this instance |
A simple stream class
SYNOPSIS
#include <CorStream.h>
CorStream myObject;
DESCRIPTION
This class provides the stream operations for the basic types an a
persistent object.
CAUTIONS
EXAMPLES
SEE ALSO
CorBase
CorPersistent
Preconditions Exceptions
Preconditions Exceptions
Preconditions Exceptions
Preconditions Returns Exceptions
Preconditions Returns Exceptions
Preconditions Returns Exceptions
Preconditions Returns Exceptions
Preconditions Exceptions
CorStream()
The default c'tor.
CorStream( const RWCString& aFileName, StreamFlow aMode )
CorStream( const CorStream& aRef )
CorStream& operator=( const CorStream& aRef )
virtual ~CorStream()
The d'tor.
CorStream& operator>>( char& aChar )
CorStream& operator>>( int& anInt )
CorStream& operator>>( short& aValue )
CorStream& operator>>( unsigned short& aValue )
CorStream& operator>>( double& aDouble )
CorStream& operator>>( RWCString& aString )
CorStream& operator<<( const char aChar )
CorStream& operator<<( const int anInt )
CorStream& operator<<( const short anInt )
CorStream& operator<<( const unsigned short anInt )
CorStream& operator<<( const double aDouble )
CorStream& operator<<( const RWCString& aString )
CorStream& operator>>( unsigned char& aChar )
CorStream& operator>>( unsigned int& anInt )
CorStream& operator<<( const unsigned char aChar )
CorStream& operator<<( const unsigned int anInt )
void write( const void* aBuffer, unsigned int aSize )
unsigned int read( void* aBuffer, unsigned int aSize )
void writeText( int aVal )
void writeText( double aVal )
void writeText( const RWCString& aVal )
CorBool readText( int& aVal )
CorBool readText( double& aVal )
CorBool readText( RWCString& aVal )
RWCString getLine( istream* aStream = 0 )
void close()
Close this instance. Nothing can be written or read from it anymore.
CorBool open( const RWCString& aFileName, StreamFlow aMode )
CorBool open( StreamFlow aMode = CorStream::READ )
CorPersistent* readObject( const CorRunTimeType* aType )
void writeObject( const CorPersistent* pOb )
CorBool isReading()
Query whether this instance is in read mode.
This function returns corTRUE if this instance is in read mode.
CorBool isWriting()
friend CorStream& operator<<( CorStream& aStream, const CorPersistent* anObject )
Query whether this instance is in write mode.
This function returns corTRUE if this instance is in write mode.
CorBool CorStream::isValid()
Query whether this instance is valid (ie, the file could be openend
successfullly, has not been closed yet etc).
This function returns corTRUE if this instance is valid.
RWCString getName()
Query the name of this stream (the file name).
This function returns the file name of this stream.
void become( const CorStream& aRef )
CorBool clear()
friend void utest_CorStream(CorUnitTest&)
Clear this instance.
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de