Loading...
Searching...
No Matches
Public Member Functions | List of all members
RackImageOpCmd< OP > Class Template Reference

Designed for Rack. More...

Inheritance diagram for RackImageOpCmd< OP >:
Inheritance graph
[legend]
Collaboration diagram for RackImageOpCmd< OP >:
Collaboration graph
[legend]

Public Member Functions

 RackImageOpCmd ()
 Constructor that adapts an operator and its name.
 
 RackImageOpCmd (const RackImageOpCmd &rackLet)
 Constructor that adapts an operator and its name.
 
virtual void exec () const
 Run the command with current parameter values.
 
- Public Member Functions inherited from BeanCommand< OP >
 BeanCommand (const std::string &name, const std::string &description)
 
 BeanCommand (const BeanCommand &cmd)
 
 BeanCommand (OP &b)
 
virtual const bean_t & getBean () const
 
virtual bean_t & getBean ()
 
const std::string & getName () const final
 Returns the class name of this command, like "CmdVerbose".
 
const std::string & getDescription () const final
 
virtual const drain::ReferenceMapgetParameters () const final
 
- Public Member Functions inherited from Command
 Command (const Command &cmd)
 
virtual void setParameters (const std::string &args) final
 
template<class T >
void setParameters (const T &args)
 
template<class T >
void setParameter (const std::string &key, const T &value)
 Set a value to a single parameter.
 
bool hasParameters () const
 
virtual void run (const std::string &params="") final
 Description of result, comparable to a return type of a function. ?
 
virtual void update ()
 Optional method for preparing command to execution.
 
CommandaddSection (int i)
 
const std::string & getLastParameters () const
 
virtual void help (std::ostream &ostr=std::cout, bool DETAILED=false) const
 
virtual void getRelatedCommands (std::ostream &ostr=std::cout) const
 
- Public Member Functions inherited from Contextual
 Contextual ()
 Sets internal contextPtr to NULL.
 
 Contextual (const Contextual &src)
 Copies base context (even null) of the source. Notice that the actual instance may be of derived class.
 
 Contextual (Context &ctx)
 Copies internal contextPtr.
 
template<class C >
void setContext ()
 Sets internal contextPtr to the static source.
 
void setExternalContext (Context &ctx)
 Sets internal contextPtr to outside target.
 
bool contextIsSet () const
 True, if contextPtr has been set.
 
template<class T = Context>
T & getContext () const
 If context has been set, returns it through a cast to base class Context.
 
- Public Member Functions inherited from ImageOpExec
void execOp (const drain::image::ImageOp &imageOp, RackContext &ctx) const
 Shared function, to minimize copies in template classes.
 
template<class OD >
void updateGeometryODIM (Hi5Tree &dstGroup, const std::string &quantity, drain::image::Geometry &geometry) const
 

Additional Inherited Members

- Public Types inherited from BeanCommand< OP >
typedef OP bean_t
 
- Public Types inherited from Command
typedef int cmd_section_type
 
- Static Public Member Functions inherited from Contextual
template<class T >
static Cloner< Context, T > & getCloner ()
 
- Public Attributes inherited from BeanCommand< OP >
OP bean
 
- Public Attributes inherited from Command
cmd_section_type section = 1
 
std::set< std::string > relatedCommands
 Add related command(s), to appear in help after "See-also:" phrase.
 
- Static Public Attributes inherited from Command
static const SprinterLayout cmdArgLayout = {",", "?", "=", ""}
 
- Protected Member Functions inherited from BeanCommand< OP >
virtual drain::ReferenceMapgetParameters () final
 
- Protected Member Functions inherited from Command
CommandlinkRelatedCommands ()
 
- Protected Attributes inherited from Command
std::string lastParameters
 
- Protected Attributes inherited from Contextual
ContextcontextPtr
 

Detailed Description

template<class OP>
class rack::RackImageOpCmd< OP >

Designed for Rack.

Constructor & Destructor Documentation

◆ RackImageOpCmd() [1/2]

template<class OP >
RackImageOpCmd ( )
inline

Constructor that adapts an operator and its name.

Parameters
op- image operator to be used
key- command name

◆ RackImageOpCmd() [2/2]

template<class OP >
RackImageOpCmd ( const RackImageOpCmd< OP > &  rackLet)
inline

Constructor that adapts an operator and its name.

Parameters
op- image operator to be used througjh reference Copy constructor.

Member Function Documentation

◆ exec()

template<class OP >
virtual void exec ( ) const
inlinevirtual

Run the command with current parameter values.

Reimplemented from Command.


The documentation for this class was generated from the following file: