Locale Class Reference

#include <Locale.hh>


Public Member Functions

 Locale (char const *newLocale, int category=LC_ALL)
virtual ~Locale ()

Private Attributes

int fCategory
char * fPrevLocale


Detailed Description

Definition at line 39 of file Locale.hh.


Constructor & Destructor Documentation

Locale::Locale ( char const *  newLocale,
int  category = LC_ALL 
)

Definition at line 25 of file Locale.cpp.

References fPrevLocale, NULL, and strDup().

00026   : fCategory(category) {
00027 #ifndef LOCALE_NOT_USED
00028   fPrevLocale = strDup(setlocale(category, NULL));
00029   setlocale(category, newLocale);
00030 #endif
00031 }

Locale::~Locale (  )  [virtual]

Definition at line 33 of file Locale.cpp.

References fCategory, fPrevLocale, and NULL.

00033                 {
00034 #ifndef LOCALE_NOT_USED
00035   if (fPrevLocale != NULL) {
00036     setlocale(fCategory, fPrevLocale);
00037     delete[] fPrevLocale;
00038   }
00039 #endif
00040 }


Field Documentation

int Locale::fCategory [private]

Definition at line 45 of file Locale.hh.

Referenced by ~Locale().

char* Locale::fPrevLocale [private]

Definition at line 46 of file Locale.hh.

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


The documentation for this class was generated from the following files:
Generated on Tue Oct 7 15:39:45 2008 for live by  doxygen 1.5.2