![]() |
VISR
0.11.1
Versatile Interactive Scene Renderer
|
#include <argument_list.hpp>
Public Member Functions | |
ArgumentList (short argc, t_atom *argv) | |
std::size_t | argc () const |
char const *const * | argv () const |
Transform and wrap a MAX/MSP option list into a standard argument list such as used by the C/C++ main() function or accepted by boost::program_options. This implies that all type information carried by the Max atoms is discarded and the atoms are returned into their string representation. In addition, a dummy value is prepended at position zero, because program_options interprets the zeroth arguments as the binary name (as it is in a standard-compliant option list).
|
explicit |
Constructor, parses the max-style list into a C-style option list.
argc | Number of arguments |
argv | Arguments, provided as array of Max atoms. |
std::size_t visr::maxmsp::ArgumentList::argc | ( | ) | const |
Query the number of arguments.
char const *const * visr::maxmsp::ArgumentList::argv | ( | ) | const |
Return the parsed argument as a c-style pointer array (as in a standard option list)