Export (0) Print
Expand All

CArchive Members

Data Members

m_pDocument Points to the CDocument object being serialized.

Construction

Abort Closes an archive without throwing an exception.
CArchive Creates a CArchive object.
Close Flushes unwritten data and disconnects from the CFile.

Basic Input/Output

Flush Flushes unwritten data from the archive buffer.
operator << Stores objects and primitive types to the archive.
operator >> Loads objects and primitive types from the archive.
Read Reads raw bytes.
ReadString Reads a single line of text.
Write Writes raw bytes.
WriteString Writes 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.
IsBufferEmpty Determines whether the buffer has been emptied during a Windows Sockets receive process.
IsByteSwapping  
IsLoading Determines whether the archive is loading.
IsStoring Determines whether the archive is storing.
SetObjectSchema Sets the object schema stored in the archive object.

Object Input/Output

MapObject Places objects in the map that are not serialized to the file, but that are available for subobjects to reference.
ReadClass Reads a class reference previously stored with WriteClass.
ReadObject Calls an object's Serialize function for loading.
SerializeClass Reads or writes the class reference to the CArchive object depending on the direction of the CArchive.
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.
SetStoreParams Sets the hash table size and the block size of the map used to identify unique objects during the serialization process.
WriteClass Writes a reference to the CRuntimeClass to the CArchive.
WriteObject Calls an object's Serialize function for storing.

See Also

CArchive Overview | Hierarchy Chart

Show:
© 2014 Microsoft