| // Forward declare for xsd_attrs |
| * Class to represent a field in a thrift structure. A field has a data type, |
| * a symbolic name, and a numeric identifier. |
| * @author Mark Slee <mcslee@facebook.com> |
| t_field(t_type* type, std::string name) : |
| t_field(t_type* type, std::string name, int32_t key) : |
| t_type* get_type() const { |
| const std::string& get_name() const { |
| int32_t get_key() const { |
| void set_value(t_const_value* value) { |
| t_const_value* get_value() { |
| void set_xsd_optional(bool xsd_optional) { |
| xsd_optional_ = xsd_optional; |
| bool get_xsd_optional() const { |
| void set_xsd_nillable(bool xsd_nillable) { |
| xsd_nillable_ = xsd_nillable; |
| bool get_xsd_nillable() const { |
| void set_xsd_attrs(t_struct* xsd_attrs) { |
| t_struct* get_xsd_attrs() { |
| const std::string& get_doc() const { |
| void set_doc(const std::string& doc) { |