35 #ifndef ANATOMIST_COMMANDS_CASSIGNREFERENTIAL_H
36 #define ANATOMIST_COMMANDS_CASSIGNREFERENTIAL_H
67 const std::set<AWindow *> & win,
int refId = -1,
69 const std::string & filename =
"",
70 const std::string & uuid =
"" );
73 virtual std::string
name()
const {
return(
"AssignReferential" ); }
82 std::set<AObject *> _obj;
83 std::set<AWindow *> _win;
85 std::string _filename;
90 static bool initSyntax();
Assign a referential to objects and/or windows.
virtual void write(Tree &com, Serializer *ser) const
Print the guts of a command into a Tree given as parent.
virtual void doit()
Do a command.
Referential * ref() const
virtual ~AssignReferentialCommand()
AssignReferentialCommand(Referential *ref, const std::set< AObject * > &obj, const std::set< AWindow * > &win, int refId=-1, CommandContext *context=0, const std::string &filename="", const std::string &uuid="")
virtual std::string name() const
Return the unique name of a class of commands.
The abstract base class for commands.
Referential: marker for transformations, with an associated color.
The abstract base class for usual commands.
Serializer is a helper class for pointer serialization.
The abstract base class used for commands that have to read/write pointers.
CommandContext * context()
Context for commands processor readers (APipeReader etc)