File: args.h

package info (click to toggle)
vdr 2.6.9-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,512 kB
  • sloc: ansic: 63,196; perl: 966; makefile: 724; sh: 637; python: 86
file content (34 lines) | stat: -rw-r--r-- 687 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * args.h: Read arguments from files
 *
 * See the main source file 'vdr.c' for copyright information and
 * how to reach the author.
 *
 * Original version written by Lars Hanisch <dvb@flensrocker.de>.
 *
 * $Id: args.h 1.1 2014/04/14 11:54:21 kls Exp $
 */

#ifndef __ARGS_H
#define __ARGS_H

#include "tools.h"

class cArgs {
private:
  cString argv0;
  cStringList args;
  cString lastArg;
  bool inVdrSection;
  int argc;
  char **argv;
  bool AddArg(const char *s);
public:
  cArgs(const char *Argv0);
  ~cArgs(void);
  bool ReadDirectory(const char *Directory);
  int GetArgc(void) const { return argc; };
  char **GetArgv(void) const { return argv; };
  };

#endif //__ARGS_H