Blender V5.3
BLI_args.hh File Reference

A general argument parsing module. More...

#include <stdarg.h>
#include <stdbool.h>
#include "BLI_compiler_attrs.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Typedefs

using blender::BA_ArgCallback = int (*)(int argc, const char **argv, void *data)
using blender::bArgPrintFn = void (*)(void *user_data, const char *format, va_list args)

Functions

struct bArgs * blender::BLI_args_create (int argc, const char **argv)
void blender::BLI_args_destroy (struct bArgs *ba)
void blender::BLI_args_printf (struct bArgs *ba, const char *format,...)
void blender::BLI_args_print_fn_set (struct bArgs *ba, ATTR_PRINTF_FORMAT(2, 0) bArgPrintFn print_fn, void *user_data)
void blender::BLI_args_pass_set (struct bArgs *ba, int current_pass)
void blender::BLI_args_add (struct bArgs *ba, const char *short_arg, const char *long_arg, const char *doc, BA_ArgCallback cb, void *data)
void blender::BLI_args_add_case (struct bArgs *ba, const char *short_arg, int short_case, const char *long_arg, int long_case, const char *doc, BA_ArgCallback cb, void *data)
void blender::BLI_args_parse (struct bArgs *ba, int pass, BA_ArgCallback default_cb, void *default_data)
void blender::BLI_args_print_arg_doc (struct bArgs *ba, const char *arg)
void blender::BLI_args_print_other_doc (struct bArgs *ba)
bool blender::BLI_args_has_other_doc (const struct bArgs *ba)
void blender::BLI_args_print (const struct bArgs *ba)

Detailed Description

A general argument parsing module.

Definition in file BLI_args.hh.