35 #ifndef ANA_COMMANDS_CGETINFO_H
36 #define ANA_COMMANDS_CGETINFO_H
62 bool objects =
false,
bool windows =
false,
63 bool refs =
false,
bool trans =
false,
64 bool palettes =
false,
const std::string & nameobj =
"",
65 bool namewin =
false,
bool selects =
false,
67 bool nameref =
false,
bool nametrans =
false,
68 const std::string & requestid =
"",
bool version =
false,
69 bool listcommands =
false,
bool aimsinfo =
false,
74 virtual std::string
name()
const {
return(
"GetInfo" ); }
82 std::string _filename;
95 std::string _requestid;
104 static bool initSyntax();
The abstract base class for commands.
Writes information about Anatomist state in a file or pipe.
virtual void write(Tree &com, Serializer *ser) const
Print the guts of a command into a Tree given as parent.
GetInfoCommand(const std::string &filename, CommandContext *context=&CommandContext::defaultContext(), bool objects=false, bool windows=false, bool refs=false, bool trans=false, bool palettes=false, const std::string &nameobj="", bool namewin=false, bool selects=false, bool link=false, Referential *linkref=0, bool nameref=false, bool nametrans=false, const std::string &requestid="", bool version=false, bool listcommands=false, bool aimsinfo=false, bool modinfo=false)
virtual std::string name() const
Return the unique name of a class of commands.
virtual void doit()
Do a command.
virtual ~GetInfoCommand()
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)
static CommandContext & defaultContext()