|
| CmdMove () |
| Default constructor.
|
|
| CmdMove (const CmdMove &cmd) |
|
void | exec () const |
| Run the command with current parameter values.
|
|
Public Member Functions inherited from BasicCommand |
| BasicCommand (const std::string &name, const std::string &description) |
|
| BasicCommand (const BasicCommand &cmd) |
|
Public Member Functions inherited from BeanCommand< BeanLike > |
| BeanCommand (const std::string &name, const std::string &description) |
|
| BeanCommand (const BeanCommand &cmd) |
|
| BeanCommand (BeanLike &b) |
|
virtual const bean_t & | getBean () const |
|
virtual bean_t & | getBean () |
|
const std::string & | getName () const final |
|
const std::string & | getDescription () const final |
|
virtual const drain::ReferenceMap & | getParameters () 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 SmartMap< T > &args) |
|
template<class T > |
void | setParameter (const std::string &key, const T &value) |
| Set a value to a single parameter. More...
|
|
Command & | addSection (drain::Flagger::ivalue_t i) |
|
virtual void | update () |
| Optional method for preparing command to execution. More...
|
|
bool | hasParameters () const |
|
virtual const std::string & | getType () const |
| Description of result, comparable to a return type of a function. ?
|
|
virtual void | run (const std::string ¶ms="") |
| Convenience. Sets parameters and executes the command. More...
|
|
const std::string & | getLastParameters () const |
| After executing this command run a routine, if defined. More...
|
|
| 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. More...
|
|
Rename or move data groups and attributes.
- Parameters
-
src | - source path consisting at least of the group path |
dst | - full destination path or only ':' followed by attribute key |
A full path consist of a slash-separated group path elements followed by an attribute key separated by colon. For example: /dataset1/data2/what
:gain .
Examples:
# Move group
rack volume.h5 --move dataset1/quality1,dataset1/data2/quality3 -o volume-modified.h5
# Rename only the attribute key
rack volume.h5 --move dataset1/how:task,:newtask -o volume-modified.h5
# Move attribute in hierarchy
rack volume.h5 --move dataset1/how:task,what -o volume-modified.h5
# Move and rename attribute
rack volume.h5 --move dataset1/where:nrays,dataset1/how:imageheight -o volume-modified.h5
Definition: DataSelector.cpp:44
- See also
- CmdDelete
-
CmdKeep
-
modifypage