37 #ifndef H_OGF_META_MEMBERS_META_METHOD_H
38 #define H_OGF_META_MEMBERS_META_METHOD_H
65 const std::string& method_name,
const ArgList& args,
82 const std::string& name,
84 const std::string& return_type
95 const std::string& name,
122 size_t nb_args()
const {
123 return meta_args_.size();
132 ogf_assert(i < meta_args_.size());
133 return meta_args_[i].name();
142 ogf_assert(i < meta_args_.size());
143 return meta_args_[i].type_name();
152 ogf_assert(i < meta_args_.size());
153 return meta_args_[i].type();
163 ogf_assert(i < meta_args_.size());
164 return meta_args_[i].has_default_value();
173 return ith_arg_default_value(i).as_string();
181 return return_type_name_ ;
200 index_t i,
const std::string& name
212 index_t i,
const std::string& name
250 ogf_assert(i < meta_args_.size());
251 return meta_args_[i].default_value();
262 ogf_assert(i < meta_args_.size()) ;
263 return &(meta_args_[i]) ;
273 ogf_assert(i < meta_args_.size()) ;
274 return &(meta_args_[i]) ;
283 meta_args_.push_back(arg) ;
293 bool has_arg(
const std::string& meta_arg_name) ;
353 const std::string& method_name,
412 Object* target,
const std::string& sig_name,
413 const ArgList& args,
bool called_from_slot =
true
424 const std::string& signal_name,
425 const ArgList& args,
bool called_from_slot =
true
427 return emit_signal(
this, signal_name, args, called_from_slot);
431 std::string return_type_name_ ;
A class that stores a variable of arbitrary type.
Represents a list of name-value pairs.
Base class for all objects in the GOM system.
virtual bool invoke_method(const std::string &method_name, const ArgList &args, Any &ret_val)
Invokes a method by method name and argument list, and gets the return value.
geo_index_t index_t
The type for storing and manipulating indices.
Global Graphite namespace.
bool(* gom_method_adapter)(Object *target, const std::string &method_name, const ArgList &args, Any &ret_val)
Function pointer types for method adapters.
std::vector< MetaArg > MetaArgList
Meta representation of a list of arguments.
SmartPointer< MetaMethod > MetaMethod_var
Automatic reference-counted pointer to a MetaMethod.
Definitions common to all include files in the gom library.