OpenCOVER
coCommandLine.h
Go to the documentation of this file.
1/* This file is part of COVISE.
2
3 You can use it under the terms of the GNU Lesser General Public License
4 version 2.1 or later, see lgpl-2.1.txt.
5
6 * License: LGPL 2+ */
7
8#ifndef CO_COMMAND_LINE_H
9#define CO_COMMAND_LINE_H
10
24#include <util/coExport.h>
25#include <ostream>
26
27namespace opencover
28{
29class COVEREXPORT coCommandLine
30{
31public:
32 coCommandLine(int argc, char *argv[]);
34 static int &argc();
35 static char **argv();
36 static char *argv(int i);
37 static void shift(int amount = 1);
38
39private:
40 static int s_argc;
41 static char **s_argv;
42 static coCommandLine *s_instance;
43};
44
45std::ostream &operator<<(std::ostream &os, const coCommandLine &cmd);
46}
47#endif
Definition: ARToolKit.h:33
std::ostream & operator<<(std::ostream &os, const coCommandLine &cmd)
Definition: coCommandLine.h:30
coCommandLine(int argc, char *argv[])
static char * argv(int i)
static coCommandLine * instance()
static void shift(int amount=1)
static char ** argv()