|
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) ![]() |
#include <ArgV.h>


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 () |
| ArgV::ArgV | ( | const char * | a0, |
| const char * | args | ||
| ) |
|
inline |
Definition at line 65 of file ArgV.h.
References getarg().
Referenced by CmdExec::builtin_cd(), CmdExec::builtin_exit(), CmdExec::builtin_glob(), CmdExec::builtin_local(), CmdExec::builtin_open(), CmdExec::builtin_queue(), CopyJobEnv::CopyJobEnv(), CmdExec::default_cmd(), FinderJob_Du::FinderJob_Du(), OutputFilter::getfd(), and TreatFileJob::TreatFileJob().
|
inline |
Definition at line 42 of file ArgV.h.
References Append().
Referenced by clsJob::clsJob(), CMD(), Fish::Do(), and SFtp::Do().
|
inline |
Definition at line 40 of file ArgV.h.
References StringSet::Append().
Referenced by Add(), ArgV(), CmdExec::builtin_cd(), CmdExec::builtin_glob(), CmdExec::builtin_lcd(), CMD(), mgetJob::Do(), MirrorJob::Do(), CmdExec::Do(), HttpDirList::HttpDirList(), and SFtpDirList::SFtpDirList().
|
inline |
| 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 |
Definition at line 59 of file ArgV.cc.
References xstring::append(), xstring::borrow(), StringSet::Count(), and getarg().
Referenced by CombineCmd(), mgetJob::Do(), Fish::Do(), MirrorJob::Do(), SFtp::Do(), CmdExec::FeedArgV(), and CmdExec::FormatStatus().
| 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 |
Definition at line 1082 of file CmdExec.cc.
References xstring::append(), xstring::append_quoted(), xstring::borrow(), StringSet::Count(), and StringSet::String().
Referenced by CombineCmd(), MirrorJob::Do(), CmdExec::FeedArgV(), and ReadlineFeeder::ReadlineFeeder().
|
inline |
Definition at line 67 of file ArgV.h.
References StringSet::Count().
Referenced by CmdExec::builtin_cd(), CmdExec::builtin_glob(), CmdExec::builtin_lcd(), CmdExec::builtin_local(), CmdExec::builtin_queue(), clsJob::clsJob(), cmd_test1(), CombineCmd(), HttpDirList::Do(), CmdExec::Do(), CmdExec::FeedArgV(), HttpDirList::HttpDirList(), FileSetOutput::parse_res(), ReadlineFeeder::ReadlineFeeder(), and SFtpDirList::SFtpDirList().
|
inline |
Definition at line 63 of file ArgV.h.
References StringSet::Remove().
Referenced by CmdExec::builtin_glob(), CmdExec::builtin_local(), HttpDirList::HttpDirList(), FileSetOutput::parse_argv(), and SFtpDirList::SFtpDirList().
|
inline |
Definition at line 59 of file ArgV.h.
References StringSet::String().
Referenced by a0(), CmdExec::builtin_cd(), CmdExec::builtin_lcd(), CmdExec::builtin_open(), CmdExec::builtin_queue(), Combine(), mkdirJob::Do(), CmdExec::Do(), getcurr(), getopt_error_message(), mkdirJob::mkdirJob(), mkdirJob::SayFinal(), mkdirJob::ShowRunStatus(), and CmdExec::ShowRunStatus().
|
inline |
Definition at line 60 of file ArgV.h.
References StringSet::Count(), and getarg().
Referenced by FinderJob_Du::Done(), FinderJob_Du::FinderJob_Du(), FinderJob_List::FinderJob_List(), clsJob::FormatStatus(), clsJob::ShowRunStatus(), and TreatFileJob::TreatFileJob().
|
inline |
Definition at line 61 of file ArgV.h.
Referenced by CmdExec::builtin_glob(), CmdExec::builtin_lftp(), CmdExec::builtin_queue(), HttpDirList::Do(), HttpDirList::HttpDirList(), FileSetOutput::parse_argv(), and SFtpDirList::SFtpDirList().
| const char * ArgV::getnext | ( | ) |
Definition at line 45 of file ArgV.cc.
References StringSet::Count(), s, and StringSet::String().
Referenced by CmdExec::builtin_exit(), CmdExec::builtin_glob(), CMD(), mkdirJob::Do(), mgetJob::Do(), HttpDirList::Do(), clsJob::Do(), CmdExec::Do(), TreatFileJob::Finish(), FinderJob_Du::Finish(), FinderJob_List::Finish(), mkdirJob::mkdirJob(), CatJob::NextFile(), GetJob::NextFile(), and SFtpDirList::SFtpDirList().
|
inline |
Definition at line 49 of file ArgV.h.
References getopt_long().
Referenced by CmdExec::builtin_glob(), HttpDirList::HttpDirList(), mkdirJob::mkdirJob(), and SFtpDirList::SFtpDirList().
| 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 |
||
| ) |
Definition at line 75 of file ArgV.cc.
References StringSet::Count(), optind, r, and StringSet::SetNonConst().
Referenced by CmdExec::builtin_lftp(), CmdExec::builtin_open(), CmdExec::builtin_queue(), getopt(), and FileSetOutput::parse_argv().
|
inline |
Definition at line 68 of file ArgV.h.
References StringSet::Set().
|
inline |
Definition at line 69 of file ArgV.h.
References StringSet::SetNonConst().
Referenced by OutputFilter::getfd().
|
inline |
Definition at line 64 of file ArgV.h.
References StringSet::InsertBefore().
Referenced by LocalDirList::LocalDirList().
|
inline |
Definition at line 56 of file ArgV.h.
References seek().
Referenced by CmdExec::builtin_exit(), CmdExec::builtin_glob(), CmdExec::builtin_lftp(), CopyJobEnv::CopyJobEnv(), HttpDirList::HttpDirList(), mgetJob::mgetJob(), mkdirJob::mkdirJob(), FileSetOutput::parse_argv(), and SFtpDirList::SFtpDirList().
| void ArgV::seek | ( | int | n) |
Definition at line 38 of file ArgV.cc.
References StringSet::Count(), and n.
Referenced by MirrorJob::Do(), and rewind().
|
inline |
Definition at line 62 of file ArgV.h.
References StringSet::Replace().
Referenced by CmdExec::builtin_cd(), MirrorJob::Do(), LocalDirList::LocalDirList(), and main().