_Iosb是定义在文件xiosbase中的模板类,其中定义了流的四种标志:格式化标志、流状态标志、文件打开方式标志、文件定位标志。
在VS 2005中,它是ios_base的父类,虽然它是个模板类,但从代码中来看好像跟模板没有太大关系,而且ios_base也是从_Iosb<int>继承而来。
每个标志都是_Iosb的静态常成员变量。
template<class _Dummy>
class _Iosb
{
enum _Fmtflags // 格式化标志
{ _Fmtmask = 0xffff, _Fmtzero = 0 };
// skipws unitbuf uppercase showbase showpoint showpos
// left right internal dec oct hex scientific fixed
// boolalpha _Stdio adjustfield basefield floatfield
enum _Iostate // 流状态标志
{ _Statmask = 0x17 };
// goodbit eofbit failbit badbit _Hardfail
enum _Openmode // 文件打开方式标志
{ _Openmask = 0xff };
// in out ate app trunc _Nocreate _Noreplace binary
enum _Seekdir // 文件定位标志
{ _Seekmask = 0x3 };
// beg cur end
};