TemporaryLocale Class Reference

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

#include <IniParser.h>

List of all members.

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

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

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.6.3