Construction Methods
| Method | Description |
|---|---|
| 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 Methods
| Method | Description |
|---|---|
| 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 Methods
| Method | Description |
|---|---|
| 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. |