00001 #ifndef __OPTTYPES
00002 #define __OPTTYPES
00003
00023 #define T_STR 1
00024 #define T_INT 2
00025 #define T_BOOL 3
00026 #define T_SPEC 4
00027 #define T_UNKNOWN 0
00028
00029 #define T_SPEC_CHANGE_RULES 16
00030 #define T_SPEC_DISK 17
00031 #define T_SPEC_CHANGE 18
00032 #define T_SPEC_MAP_DRIVE 19
00033 #define T_SPEC_MAP 20
00034
00035 #include <map>
00036 #include <string>
00037 #include <Y2.h>
00038
00039
00040
00041 using namespace std;
00042
00043 class OptTypes {
00044 private:
00045 map <string, int> _options;
00046
00047 public:
00048 int getOptType(const string& optname);
00049
00050 string getSpecGroup(const string& optname);
00051
00052 YCPMap getYCPOptTypes ();
00053
00054 OptTypes (const string& init_type = "");
00055 };
00056
00057 #endif