CArchive::IsStoring

BOOLIsStoring()const;

Return Value

Nonzero if the archive is currently being used for storing; otherwise 0.

Remarks

Determines whether the archive is storing data. This member function is called by the Serialize functions of the archived classes.

If the IsStoring status of an archive is nonzero, then its IsLoading status is 0, and vice versa.

Example

int i;
extern CArchive ar;
if( ar.IsStoring() )
  ar << i;
else
  ar >> i;

CArchive OverviewClass MembersHierarchy Chart

See Also   CArchive::IsLoading