yast2-core
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TemporaryLocale Class Reference

Set and later restore a locale category. More...

#include <IniParser.h>

Public Member Functions

 TemporaryLocale (int category, const char *locale)
 
 ~TemporaryLocale ()
 

Private Member Functions

char * my_setlocale (int category, const char *locale)
 call setlocale but log errors More...
 

Private Attributes

int _category
 
char * _oldlocale
 

Detailed Description

Set and later restore a locale category.

Constructor & Destructor Documentation

TemporaryLocale::TemporaryLocale ( int  category,
const char *  locale 
)

References _category, _oldlocale, and my_setlocale().

TemporaryLocale::~TemporaryLocale ( )

References _category, _oldlocale, and my_setlocale().

Member Function Documentation

char * TemporaryLocale::my_setlocale ( int  category,
const char *  locale 
)
private

call setlocale but log errors

References y2error.

Referenced by TemporaryLocale(), and ~TemporaryLocale().

Member Data Documentation

int TemporaryLocale::_category
private
char* TemporaryLocale::_oldlocale
private

The documentation for this class was generated from the following files:

Generated on a sunny day for yast2-core by doxygen 1.8.11