kzs_arg.hpp File Reference

Variable argument list wrapper. More...

#include <kanzi/core/legacy/kzs_types.hpp>
#include <stdarg.h>

Macros

#define KZ_CONST_ARGLIST
 Variable argument iterator constant modifier. More...
 
#define KZ_READ_FLOAT_FROM_ARGLIST(list_param)
 Reads a float from variable argument iterator. More...
 
#define KZ_READ_INT_FROM_ARGLIST(list_param)
 Reads an integer from variable argument iterator. More...
 
#define KZ_READ_UINT_FROM_ARGLIST(list_param)
 Reads an unsigned integer from variable argument iterator. More...
 
#define KZ_READ_BOOL_FROM_ARGLIST(list_param)
 Reads a boolean from variable argument iterator. More...
 
#define KZ_READ_CHAR_FROM_ARGLIST(list_param)
 Reads a character from variable argument iterator. More...
 
#define KZ_READ_STRING_FROM_ARGLIST(list_param)
 Reads a string from variable argument iterator. More...
 
#define KZ_READ_POINTER_FROM_FROM_ARGLIST(list_param)
 Reads a pointer from variable argument iterator. More...
 

Typedefs

typedef va_list kzArgList
 Variable argument iterator type. More...
 

Functions

void kzArgListCopy (kzArgList *target, KZ_CONST_ARGLIST kzArgList *source)
 Makes a copy of a variable argument list. More...
 
void kzArgListEnd (kzArgList *list)
 Deletes a copy of a variable argument list. More...
 

Detailed Description

Variable argument list wrapper.

Copyright 2008-2017 by Rightware. All rights reserved.

Macro Definition Documentation

#define KZ_CONST_ARGLIST

Variable argument iterator constant modifier.

#define KZ_READ_FLOAT_FROM_ARGLIST (   list_param)

Reads a float from variable argument iterator.

#define KZ_READ_INT_FROM_ARGLIST (   list_param)

Reads an integer from variable argument iterator.

#define KZ_READ_UINT_FROM_ARGLIST (   list_param)

Reads an unsigned integer from variable argument iterator.

#define KZ_READ_BOOL_FROM_ARGLIST (   list_param)

Reads a boolean from variable argument iterator.

#define KZ_READ_CHAR_FROM_ARGLIST (   list_param)

Reads a character from variable argument iterator.

#define KZ_READ_STRING_FROM_ARGLIST (   list_param)

Reads a string from variable argument iterator.

#define KZ_READ_POINTER_FROM_FROM_ARGLIST (   list_param)

Reads a pointer from variable argument iterator.

Typedef Documentation

typedef va_list kzArgList

Variable argument iterator type.

kzArgList may not be passed by value to a function nor copied without using kzArgListCopy().

Function Documentation

void kzArgListCopy ( kzArgList target,
KZ_CONST_ARGLIST kzArgList source 
)

Makes a copy of a variable argument list.

void kzArgListEnd ( kzArgList list)

Deletes a copy of a variable argument list.

Must be called once for every kzArgListCopy().