Utility class that parses the file translator options passed through by Maya.
More...
#include <FileTranslatorOptions.h>
|
| OptionsParser () |
| ctor
|
|
| ~OptionsParser () |
| dtor
|
|
MStatus | parse (const MString &optionString) |
| Given a string containing a semi-colon separated list of options passed to a file translator plugin, this function will parse and extract all of the option values. More...
|
|
bool | getBool (const char *const str) const |
| Given the text name of an option, returns the boolean value for that option. More...
|
|
int | getInt (const char *const str) const |
| Given the text name of an option, returns the integer value for that option. More...
|
|
float | getFloat (const char *const str) const |
| Given the text name of an option, returns the floating point value for that option. More...
|
|
MString | getString (const char *const str) const |
| Given the text name of an option, returns the string value for that option. More...
|
|
|
class | FileTranslatorOptions |
|
Utility class that parses the file translator options passed through by Maya.
bool AL::maya::OptionsParser::getBool |
( |
const char *const |
str | ) |
const |
|
inline |
Given the text name of an option, returns the boolean value for that option.
- Parameters
-
str | the name of the option |
- Returns
- the option value
float AL::maya::OptionsParser::getFloat |
( |
const char *const |
str | ) |
const |
|
inline |
Given the text name of an option, returns the floating point value for that option.
- Parameters
-
str | the name of the option |
- Returns
- the option value
int AL::maya::OptionsParser::getInt |
( |
const char *const |
str | ) |
const |
|
inline |
Given the text name of an option, returns the integer value for that option.
- Parameters
-
str | the name of the option |
- Returns
- the option value
MString AL::maya::OptionsParser::getString |
( |
const char *const |
str | ) |
const |
|
inline |
Given the text name of an option, returns the string value for that option.
- Parameters
-
str | the name of the option |
- Returns
- the option value
MStatus AL::maya::OptionsParser::parse |
( |
const MString & |
optionString | ) |
|
Given a string containing a semi-colon separated list of options passed to a file translator plugin, this function will parse and extract all of the option values.
- Parameters
-
optionString | the option string to parse |
- Returns
- MS::kSuccess if the parsing was successful, false otherwise.
The documentation for this class was generated from the following file: