CommandLine Class Reference

#include <commandline.h>


Public Types

enum   Operation { opNone = 0, opCreate, opVerify, opRepair }
enum   Version { verUnknown = 0, verPar1, verPar2 }
enum   Scheme { scUnknown = 0, scVariable, scLimited, scUniform }
enum   NoiseLevel {
  nlUnknown = 0, nlSilent, nlQuiet, nlNormal,
  nlNoisy, nlDebug
}

Public Member Functions

  CommandLine (void)
  ~CommandLine (void)
bool  Parse (int argc, TCHAR *argv[])
CommandLine::Operation  GetOperation (void) const
CommandLine::Version  GetVersion (void) const
u64  GetBlockSize (void) const
u32  GetBlockCount (void) const
u32  GetRedundancy (void) const
u32  GetFirstRecoveryBlock (void) const
u32  GetRecoveryFileCount (void) const
u32  GetRecoveryBlockCount (void) const
CommandLine::Scheme  GetRecoveryFileScheme (void) const
size_t  GetMemoryLimit (void) const
u64  GetLargestSourceSize (void) const
u64  GetTotalSourceSize (void) const
CommandLine::NoiseLevel  GetNoiseLevel (void) const
const string &  GetBaseDirectory (void) const
string  GetParFilename (void) const
const list
< CommandLine::ExtraFile > & 
GetExtraFiles (void) const

Static Public Member Functions

static CommandLine get (void)
static string  FileOrPathForCout (const string &path)
static void  usage (void)

Protected Attributes

Operation  operation
Version  version
NoiseLevel  noiselevel
u32  blockcount
u64  blocksize
u32  firstblock
Scheme  recoveryfilescheme
u32  recoveryfilecount
u32  recoveryblockcount
bool  recoveryblockcountset
u32  redundancy
bool  redundancyset
string  parfilename
list< ExtraFile extrafiles
u64  totalsourcesize
u64  largestsourcesize
size_t  memorylimit
string  base_directory

Data Structures

class   ExtraFile

Detailed Description

Definition at line 33 of file commandline.h.


Member Enumeration Documentation

enum CommandLine::Operation

Enumerator:
opNone 
opCreate 
opVerify 
opRepair 

Definition at line 52 of file commandline.h.

enum CommandLine::Version

Enumerator:
verUnknown 
verPar1 
verPar2 

Definition at line 60 of file commandline.h.

enum CommandLine::Scheme

Enumerator:
scUnknown 
scVariable 
scLimited 
scUniform 

Definition at line 67 of file commandline.h.

enum CommandLine::NoiseLevel

Enumerator:
nlUnknown 
nlSilent 
nlQuiet 
nlNormal 
nlNoisy 
nlDebug 

Definition at line 75 of file commandline.h.


Constructor & Destructor Documentation

CommandLine::CommandLine ( void   ) 

CommandLine::~CommandLine ( void   ) 


Member Function Documentation

static CommandLine* CommandLine::get ( void   )  [static]

static string CommandLine::FileOrPathForCout ( const string &  path  )  [static]

bool CommandLine::Parse ( int  argc,
TCHAR argv[]  
)

static void CommandLine::usage ( void   )  [static]

CommandLine::Operation CommandLine::GetOperation ( void   )  const [inline]

Definition at line 106 of file commandline.h.

CommandLine::Version CommandLine::GetVersion ( void   )  const [inline]

Definition at line 107 of file commandline.h.

u64 CommandLine::GetBlockSize ( void   )  const [inline]

Definition at line 108 of file commandline.h.

u32 CommandLine::GetBlockCount ( void   )  const [inline]

Definition at line 109 of file commandline.h.

u32 CommandLine::GetRedundancy ( void   )  const [inline]

Definition at line 110 of file commandline.h.

u32 CommandLine::GetFirstRecoveryBlock ( void   )  const [inline]

Definition at line 111 of file commandline.h.

u32 CommandLine::GetRecoveryFileCount ( void   )  const [inline]

Definition at line 112 of file commandline.h.

u32 CommandLine::GetRecoveryBlockCount ( void   )  const [inline]

Definition at line 113 of file commandline.h.

CommandLine::Scheme CommandLine::GetRecoveryFileScheme ( void   )  const [inline]

Definition at line 114 of file commandline.h.

size_t CommandLine::GetMemoryLimit ( void   )  const [inline]

Definition at line 115 of file commandline.h.

u64 CommandLine::GetLargestSourceSize ( void   )  const [inline]

Definition at line 116 of file commandline.h.

u64 CommandLine::GetTotalSourceSize ( void   )  const [inline]

Definition at line 117 of file commandline.h.

CommandLine::NoiseLevel CommandLine::GetNoiseLevel ( void   )  const [inline]

Definition at line 118 of file commandline.h.

const string& CommandLine::GetBaseDirectory ( void   )  const [inline]

Definition at line 121 of file commandline.h.

string CommandLine::GetParFilename ( void   )  const [inline]

Definition at line 127 of file commandline.h.

const list<CommandLine::ExtraFile>& CommandLine::GetExtraFiles ( void   )  const [inline]

Definition at line 128 of file commandline.h.


Field Documentation

Operation CommandLine::operation [protected]

Definition at line 131 of file commandline.h.

Version CommandLine::version [protected]

Definition at line 132 of file commandline.h.

NoiseLevel CommandLine::noiselevel [protected]

Definition at line 134 of file commandline.h.

u32 CommandLine::blockcount [protected]

Definition at line 136 of file commandline.h.

u64 CommandLine::blocksize [protected]

Definition at line 139 of file commandline.h.

u32 CommandLine::firstblock [protected]

Definition at line 141 of file commandline.h.

Scheme CommandLine::recoveryfilescheme [protected]

Definition at line 144 of file commandline.h.

u32 CommandLine::recoveryfilecount [protected]

Definition at line 147 of file commandline.h.

u32 CommandLine::recoveryblockcount [protected]

Definition at line 149 of file commandline.h.

bool CommandLine::recoveryblockcountset [protected]

Definition at line 150 of file commandline.h.

u32 CommandLine::redundancy [protected]

Definition at line 152 of file commandline.h.

bool CommandLine::redundancyset [protected]

Definition at line 154 of file commandline.h.

string CommandLine::parfilename [protected]

Definition at line 156 of file commandline.h.

list<ExtraFile> CommandLine::extrafiles [protected]

Definition at line 160 of file commandline.h.

u64 CommandLine::totalsourcesize [protected]

Definition at line 166 of file commandline.h.

u64 CommandLine::largestsourcesize [protected]

Definition at line 168 of file commandline.h.

size_t CommandLine::memorylimit [protected]

Definition at line 170 of file commandline.h.

string CommandLine::base_directory [protected]

Definition at line 179 of file commandline.h.


The documentation for this class was generated from the following file:
Generated on Tue Oct 14 01:40:44 2008 for NNTPGrab by  1.5.4