DRDE/AusRegEPPTK/se/PeriodUnit.hpp

25 lines
525 B
C++
Raw Normal View History

2013-12-31 19:36:07 +00:00
#ifndef __PERIOD_UNIT_HPP
#define __PERIOD_UNIT_HPP
#include "se/EnumType.hpp"
/**
* Enumeration of units supported by EPP for period elements.
*/
class PeriodUnit : public EnumType
{
public:
PeriodUnit (const std::string &description);
static const PeriodUnit* MONTHS();
static const PeriodUnit* YEARS();
static const PeriodUnit* value(const std::string &name);
static void init();
private:
static std::vector<const EnumType *> values;
};
#endif // __PERIOD_UNIT_HPP