HDK
|
Option parser template. More...
Go to the source code of this file.
Functions | |
template<class C > | |
OIIO_NAMESPACE_BEGIN bool | optparse1 (C &system, const std::string &opt) |
template<class C > | |
bool | optparser (C &system, const std::string &optstring) |
Option parser template.
Definition in file optparser.h.
|
inline |
Parse a string of the form "name=value" and then call system.attribute (name, value), with appropriate type conversions.
Definition at line 25 of file optparser.h.
|
inline |
Parse a string with comma-separated name=value directives, calling system.attribute(name,value) for each one, with appropriate type conversions. Examples: optparser(texturesystem, "verbose=1"); optparser(texturesystem, "max_memory_MB=32.0"); optparser(texturesystem, "a=1,b=2,c=3.14,d=\"a string"");
Definition at line 68 of file optparser.h.