CArchive::operator <<
friendCArchive&operator<<(CArchive&ar,constCObject*pOb);
throw(CArchiveException,CFileException);
CArchive&operator<<(BYTEby**);**
throw(CArchiveException,CFileException);
CArchive&operator<<(WORDw**);**
throw(CArchiveException,CFileException);
CArchive&operator<<(inti**);**
throw(CArchiveException,CFileException);
CArchive&operator<<(LONGl**);**
throw(CArchiveException,CFileException);
CArchive&operator<<(DWORDdw**);**
throw(CArchiveException,CFileException);
CArchive&operator<<(floatf**);**
throw(CArchiveException,CFileException);
CArchive&operator<<(doubled**);**
throw(CArchiveException,CFileException);
Return Value
A CArchive reference that enables multiple extraction operators on a single line.
Remarks
Stores the indicated object or primitive type to the archive.
If you used the IMPLEMENT_SERIAL macro in your class implementation, then the insertion operator overloaded for CObject calls the protected WriteObject. This function, in turn, calls the Serialize function of the class.
Example
long l;
int i;
extern CArchive ar;
if( ar.IsStoring() )
ar << l << i;
CArchive Overview | Class Members | Hierarchy Chart
See Also CArchive::WriteObject, CObject::Serialize