XrdCommandLine.cc File Reference

#include "XrdClient/XrdClientUrlInfo.hh"
#include "XrdClient/XrdClient.hh"
#include "XrdClient/XrdClientAdmin.hh"
#include "XrdClient/XrdClientDebug.hh"
#include "XrdClient/XrdClientEnv.hh"
#include "XrdOuc/XrdOucTokenizer.hh"
#include "XrdSys/XrdSysHeaders.hh"
#include <stdio.h>
#include <unistd.h>
#include <stdarg.h>
#include <sstream>
#include <string>
#include <signal.h>
#include <iomanip>
Include dependency graph for XrdCommandLine.cc:

Classes

struct  LookupItem

Defines

#define XRDCLI_VERSION   "(C) 2004-2010 by the Xrootd group. Xrootd version: "XrdVSTRING

Typedefs

typedef void(* CommandCallback )(XrdOucTokenizer &)

Functions

void CtrlCHandler (int sig)
void PrintUsage ()
void BuildPrompt (std::stringstream &s)
char * readline (const char *prompt)
void PrintHelp ()
bool CheckAnswer (XrdClientAbs *gencli)
void PrintLocateInfo (XrdClientLocate_Info &loc)
void executeExistDir (XrdOucTokenizer &tkzer)
void executeCd (XrdOucTokenizer &tkzer)
void executeEnvPutInt (XrdOucTokenizer &tkzer)
void executeEnvPutString (XrdOucTokenizer &tkzer)
void executeHelp (XrdOucTokenizer &)
void executeConnect (XrdOucTokenizer &tkzer)
void executeDirListRec (XrdOucTokenizer &tkzer)
void executeDirList (XrdOucTokenizer &tkzer)
void executeLocateSingle (XrdOucTokenizer &tkzer)
void executeLocateAll (XrdOucTokenizer &tkzer)
void executeStat (XrdOucTokenizer &tkzer)
void executeStatvfs (XrdOucTokenizer &tkzer)
void executeExistFile (XrdOucTokenizer &tkzer)
void executeGetCheckSum (XrdOucTokenizer &tkzer)
void executeIsFileOnline (XrdOucTokenizer &tkzer)
void executeMv (XrdOucTokenizer &tkzer)
void executeMkDir (XrdOucTokenizer &tkzer)
void executeChmod (XrdOucTokenizer &tkzer)
void executeTruncate (XrdOucTokenizer &tkzer)
void executeRm (XrdOucTokenizer &tkzer)
void executeRmDir (XrdOucTokenizer &tkzer)
void executePrepare (XrdOucTokenizer &tkzer)
void executeCat (XrdOucTokenizer &tkzer)
void executeCp (XrdOucTokenizer &tkzer)
void executeQuery (XrdOucTokenizer &tkzer)
void executeQuerySpace (XrdOucTokenizer &tkzer)
void executeDebug (XrdOucTokenizer &tkzer)
CommandCallback lookup (char *command)
int main (int argc, char **argv)

Variables

char * opaqueinfo = 0
kXR_unt16 xrd_wr_flags = kXR_async | kXR_mkpath | kXR_open_updt | kXR_new
char * initialhost = 0
XrdClientgenclient = 0
XrdClientAdmingenadmin = 0
XrdOucString currentpath = "/"
XrdOucString cmdline_cmd
LookupItem lookupTable []

Define Documentation

#define XRDCLI_VERSION   "(C) 2004-2010 by the Xrootd group. Xrootd version: "XrdVSTRING

Referenced by main(), and PrintHelp().


Typedef Documentation

typedef void(* CommandCallback)(XrdOucTokenizer &)

Function Documentation

void BuildPrompt ( std::stringstream &  s  ) 
bool CheckAnswer ( XrdClientAbs gencli  ) 
void CtrlCHandler ( int  sig  ) 
void executeCat ( XrdOucTokenizer tkzer  ) 
void executeCd ( XrdOucTokenizer tkzer  ) 
void executeChmod ( XrdOucTokenizer tkzer  ) 
void executeConnect ( XrdOucTokenizer tkzer  ) 
void executeCp ( XrdOucTokenizer tkzer  ) 
void executeDebug ( XrdOucTokenizer tkzer  ) 
void executeDirList ( XrdOucTokenizer tkzer  ) 
void executeDirListRec ( XrdOucTokenizer tkzer  ) 
void executeEnvPutInt ( XrdOucTokenizer tkzer  ) 
void executeEnvPutString ( XrdOucTokenizer tkzer  ) 
void executeExistDir ( XrdOucTokenizer tkzer  ) 
void executeExistFile ( XrdOucTokenizer tkzer  ) 
void executeGetCheckSum ( XrdOucTokenizer tkzer  ) 
void executeHelp ( XrdOucTokenizer  ) 

References PrintHelp().

void executeIsFileOnline ( XrdOucTokenizer tkzer  ) 
void executeLocateAll ( XrdOucTokenizer tkzer  ) 
void executeLocateSingle ( XrdOucTokenizer tkzer  ) 
void executeMkDir ( XrdOucTokenizer tkzer  ) 
void executeMv ( XrdOucTokenizer tkzer  ) 
void executePrepare ( XrdOucTokenizer tkzer  ) 
void executeQuery ( XrdOucTokenizer tkzer  ) 
void executeQuerySpace ( XrdOucTokenizer tkzer  ) 
void executeRm ( XrdOucTokenizer tkzer  ) 
void executeRmDir ( XrdOucTokenizer tkzer  ) 
void executeStat ( XrdOucTokenizer tkzer  ) 
void executeStatvfs ( XrdOucTokenizer tkzer  ) 
void executeTruncate ( XrdOucTokenizer tkzer  ) 
CommandCallback lookup ( char *  command  ) 

References LookupItem::callback, and LookupItem::name.

Referenced by main().

int main ( int  argc,
char **  argv 
)
void PrintHelp (  ) 

References XRDCLI_VERSION.

Referenced by executeHelp().

void PrintLocateInfo ( XrdClientLocate_Info loc  ) 
void PrintUsage (  ) 

Referenced by main().

char* readline ( const char *  prompt  ) 

References getline().

Referenced by main().


Variable Documentation

char* initialhost = 0

Referenced by executeConnect(), and main().

char* opaqueinfo = 0

Referenced by main().

kXR_unt16 xrd_wr_flags = kXR_async | kXR_mkpath | kXR_open_updt | kXR_new

Referenced by doCp_loc2xrd(), doCp_xrd2xrd(), and main().

Generated by  doxygen 1.6.2-20100208