Rev | Line | |
---|
[120] | 1 | /* |
---|
| 2 | CustomArgementParser class |
---|
| 3 | |
---|
| 4 | An OpenSceneGraph viewer for pyVolution .sww files. |
---|
| 5 | copyright (C) 2004-2005 Geoscience Australia |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include <osg/ArgumentParser> |
---|
[121] | 9 | #include <istream> |
---|
| 10 | #include <vector> |
---|
| 11 | #include <string> |
---|
[120] | 12 | |
---|
| 13 | |
---|
| 14 | class CustomArgumentParser : public osg::ArgumentParser |
---|
| 15 | { |
---|
| 16 | |
---|
| 17 | public: |
---|
[121] | 18 | |
---|
[120] | 19 | CustomArgumentParser(int *argc, char **argv); |
---|
[121] | 20 | void write(std::ostream& s); |
---|
| 21 | bool isSWM(){ return _isswm; }; |
---|
[125] | 22 | std::string getFilename(){ return *_filename; } |
---|
[120] | 23 | |
---|
[121] | 24 | |
---|
[120] | 25 | protected: |
---|
| 26 | |
---|
[121] | 27 | int _nargs; |
---|
| 28 | std::vector<std::string> _vargs; |
---|
| 29 | std::string* _filename; |
---|
| 30 | bool _isswm; |
---|
[120] | 31 | }; |
---|
| 32 | |
---|
Note: See
TracBrowser
for help on using the repository browser.