lftp  4.4.6
About: lftp is a command line ftp client (FTP, HTTP, ssl support, background transfer, reget, reput, ...)
  Fossies Dox: lftp-4.4.6.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
ArgV Class Reference

#include <ArgV.h>

Inheritance diagram for ArgV:
Collaboration diagram for ArgV:

Public Member Functions

 ArgV ()
 
 ArgV (const char *a0)
 
 ArgV (const char *a0, const char *args)
 
 ArgV (const ArgV &a)
 
 ArgV (const ArgV *a)
 
 ArgV (int new_c, const char *const *new_v)
 
 ~ArgV ()
 
void Append (const char *s)
 
void Append (int a)
 
void Add (const char *a)
 
char * Combine (int start_index=0, int end_index=0) const
 
char * CombineQuoted (int start_index=0) const
 
char * CombineCmd (int i=0) const
 
int getopt_long (const char *opts, const struct option *lopts, int *lind=0)
 
int getopt (const char *opts)
 
const char * getopt_error_message (int e)
 
void seek (int n)
 
void rewind ()
 
const char * getnext ()
 
const char * getarg (int n) const
 
const char * getcurr () const
 
int getindex () const
 
void setarg (int n, const char *s)
 
void delarg (int n)
 
void insarg (int n, const char *s)
 
const char * a0 () const
 
void back ()
 
int count () const
 
const char *const * GetV () const
 
char ** GetVNonConst ()
 
- Public Member Functions inherited from StringSet
 StringSet ()
 
 StringSet (const char *const *s, int n)
 
 StringSet (const StringSet &o)
 
 StringSet (const char *s)
 
void Empty ()
 
void Assign (const char *const *s, int n)
 
void Assign (const char *s)
 
bool IsEqual (const char *const *s, int n) const
 
bool IsEqual (const StringSet &o) const
 
void Append (const char *)
 
void AppendFormat (const char *,...) PRINTF_LIKE(2
 
void void InsertBefore (int, const char *)
 
void Replace (int, const char *)
 
char * Pop (int i=0)
 
void Remove (int i)
 
const char *const * Set () const
 
char ** SetNonConst ()
 
int Count () const
 
const char * String (int i) const
 
const char * LastString () const
 
const char * operator[] (int i) const
 
void MoveHere (StringSet &o)
 
char ** borrow ()
 

Detailed Description

Definition at line 27 of file ArgV.h.

Constructor & Destructor Documentation

ArgV::ArgV ( )
inline

Definition at line 32 of file ArgV.h.

ArgV::ArgV ( const char *  a0)
inline

Definition at line 33 of file ArgV.h.

ArgV::ArgV ( const char *  a0,
const char *  args 
)

Definition at line 25 of file ArgV.cc.

References alloca_strdup, Append(), args, and NULL.

ArgV::ArgV ( const ArgV a)
inline

Definition at line 35 of file ArgV.h.

ArgV::ArgV ( const ArgV a)
inline

Definition at line 36 of file ArgV.h.

ArgV::ArgV ( int  new_c,
const char *const *  new_v 
)
inline

Definition at line 37 of file ArgV.h.

ArgV::~ArgV ( )

Definition at line 34 of file ArgV.cc.

Member Function Documentation

void ArgV::Add ( const char *  a)
inline

Definition at line 42 of file ArgV.h.

References Append().

Referenced by clsJob::clsJob(), CMD(), Fish::Do(), and SFtp::Do().

void ArgV::Append ( int  a)
inline

Definition at line 41 of file ArgV.h.

References Append().

Referenced by Append().

void ArgV::back ( )

Definition at line 53 of file ArgV.cc.

Referenced by mkdirJob::mkdirJob().

char * ArgV::Combine ( int  start_index = 0,
int  end_index = 0 
) const
char * ArgV::CombineCmd ( int  i = 0) const

Definition at line 1096 of file CmdExec.cc.

References Combine(), CombineQuoted(), and count().

Referenced by CmdExec::builtin_lftp(), and CmdExec::builtin_queue().

char * ArgV::CombineQuoted ( int  start_index = 0) const
void ArgV::delarg ( int  n)
inline
int ArgV::getopt ( const char *  opts)
inline
const char * ArgV::getopt_error_message ( int  e)

Definition at line 83 of file ArgV.cc.

References _, xstring::format(), getarg(), and optopt.

Referenced by FileSetOutput::parse_argv().

int ArgV::getopt_long ( const char *  opts,
const struct option lopts,
int *  lind = 0 
)
const char* const* ArgV::GetV ( ) const
inline

Definition at line 68 of file ArgV.h.

References StringSet::Set().

char** ArgV::GetVNonConst ( )
inline

Definition at line 69 of file ArgV.h.

References StringSet::SetNonConst().

Referenced by OutputFilter::getfd().

void ArgV::insarg ( int  n,
const char *  s 
)
inline

Definition at line 64 of file ArgV.h.

References StringSet::InsertBefore().

Referenced by LocalDirList::LocalDirList().

void ArgV::seek ( int  n)

Definition at line 38 of file ArgV.cc.

References StringSet::Count(), and n.

Referenced by MirrorJob::Do(), and rewind().

void ArgV::setarg ( int  n,
const char *  s 
)
inline

Definition at line 62 of file ArgV.h.

References StringSet::Replace().

Referenced by CmdExec::builtin_cd(), MirrorJob::Do(), LocalDirList::LocalDirList(), and main().


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