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.NoMember typesDefinition
1eventType to indicate event type
2event_callbackEvent callback function type
3failureBase class for stream exceptions
4fmtflagsType for stream format flags
5InitInitialize standard stream objects
6iostateType for stream state flags
7openmodeType for stream opening mode flags
8seekdirType for stream seeking direction flag

Public Member Functions

Sr.NoMember typesDefinition
1(constructor)Construct object (public member function )
2(destructor)Destruct object (public member function )

State flag functions

Sr.NoMember typesDefinition
1goodIt is used to check whether state of stream is good
2eofIt is used to check whether eofbit is set
3failIt is used to check whether either failbit or badbit is set
4badIt is used to check whether badbit is set
5operator!Evaluate stream
6rdstateIt is used to get error state flags
7setstateIt is used to set error state flag
8clearIt is used to set error state flag

Formatting

Sr.NoMember typesDefinition
1copyfmtCopy formatting information
2fillGet/set fill character

Others

Sr.NoMember typesDefinition
1exceptionsIt is used to get/set exceptions mask
2imbueImbue locale
3tieIt is used to get/set tied stream
4rdbufIt is used to get/set stream buffer
5narrowNarrow character
6widenWiden character

Protected member functions

Sr.NoMember typesDefinition
1initInitialize object
2moveMove internals
3swapSwap internals
4set_rdbufIt is used to set stream buffer
ios.htm