vdr  2.2.0
args.h
Go to the documentation of this file.
1 /*
2  * args.h: Read arguments from files
3  *
4  * See the main source file 'vdr.c' for copyright information and
5  * how to reach the author.
6  *
7  * Original version written by Lars Hanisch <dvb@flensrocker.de>.
8  *
9  * $Id: args.h 1.1 2014/04/14 11:54:21 kls Exp $
10  */
11 
12 #ifndef __ARGS_H
13 #define __ARGS_H
14 
15 #include "tools.h"
16 
17 class cArgs {
18 private:
23  int argc;
24  char **argv;
25  bool AddArg(const char *s);
26 public:
27  cArgs(const char *Argv0);
28  ~cArgs(void);
29  bool ReadDirectory(const char *Directory);
30  int GetArgc(void) const { return argc; };
31  char **GetArgv(void) const { return argv; };
32  };
33 
34 #endif //__ARGS_H
cArgs(const char *Argv0)
Definition: args.c:15
cString lastArg
Definition: args.h:21
Definition: args.h:17
~cArgs(void)
Definition: args.c:22
int argc
Definition: args.h:23
cStringList args
Definition: args.h:20
int GetArgc(void) const
Definition: args.h:30
char ** GetArgv(void) const
Definition: args.h:31
bool ReadDirectory(const char *Directory)
Definition: args.c:39
bool inVdrSection
Definition: args.h:22
char ** argv
Definition: args.h:24
bool AddArg(const char *s)
Definition: args.c:28
cString argv0
Definition: args.h:19
Definition: tools.h:168