00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
#ifndef OMF_ENUMERATION_HPP
00026
#define OMF_ENUMERATION_HPP
00027
00028
00029
#include <vector>
00030
00031
00032
#include <OMF/Primitive.hpp>
00033
00034
namespace OMF
00035 {
00042 class Enumeration :
public Primitive
00043 {
00044
public:
00045
Enumeration(
const std::string &mc);
00046
Enumeration(
const std::string &mc,
const Enumeration &value);
00047
Enumeration(
const std::string &mc,
const std::string &value);
00048
virtual ~Enumeration();
00049
00050
const Enumeration &
operator =(
const Enumeration &value);
00051
const Enumeration &
operator =(
const std::string &value);
00052
00058
virtual const std::vector<std::string> &
labels()
const = 0;
00059
00064
const std::string &
labelAt(size_t index)
const;
00065 };
00066 }
00067
00068
#endif