vdr 2.6.1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cArgs Class Reference

#include <args.h>

Public Member Functions

 cArgs (const char *Argv0)
 
 ~cArgs (void)
 
bool ReadDirectory (const char *Directory)
 
int GetArgc (void) const
 
char ** GetArgv (void) const
 
 cArgs (const char *Argv0)
 
 ~cArgs (void)
 
bool ReadDirectory (const char *Directory)
 
int GetArgc (void) const
 
char ** GetArgv (void) const
 

Private Member Functions

bool AddArg (const char *s)
 
bool AddArg (const char *s)
 

Private Attributes

cString argv0
 
cStringList args
 
cString lastArg
 
bool inVdrSection
 
int argc
 
char ** argv
 

Detailed Description

Definition at line 17 of file args.h.

Constructor & Destructor Documentation

◆ cArgs() [1/2]

cArgs::cArgs ( const char *  Argv0)

Definition at line 15 of file args.c.

References argc, argv, and argv0.

◆ ~cArgs() [1/2]

cArgs::~cArgs ( void  )

Definition at line 22 of file args.c.

References argv.

◆ cArgs() [2/2]

cArgs::cArgs ( const char *  Argv0)

◆ ~cArgs() [2/2]

cArgs::~cArgs ( void  )

Member Function Documentation

◆ AddArg() [1/2]

bool cArgs::AddArg ( const char *  s)
private

Definition at line 28 of file args.c.

References cVector< T >::Append(), args, inVdrSection, lastArg, and cString::sprintf().

Referenced by ReadDirectory().

◆ AddArg() [2/2]

bool cArgs::AddArg ( const char *  s)
private

◆ GetArgc() [1/2]

int cArgs::GetArgc ( void  ) const
inline

Definition at line 30 of file args.h.

References argc.

Referenced by main().

◆ GetArgc() [2/2]

int cArgs::GetArgc ( void  ) const
inline

Definition at line 30 of file include/vdr/args.h.

References argc.

◆ GetArgv() [1/2]

char ** cArgs::GetArgv ( void  ) const
inline

Definition at line 31 of file args.h.

References argv.

Referenced by main().

◆ GetArgv() [2/2]

char ** cArgs::GetArgv ( void  ) const
inline

Definition at line 31 of file include/vdr/args.h.

References argv.

◆ ReadDirectory() [1/2]

bool cArgs::ReadDirectory ( const char *  Directory)

◆ ReadDirectory() [2/2]

bool cArgs::ReadDirectory ( const char *  Directory)

Member Data Documentation

◆ argc

int cArgs::argc
private

Definition at line 23 of file args.h.

Referenced by cArgs(), GetArgc(), and ReadDirectory().

◆ args

cStringList cArgs::args
private

Definition at line 20 of file args.h.

Referenced by AddArg(), and ReadDirectory().

◆ argv

char ** cArgs::argv
private

Definition at line 24 of file args.h.

Referenced by cArgs(), GetArgv(), ReadDirectory(), and ~cArgs().

◆ argv0

cString cArgs::argv0
private

Definition at line 19 of file args.h.

Referenced by cArgs(), and ReadDirectory().

◆ inVdrSection

bool cArgs::inVdrSection
private

Definition at line 22 of file args.h.

Referenced by AddArg(), and ReadDirectory().

◆ lastArg

cString cArgs::lastArg
private

Definition at line 21 of file args.h.

Referenced by AddArg(), and ReadDirectory().


The documentation for this class was generated from the following files: