723383c0f4
* integrating most of the locale kit into the build (and image) * removed LocaleBuild.h and _IMPEXP_LOCALE since that does not make sense for elf (which usually exports all symbols anyway) * added a couple of locale kit related pseudo targets for convenience Hey, some of that stuff already seems to work :-) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30545 a95241bf-73f2-0310-859d-f6bbb57e9c96
46 lines
1.0 KiB
C++
46 lines
1.0 KiB
C++
#ifndef _B_CURRENCY_H_
|
|
#define _B_CURRENCY_H_
|
|
|
|
#include <Archivable.h>
|
|
#include <Message.h>
|
|
#include <String.h>
|
|
|
|
class BLocale;
|
|
|
|
class BCurrency : public BArchivable {
|
|
public:
|
|
BCurrency(const BCurrency &other);
|
|
BCurrency(BMessage *archive);
|
|
BCurrency(const char *currencyCode);
|
|
~BCurrency();
|
|
|
|
status_t InitCheck() const;
|
|
|
|
virtual status_t Archive(BMessage *archive, bool deep = true) const;
|
|
static BArchivable *Instantiate(BMessage *archive);
|
|
|
|
const char *CurrencyCode() const;
|
|
const char *DefaultSymbol() const;
|
|
int32 DefaultFractionDigits() const;
|
|
|
|
status_t GetSymbol(char *symbol, size_t maxSize,
|
|
BLocale *locale = NULL);
|
|
status_t GetSymbol(BString *symbol, BLocale *locale = NULL);
|
|
|
|
BCurrency &operator=(const BCurrency &other);
|
|
bool operator==(const BCurrency &other) const;
|
|
bool operator!=(const BCurrency &other) const;
|
|
|
|
private:
|
|
BCurrency();
|
|
|
|
bool _CheckData() const;
|
|
void _Unset(status_t error);
|
|
|
|
BString fCurrencyCode;
|
|
BString fDefaultSymbol;
|
|
int32 fDefaultFractionDigits;
|
|
};
|
|
|
|
#endif // _B_CURRENCY_H_
|