网站首页  词典首页

请输入您要查询的计算机术语:

 

术语 CArchive::operator 3c3c
释义 CArchive::operator <<

friend CArchive& operator << (CArchive& ar, const CObject* pOb);
  throw (CArchiveException, CFileException);
CArchive& operator <<(BYTE by);
  throw (CArchiveException, CFileException);
CArchive& operator <<(WORD w);
  throw (CArchiveException, CFileException);
CArchive& operator <<(int i);
  throw (CArchiveException, CFileException);
CArchive& operator <<(LONG l);
  throw (CArchiveException, CFileException);
CArchive& operator <<(DWORD dw);
  throw (CArchiveException, CFileException);
CArchive& operator <<(float f);
  throw (CArchiveException, CFileException);
CArchive& operator <<(double d);
  throw (CArchiveException, CFileException);

返回值:
CArchive参考,它可以在一行上使用多个提取运算符。

说明:
把确切的对象或主要类型存储到归档文件中。
如果在类的实现中使用IMPLEMENT_SERIAL宏,然后重载CObject的插入运算符调用被保护的WriteObject。此函数反过来调用类的Serialize函数。

示例:
long l;
int i;
extern CArchive ar;
if (ar.IsStoring( )) ar<<l<<i;

请参阅:CArchive::WriteObject, CObject::Serialize
随便看

 

MFC类库中文详解手册包含4274条MFC类库参考词条,基本涵盖了Microsoft基本类库中的类、全局函数、全局变量和宏的内容,是计算机编程的有利工具。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 14:24:57