15 #ifndef RCL__ARGUMENTS_H_ 16 #define RCL__ARGUMENTS_H_ 28 struct rcl_arguments_impl_t;
34 struct rcl_arguments_impl_t *
impl;
37 #define RCL_LOG_LEVEL_ARG_RULE "__log_level:=" 38 #define RCL_EXTERNAL_LOG_CONFIG_ARG_RULE "__log_config_file:=" 39 #define RCL_LOG_DISABLE_STDOUT_ARG_RULE "__log_disable_stdout:=" 40 #define RCL_LOG_DISABLE_ROSOUT_ARG_RULE "__log_disable_rosout:=" 41 #define RCL_LOG_DISABLE_EXT_LIB_ARG_RULE "__log_disable_external_lib:=" 42 #define RCL_PARAM_FILE_ARG_RULE "__params:=" 96 const char *
const argv[],
151 int ** output_unparsed_indices);
200 char *** parameter_files);
233 char const *
const argv[],
237 const char ** nonros_argv[]);
289 #endif // RCL__ARGUMENTS_H_ rcl_ret_t rcl_arguments_copy(const rcl_arguments_t *args, rcl_arguments_t *args_out)
Copy one arguments structure into another.
Definition: arguments.c:479
rcl_ret_t rcl_arguments_get_unparsed(const rcl_arguments_t *args, rcl_allocator_t allocator, int **output_unparsed_indices)
Return a list of indexes that weren't successfully parsed.
Definition: arguments.c:403
int rcl_arguments_get_param_files_count(const rcl_arguments_t *args)
Return the number of parameter yaml files given in the arguments.
Definition: arguments.c:109
struct rcl_arguments_t rcl_arguments_t
Hold output of parsing command line arguments.
rmw_ret_t rcl_ret_t
Definition: types.h:20
Hold output of parsing command line arguments.
Definition: arguments.h:31
rcl_ret_t rcl_remove_ros_arguments(char const *const argv[], const rcl_arguments_t *args, rcl_allocator_t allocator, int *nonros_argc, const char **nonros_argv[])
Return a list of arguments with ROS-specific arguments removed.
Definition: arguments.c:437
rcl_arguments_t rcl_get_zero_initialized_arguments(void)
Return a rcl_node_t struct with members initialized to NULL.
Definition: arguments.c:428
rcl_ret_t rcl_arguments_get_param_files(const rcl_arguments_t *arguments, rcl_allocator_t allocator, char ***parameter_files)
Return a list of yaml parameter file paths specified on the command line.
Definition: arguments.c:76
int rcl_arguments_get_count_unparsed(const rcl_arguments_t *args)
Return the number of arguments that were not successfully parsed.
Definition: arguments.c:393
#define RCL_WARN_UNUSED
Ignored return values of functions with this macro will emit a warning.
Definition: macros.h:25
rcl_ret_t rcl_arguments_fini(rcl_arguments_t *args)
Reclaim resources held inside rcl_arguments_t structure.
Definition: arguments.c:574
#define RCL_PUBLIC
Definition: visibility_control.h:48
struct rcl_arguments_impl_t * impl
Private implementation pointer.
Definition: arguments.h:34
rcl_ret_t rcl_parse_arguments(int argc, const char *const argv[], rcl_allocator_t allocator, rcl_arguments_t *args_output)
Parse command line arguments into a structure usable by code.
Definition: arguments.c:186