apm_callback_format_args (public)
apm_callback_format_args [ -version_id version_id ] \ [ -package_key package_key ] -type type [ -arg_list arg_list ]
Defined in packages/acs-tcl/tcl/apm-procs.tcl
Return a string on format -arg_name1 arg_value1 -arg_name2 arg_value2 ... for the callback proc of given type.
- Switches:
- -version_id (optional)
- -package_key (optional)
- -type (required)
- -arg_list (optional)
- Author:
- Peter Marklund
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- apm__test_callback_invoke
Source code: array set args_array $arg_list set arg_string "" set provided_arg_names [array names args_array] foreach required_arg_name [apm_arg_names_for_callback_type -type $type] { if {$required_arg_name ni $provided_arg_names} { error "required argument $required_arg_name not supplied to callback proc of type $type" } append arg_string " -${required_arg_name} $args_array($required_arg_name)" } return $arg_stringGeneric XQL file: packages/acs-tcl/tcl/apm-procs.xql
PostgreSQL XQL file: packages/acs-tcl/tcl/apm-procs-postgresql.xql
Oracle XQL file: packages/acs-tcl/tcl/apm-procs-oracle.xql