Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::chrono::timezone_io_saver Struct Reference

timezone_io_saver i/o saver. More...

#include <time_point_io.hpp>

Public Types

typedef std::ios_base state_type
 the type of the state to restore More...
 
typedef timezone aspect_type
 the type of aspect to save More...
 

Public Member Functions

 timezone_io_saver (state_type &s)
 Explicit construction from an i/o stream. More...
 
 timezone_io_saver (state_type &s, aspect_type new_value)
 Construction from an i/o stream and a timezone to restore. More...
 
 ~timezone_io_saver ()
 Destructor. More...
 
void restore ()
 Restores the i/o stream with the timezone to be restored. More...
 

Detailed Description

timezone_io_saver i/o saver.

See Boost.IO i/o state savers for a motivating compression.

Member Typedef Documentation

the type of aspect to save

the type of the state to restore

Constructor & Destructor Documentation

boost::chrono::timezone_io_saver::timezone_io_saver ( state_type s)
inlineexplicit

Explicit construction from an i/o stream.

Store a reference to the i/o stream and the value of the associated timezone.

boost::chrono::timezone_io_saver::timezone_io_saver ( state_type s,
aspect_type  new_value 
)
inline

Construction from an i/o stream and a timezone to restore.

Stores a reference to the i/o stream and the value new_value to restore given as parameter.

boost::chrono::timezone_io_saver::~timezone_io_saver ( )
inline

Destructor.

Restores the i/o stream with the format to be restored.

References restore().

Member Function Documentation

void boost::chrono::timezone_io_saver::restore ( )
inline

Restores the i/o stream with the timezone to be restored.

References boost::chrono::set_timezone().

Referenced by ~timezone_io_saver().


The documentation for this struct was generated from the following file: