xrootd
|
Execute queries given as a commandline. More...
#include <XrdClFSExecutor.hh>
Public Types | |
typedef std::vector< std::string > | CommandParams |
Definition of command argument list. | |
typedef XRootDStatus(* | Command) (FileSystem *fs, Env *env, const CommandParams &args) |
Definition of a command. | |
Public Member Functions | |
FSExecutor (const URL &url, Env *env=0) | |
~FSExecutor () | |
Destructor. | |
bool | AddCommand (const std::string &name, Command command) |
XRootDStatus | Execute (const CommandParams &args) |
Env * | GetEnv () |
Get the environment. | |
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.
Constructor
url | the server that the executor should contact |
env | execution environment, the executor takes ownership over it |
XrdCl::FSExecutor::~FSExecutor | ( | ) |
Destructor.
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 |
XRootDStatus XrdCl::FSExecutor::Execute | ( | const CommandParams & | args | ) |
Execute the given commandline
args | : arguments for the commandline to be executed, first of which is the command name |
|
private |
|
private |