XrdCl::FSExecutor Class Reference

Execute queries given as a commandline. More...

#include <XrdClFSExecutor.hh>

Collaboration diagram for XrdCl::FSExecutor:
Collaboration graph
[legend]

List of all members.

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)
EnvGetEnv ()
 Get the environment.

Private Types

typedef std::map< std::string,
Command
CommandMap

Private Attributes

FileSystempFS
EnvpEnv
CommandMap pCommands

Detailed Description

Execute queries given as a commandline.


Member Typedef Documentation

Definition of a command.

typedef std::map<std::string, Command> XrdCl::FSExecutor::CommandMap [private]
typedef std::vector<std::string> XrdCl::FSExecutor::CommandParams

Definition of command argument list.


Constructor & Destructor Documentation

XrdCl::FSExecutor::FSExecutor ( const URL url,
Env env = 0 
)

Constructor

Parameters:
url the server that the executor should contact
env execution environment, the executor takes ownership over it
XrdCl::FSExecutor::~FSExecutor (  ) 

Destructor.


Member Function Documentation

bool XrdCl::FSExecutor::AddCommand ( const std::string &  name,
Command  command 
)

Add a command to the set of known commands

Parameters:
name name of the command
command function pointer
Returns:
status
XRootDStatus XrdCl::FSExecutor::Execute ( const CommandParams args  ) 

Execute the given commandline

Parameters:
args : arguments for the commandline to be executed, first of which is the command name
Returns:
status of the execution
Env* XrdCl::FSExecutor::GetEnv (  )  [inline]

Get the environment.

References pEnv.


Member Data Documentation

Referenced by GetEnv().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 11 Jun 2020 for xrootd by  doxygen 1.6.1