Public Attributes

Menu::arg Struct Reference

#include <menu.h>

List of all members.

Public Attributes

const char * str
 string form of the argument
long i
 integer form of the argument (if a number)
float f
 floating point form of the argument (if a number)

Detailed Description

argument passed to a menu function

Space-delimited arguments are parsed from the commandline and separated into these structures.

If the argument cannot be parsed as a float or a long, the value of f or i respectively is undefined. You should range-check the inputs to your function.

Definition at line 35 of file menu.h.


Member Data Documentation

float Menu::arg::f

floating point form of the argument (if a number)

Definition at line 38 of file menu.h.

integer form of the argument (if a number)

Definition at line 37 of file menu.h.

const char* Menu::arg::str

string form of the argument

Definition at line 36 of file menu.h.


The documentation for this struct was generated from the following file: