SOIL C++
C++ Unified Device Interface
Enum.h
Go to the documentation of this file.
1#pragma once
2#include "constants.h"
3#include <string>
4#include <vector>
5#include <stdexcept>
6
7namespace SOIL
8{
15 class DLL Enum
16 {
17 private:
23 std::string _selected;
24
30 std::vector<std::string> _choices;
31 public:
37 Enum();
38
48 Enum(std::string value);
49
58 Enum(std::string value, std::vector<std::string> choices);
59
65 ~Enum();
66
73 std::string selected(void) const;
74
81 std::vector<std::string> choices(void);
82
89 int index() const;
90
102 int index(std::string value) const;
103
113 void set(int value);
114
124 void set(std::string value);
125 };
126}
SOIL Enum Datatype.
Definition: Enum.h:16
Type definitions.
Definition: Container.h:7