Line | |
---|
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> |
---|
9 | #include <istream> |
---|
10 | #include <vector> |
---|
11 | #include <string> |
---|
12 | |
---|
13 | |
---|
14 | class CustomArgumentParser : public osg::ArgumentParser |
---|
15 | { |
---|
16 | |
---|
17 | public: |
---|
18 | |
---|
19 | CustomArgumentParser(int *argc, char **argv); |
---|
20 | void write(std::ostream& s); |
---|
21 | bool isSWM(){ return _isswm; }; |
---|
22 | std::string getFilename(){ return *_filename; } |
---|
23 | |
---|
24 | |
---|
25 | protected: |
---|
26 | |
---|
27 | int _nargs; |
---|
28 | std::vector<std::string> _vargs; |
---|
29 | std::string* _filename; |
---|
30 | bool _isswm; |
---|
31 | }; |
---|
32 | |
---|
Note: See
TracBrowser
for help on using the repository browser.