source: Swollen/swollen/customargumentparser.h @ 1697

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