FileNameOptions Class Reference
Inherits Options.
Detailed Description
Options for examples with additional file name parameter.Definition at line 47 of file javascript.cc.
Public Member Functions | |
FileNameOptions (const char *n) | |
Initialize options for example with name n. | |
virtual void | help (void) |
Print help text. | |
void | parse (int &argc, char *argv[]) |
Parse options from arguments argv (number is argc). | |
void | file (const char *f) |
Set file name. | |
const char * | file (void) const |
Return file name. | |
Protected Attributes | |
const char * | _file |
File name value. |
Constructor & Destructor Documentation
FileNameOptions::FileNameOptions | ( | const char * | n | ) |
Member Function Documentation
void FileNameOptions::help | ( | void | ) | [virtual] |
void FileNameOptions::parse | ( | int & | argc, | |
char * | argv[] | |||
) |
Parse options from arguments argv (number is argc).
Reimplemented from Options.
Definition at line 83 of file javascript.cc.
void FileNameOptions::file | ( | const char * | f | ) | [inline] |
const char * FileNameOptions::file | ( | void | ) | const [inline] |
Member Data Documentation
const char* FileNameOptions::_file [protected] |
The documentation for this class was generated from the following file:
- examples/javascript.cc (Revision: 6002)