| // Copyright (c) 2006- Facebook |
| // Distributed under the Thrift Software License |
| // See accompanying file LICENSE or visit the Thrift site at: |
| // http://developers.facebook.com/thrift/ |
| * Representation of a function. Key parts are return type, function name, |
| * optional modifiers, and an argument list, which is implemented as a thrift |
| * @author Mark Slee <mcslee@facebook.com> |
| class t_function : public t_doc { |
| t_function(t_type* returntype, |
| xceptions_ = new t_struct(NULL); |
| t_function(t_type* returntype, |
| if (async_ && !xceptions_->get_members().empty()) { |
| throw std::string("Async methods can't throw exceptions."); |
| t_type* get_returntype() const { |
| const std::string& get_name() const { |
| t_struct* get_arglist() const { |
| t_struct* get_xceptions() const { |