Class Summary

The CRfcPersistStream class is defined in CRfcPers.h.
The CRfcPersistStream class is derived from ‚fstream‘, and is a class that encapsulates the following two functionality: (1) a text stream for storing persistent data of objects, and (2) implementation of specialized knowledge of organizing and retrieving metadata of objects of CRfcClientFunc, CRfcSimpleParam, CRfcStructParam and CRfcTableParam classes. The text stream is intended to be used to store persistent data of objects of user-defined classes along with the metadata of the above-mentioned classes of the RFC Class Library. However, any functionality that is necessary for organizing user-specific data must be user-implemented because this class simply does not have any knowledge of how to organize user data.
A CRfcPersistStream object is uni-directional. This means that the stream is used for either writing out to file or reading in from file, but cannot be both.
Important Note: for use in the ‚out‘ direction, the user’s program is responsible for opening the file by calling fstream::open() and checking that the operation was executed successfully, before attempting to write the content of the stream to the physical file.
Construction
CRfcPersistStreamConstructs a persistent stream object.
CRfcPersistStream (with filename and direction)
Constructs a persistent stream object with given file name and direction.
Operation
FlushCommits the content of the stream object to physical file storage.
Returns the STREAM_DIRECTION value indicating the direction of this stream object.
Returns the path/name of the physical disk file associated with this stream object.
Sets the STREAM_DIRECTION value indicating the direction of this stream object.
Sets the path/name of the physical disk file associated with this stream object.