CArchive Member Functions

Construction
CArchive Creates a CArchive object.
Close Flushes unwritten data and disconnects from the CFile.
Abort Closes the archive without throwing an exception.
Basic Input/Output
Flush Flushes unwritten data from the archive buffer.
Read Reads raw bytes.
Write Writes raw bytes.
WriteString Writes a single line of text.
ReadString Reads a single line of text.
Status
GetFile Gets the CFile object pointer for this archive.
GetObjectSchema Called from the Serialize function to determine the version of the object that is being deserialized.
SetObjectSchema Sets the object schema stored in the archive object.
IsLoading Determines whether the archive is loading.
IsStoring Determines whether the archive is storing.
IsBufferEmpty Determines whether the buffer has been emptied during a Windows Sockets receive process.
Object Input/Output
ReadObject Calls an object's Serialize function for loading.
WriteObject Calls an object's Serialize function for storing.
MapObject Places objects in the map that are not serialized to the file, but that are available for subobjects to reference.
SetStoreParams Sets the hash table size and the block size of the map used to identify unique objects during the serialization process.
SetLoadParams Sets the size to which the load array grows. Must be called before any object is loaded or before MapObject or ReadObject is called.
ReadClass Reads a class reference previously stored with WriteClass.
WriteClass Writes a reference to the CRuntimeClass to the CArchive.
SerializeClass Reads or writes the class reference to the CArchive object depending on the direction of the CArchive.

See Also

CArchive Overview, CArchive Operators,, CArchive Data Members