Files
Work/analytic/MONEY.HPP
2024-08-07 09:12:07 -04:00

28 lines
566 B
C++

#ifndef _ANALYTIC_MONEY_HPP_
#define _ANALYTIC_MONEY_HPP_
#ifndef _COMMON_STRING_HPP_
#include <common/string.hpp>
#endif
class Money
{
public:
Money(void);
Money(double value);
Money(const Money &someMoney);
Money(String strMoney);
virtual ~Money();
Money &operator=(const Money &someMoney);
operator String(void);
void format(const String &strFormat);
const String &format(void)const;
double value(void)const;
void value(double value);
protected:
virtual void apply(String &strMoney);
private:
double mValue;
String mFormat;
};
#endif