home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool_main.zip / ool / include / xcountry.h < prev    next >
C/C++ Source or Header  |  1998-04-05  |  2KB  |  38 lines

  1. #ifndef __OOL_XCOUNTRY_H__
  2. #define __OOL_XCOUNTRY_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------------- r 1.0 */
  6. /*===========================================================================*/
  7. /*                              class: XCountryInfo                          */
  8. /*                       derived from: XObject                               */
  9. /*                        last update: 1/97                                  */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13.  
  14.  
  15. #include "xobject.h"
  16. #include "xstring.h"
  17.  
  18. class _export_ XCountryInfo: public XObject
  19. {
  20.    private:
  21.       COUNTRYINFO cInfo;
  22.    public:
  23.       XCountryInfo();
  24.       ULONG GetCountry() const { return cInfo.country; }
  25.       ULONG GetCodePage() const { return cInfo.codepage; }
  26.       void GetCurrency( XString * s) const { *s = cInfo.szCurrency; }
  27.       ULONG GetDateFormat() const { return cInfo.fsDateFmt; }
  28.       CHAR GetDateSeparator() const { return cInfo.szDateSeparator[0]; }
  29.       CHAR GetDecimalSeparator( ) const { return cInfo.szDecimal[0]; }
  30.       CHAR GetThousandsSeparator( ) const { return cInfo.szThousandsSeparator[0]; }
  31.       CHAR GetTimeSeparator( ) const { return cInfo.szTimeSeparator[0]; }
  32.       BOOL IsTimeAmPm() const { return (cInfo.fsTimeFmt == 0 ? TRUE: FALSE); }
  33. };
  34.  
  35.  
  36.  
  37. #endif
  38.