|
xrootd
|
Execute queries given as a commandline. More...
#include <XrdClFSExecutor.hh>

Public Types | |
| typedef std::vector< std::string > | CommandParams |
| Definition of command argument list. More... | |
| typedef XRootDStatus(* | Command )(FileSystem *fs, Env *env, const CommandParams &args) |
| Definition of a command. More... | |
Public Member Functions | |
| FSExecutor (const URL &url, Env *env=0) | |
| ~FSExecutor () | |
| Destructor. More... | |
| bool | AddCommand (const std::string &name, Command command) |
| XRootDStatus | Execute (const std::string &commandline) |
| Env * | GetEnv () |
| Get the environment. More... | |
Private Types | |
| typedef std::map< std::string, Command > | CommandMap |
Private Attributes | |
| FileSystem * | pFS |
| Env * | pEnv |
| CommandMap | pCommands |
Execute queries given as a commandline.
| typedef XRootDStatus(* XrdCl::FSExecutor::Command)(FileSystem *fs, Env *env, const CommandParams &args) |
Definition of a command.
|
private |
| typedef std::vector<std::string> XrdCl::FSExecutor::CommandParams |
Definition of command argument list.
| bool XrdCl::FSExecutor::AddCommand | ( | const std::string & | name, |
| Command | command | ||
| ) |
Add a command to the set of known commands
| name | name of the command |
| command | function pointer |
References XrdCl::AppMsg, XrdCl::Log::Error(), XrdCl::DefaultEnv::GetLog(), and pCommands.
Referenced by CreateExecutor().
| XRootDStatus XrdCl::FSExecutor::Execute | ( | const std::string & | commandline | ) |
Execute the given commandline
| commandline | the commandline to be executed, a space separated list of parameters, first of which is the command name |
References XrdCl::AppMsg, XrdCl::Log::Debug(), XrdCl::Log::Dump(), XrdCl::Log::Error(), XrdCl::errUnknownCommand, XrdCl::DefaultEnv::GetLog(), pCommands, pEnv, pFS, XrdCl::Utils::splitString(), and XrdCl::stError.
Referenced by ExecuteCommand().
|
private |
Referenced by AddCommand(), and Execute().
|
private |
Referenced by Execute(), FSExecutor(), GetEnv(), and ~FSExecutor().
|
private |
Referenced by Execute(), FSExecutor(), and ~FSExecutor().
1.8.3.1