source: Swollen/swollen/customargumentparser.h @ 317

Last change on this file since 317 was 125, checked in by darran, 19 years ago
  • adding -movie ability ...
File size: 586 bytes
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
14class CustomArgumentParser : public osg::ArgumentParser
15{
16
17public:
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
25protected:
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.