C++ Library - <Wios>



Introduction

This class is an instantiation of basic_ios designed to serve as base class for all wide stream classes, with wchar_t as character type (see basic_ios for more info on the template).

Definition

Below is definition of std::wios as shown below −

typedef basic_ios<wchar_t> ios;

Parameters

Parameters of ios should be like this −

  • charT − Character type.

  • traits − It is an aliased as member traits_type.

Member types

Sr.No Member types Definition
1 event Type to indicate event type
2 event_callback Event callback function type
3 failure Base class for stream exceptions
4 fmtflags Type for stream format flags
5 Init Initialize standard stream objects
6 iostate Type for stream state flags
7 openmode Type for stream opening mode flags
8 seekdir Type for stream seeking direction flag

Public Member Functions

Sr.No Member types Definition
1 (constructor) Construct object (public member function )
2 (destructor) Destruct object (public member function )

State flag functions

Sr.No Member types Definition
1 good It is used to check whether state of stream is good
2 eof It is used to check whether eofbit is set
3 fail It is used to check whether either failbit or badbit is set
4 bad It is used to check whether badbit is set
5 operator! Evaluate stream
6 rdstate It is used to get error state flags
7 setstate It is used to set error state flag
8 clear It is used to set error state flag

Formatting

Sr.No Member types Definition
1 copyfmt Copy formatting information
2 fill Get/set fill character

Others

Sr.No Member types Definition
1 exceptions It is used to get/set exceptions mask
2 imbue Imbue locale
3 tie It is used to get/set tied stream
4 rdbuf It is used to get/set stream buffer
5 narrow Narrow character
6 widen Widen character

Protected member functions

Sr.No Member types Definition
1 init Initialize object
2 move Move internals
3 swap Swap internals
4 set_rdbuf It is used to set stream buffer
ios.htm
Advertisements