Udostępnij za pośrednictwem


CArchive::IsStoring

Determines whether the archive is storing data.

BOOL IsStoring( ) const;

Return Value

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

Remarks

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 = 0;
if(ar.IsStoring())
   ar << i;
else
   ar >> i;           

Requirements

Header: afx.h

See Also

Reference

CArchive Class

Hierarchy Chart

CArchive::IsLoading

Other Resources

CArchive Members