23 #ifndef __INTERFACES_GENERATOR_FIELD_H_
24 #define __INTERFACES_GENERATOR_FIELD_H_
29 #include <interfaces/generator/enum_constant.h>
34 InterfaceField(std::vector<InterfaceEnumConstant> *enum_constants = NULL);
37 void setName(
const std::string &name);
38 void setType(
const std::string &type);
40 void setLength(
const std::string &length);
41 void setFlags(
const std::vector<std::string> &flags);
45 void setAttribute(
const std::string &attr_name,
const std::string &attr_value);
57 std::vector<std::string>
getFlags()
const;
64 void tokenize(
const std::string& str,
65 std::vector<std::string>& tokens,
66 const std::string& delimiters =
" ");
74 unsigned int length_value;
76 std::string default_value;
77 std::vector<std::string> flags;
78 std::vector<InterfaceEnumConstant> *enum_constants;