Class constructors and destructor. This classes constructors are all private to prevent construction of
these objects on the stack. Use factory methods to create instances of this class on the heap.
Creation of IDataStream objects. Also see IFile::createStream() for the creation of an IDataStream that targets files.
- readBytes
public:
void readBytes(char* data, unsigned long howMany)
- Read an array of bytes from the data stream.
- data
- address of the buffer into which the data will be placed.
- howMany
- the number of bytes to read from the stream.
- Exception
IInvalidDataOnStream
| the data found on the stream was not of the correct type.
(DD)
IEndOfStream the operation reached the end of the stream.
|
- Supported Platforms
Windows |
OS/2 |
AIX |
Yes |
Yes |
Yes |
- readDoubles
public:
void readDoubles(double* data, unsigned long howMany)
- read an array of Doubles (64bit floating points) from the IDataStream
- data
- the address of the array into which the data will be read.
- howMany
- the number of doubles to be read.
- Exception
IInvalidDataOnStream
| the data found on the stream was not of the correct type.
(DD)
IEndOfStream the operation reached the end of the stream.
|
- Supported Platforms
Windows |
OS/2 |
AIX |
Yes |
Yes |
Yes |
- readFloats
public:
void readFloats(float* data, unsigned long howMany)
- Read an array of floating point values from an IDataStream.
- data
- the address of the array into which the data will be read.
- howMany
- the number of floats to be read from the stream.
- Exception
IInvalidDataOnStream
| the data found on the stream was not of the correct type.
(DD)
IEndOfStream the operation reached the end of the stream.
|
- Supported Platforms
Windows |
OS/2 |
AIX |
Yes |
Yes |
Yes |
- readLongs
public:
void readLongs(long* data, unsigned long howMany)
- read an array of longs from an IDataStream.
- data
- the address of the array into which the data will be read.
- howMany
- the number of longs to be read.
- Exception
IInvalidDataOnStream
| the data found on the stream was not of the correct type.
(DD)
IEndOfStream the operation reached the end of the stream.
|
- Supported Platforms
Windows |
OS/2 |
AIX |
Yes |
Yes |
Yes |
- readShorts
public:
void readShorts(short* data, unsigned long howMany)
- Read an array of shorts (16 bit values) from an IDataStream.
- data
- the address of the array into which the data will be read
- howMany
- the number of shorts to be read from the stream.
- Exception
IInvalidDataOnStream
| the data found on the stream was not of the correct type.
(DD)
IEndOfStream the operation reached the end of the stream.
|
- Supported Platforms
Windows |
OS/2 |
AIX |
Yes |
Yes |
Yes |
- writeBytes
public:
void writeBytes(const char* data, unsigned long howMany)
- Write an array of bytes to an IDataStream.
- data
- address of the buffer containing the data to be written to the stream.
- howMany
- number of bytes to write to the stream.
- Exception
IInvalidDataOnStream
| the data found on the stream was not of the correct type.
(DD)
IEndOfStream the operation reached the end of the stream.
|
- Supported Platforms
Windows |
OS/2 |
AIX |
Yes |
Yes |
Yes |
- writeDoubles
public:
void
writeDoubles( const double* data,
unsigned long howMany )
- Write an array of doubles (64 bit floating point values) to an IDataStream.
- data
- address of the buffer containing the data to be written.
- howMany
- the number of doubles to be written to the stream.
- Exception
IInvalidDataOnStream
| the data found on the stream was not of the correct type.
(DD)
IEndOfStream the operation reached the end of the stream.
|
- Supported Platforms
Windows |
OS/2 |
AIX |
Yes |
Yes |
Yes |
- writeFloats
public:
void writeFloats(const float* data, unsigned long howMany)
- Write an array of floats to an IDataStream.
- data
- the address of the buffer containing the data to be written to the stream.
- howMany
- the number of floats to be written.
- Exception
IInvalidDataOnStream
| the data found on the stream was not of the correct type.
(DD)
IEndOfStream the operation reached the end of the stream.
|
- Supported Platforms
Windows |
OS/2 |
AIX |
Yes |
Yes |
Yes |
- writeLongs
public:
void writeLongs(const long* data, unsigned long howMany)
- Write an array of longs to an IDataStream.
- data
- the address of the buffer holding the data to be written to the stream.
- howMany
- the number of longs to be written.
- Exception
IInvalidDataOnStream
| the data found on the stream was not of the correct type.
(DD)
IEndOfStream the operation reached the end of the stream.
|
- Supported Platforms
Windows |
OS/2 |
AIX |
Yes |
Yes |
Yes |
- writeShorts
public:
void writeShorts(const short* data, unsigned long howMany)
- Write an array of shorts to an IDataStream.
- data
- address of the buffer containing the data to write to the IDataStream.
- howMany
- number of shorts to be written.
- Exception
IInvalidDataOnStream
| the data found on the stream was not of the correct type.
(DD)
IEndOfStream the operation reached the end of the stream.
|
- Supported Platforms
Windows |
OS/2 |
AIX |
Yes |
Yes |
Yes |
These methods affect the state of the the stream rather than the data which is in it.
operator <<=
void operator <<=(long& c, IDataStream& s)
- Read a long value from an IDataStream. The value
is returned to the caller by reference.
operator <<=
void operator <<=(unsigned long& c, IDataStream& s)
- Read a unsigned long value from an IDataStream. The value
is returned to the caller by reference.
operator <<=
void operator <<=(unsigned short& c, IDataStream& s)
- Read a unsigned short value from an IDataStream. The value
is returned to the caller by reference.
operator <<=
void operator <<=(double& c, IDataStream& s)
- Read a double value from an IDataStream. The value
is returned to the caller by reference.
operator <<=
void operator <<=(IMStreamable& c, IDataStream& s)
- Read a IMStreamable value from an IDataStream. The value
is returned to the caller by reference.
operator <<=
void operator <<=(signed char& c, IDataStream& s)
- Read a signed char value from an IDataStream. The value
is returned to the caller by reference.
operator <<=
void operator <<=(unsigned char& c, IDataStream& s)
- Read a unsigned char value from an IDataStream. The value
is returned to the caller by reference.
operator <<=
void operator <<=(float& c, IDataStream& s)
- Read a float value from an IDataStream. The value
is returned to the caller by reference.
operator <<=
void operator <<=(short& c, IDataStream& s)
- Read a short value from an IDataStream. The value is returned to the caller by reference.
operator <<=
void operator <<=(char& c, IDataStream& s)
- Read a char value from an IDataStream. The value
is returned to the caller by reference.
operator >>=
void operator >>=(signed char c, IDataStream& s)
- Write a signed char value to an IDataStream.
operator >>=
void operator >>=(unsigned short c, IDataStream& s)
- Write a unsigned short value to an IDataStream.
operator >>=
void operator >>=(short c, IDataStream& s)
- Write a short value to an IDataStream.
operator >>=
void operator >>=(unsigned long c, IDataStream& s)
- Write a unsigned long value to an IDataStream.
operator >>=
void operator >>=(char c, IDataStream& s)
- Write a char value to an IDataStream.
operator >>=
void operator >>=(unsigned char c, IDataStream& s)
- Write a unsigned char value to an IDataStream.
operator >>=
void operator >>=(float c, IDataStream& s)
- Write a float value to an IDataStream.
operator >>=
void operator >>=(long c, IDataStream& s)
- Write a long value to an IDataStream.
operator >>=
void operator >>=(double c, IDataStream& s)
- Write a double value to an IDataStream.
operator >>=
void operator >>=(const IMStreamable& object, IDataStream& s)
- Write an IMStreamable object to an IDataStream.
readAliasedObject
void readAliasedObject(AType *& theResult, IDataStream& theStream)
- Polymorphically read an object from an IDataStream.
"AType" must descend from IMStreamable
and IMRefCounted.
readObject
void readObject(AType *& theResult, IDataStream& theStream)
- Polymorphically read an object from an IDataStream.
"AType" must descend from IMStreamable.
writeAliasedObject
void writeAliasedObject(const AType* theObject, IDataStream& theStream)
- Polymorphically write an object to an IDataStream.
"AType" must descend from IMStreamable
and IMRefCounted.
writeObject
void writeObject(const AType* theObject, IDataStream& theStream)
- Polymorphically write an object to an IDataStream.
"AType" must descend from IMStreamable.