/* * lookupTable.h * * Created on: 11.10.2015 * Author: jdi */ #ifndef LOOKUPTABLE_H_ #define LOOKUPTABLE_H_ #include #include class table { public: enum F {STRING,HEX,DEC,ACTION,BOOL,EMPTY}; struct set { short type; F format; std::string name; std::string id; }; table(std::initializer_list l); const table::set operator[](std::string); const table::set operator[](short); bool exists(std::string); bool exists(short); short type(std::string); std::string id(short); std::string name(short); private: std::vector data; std::map left; std::map right; }; #endif /* LOOKUPTABLE_H_ */