home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
ool.zip
/
OOL
/
include
/
xcountry.h
< prev
next >
Wrap
C/C++ Source or Header
|
1997-04-02
|
1KB
|
38 lines
#ifndef __OOL_XCOUNTRY_H__
#define __OOL_XCOUNTRY_H__
/*===========================================================================*/
/* OOL ------------------- the Open Object Library ------------- OS/2 Beta 1 */
/*===========================================================================*/
/* class: XCountryInfo */
/* derived from: XObject */
/* last update: 1/97 */
/* programmed by: Stefan von Brauk (sbrauk@gwdg.de) */
/*===========================================================================*/
#include "xobject.h"
#include "xstring.h"
class _export_ XCountryInfo: public XObject
{
private:
COUNTRYINFO cInfo;
public:
XCountryInfo();
ULONG GetCountry() { return cInfo.country; }
ULONG GetCodePage() { return cInfo.codepage; }
void GetCurrency( XString * s) { *s = cInfo.szCurrency; }
ULONG GetDateFormat() { return cInfo.fsDateFmt; }
CHAR GetDateSeparator() { return cInfo.szDateSeparator[0]; }
CHAR GetDecimalSeparator( ) { return cInfo.szDecimal[0]; }
CHAR GetThousandsSeparator( ) { return cInfo.szThousandsSeparator[0]; }
CHAR GetTimeSeparator( ) { return cInfo.szTimeSeparator[0]; }
BOOL IsTimeAmPm() { return (cInfo.fsTimeFmt == 0 ? TRUE: FALSE); }
};
#endif