35 #ifndef ANA_COMMANDS_COBJECTINFO_H
36 #define ANA_COMMANDS_COBJECTINFO_H
61 const std::vector<int> & objectIDs,
bool nameChildren,
63 const std::string & requestid =
"",
64 const std::set<std::string> & objfilenames
65 = std::set<std::string>() );
68 virtual std::string
name()
const {
return(
"ObjectInfo" ); }
76 std::string _filename;
77 std::vector<int> _objects;
80 std::string _requestid;
82 std::set<std::string> _objfilenames;
86 static bool initSyntax();
The abstract base class for commands.
Writes information about Anatomist state in a file or pipe.
virtual std::string name() const
Return the unique name of a class of commands.
virtual ~ObjectInfoCommand()
virtual void write(Tree &com, Serializer *ser) const
Print the guts of a command into a Tree given as parent.
ObjectInfoCommand(const std::string &filename, CommandContext *context, const std::vector< int > &objectIDs, bool nameChildren, bool nameref=false, const std::string &requestid="", const std::set< std::string > &objfilenames=std::set< std::string >())
virtual void doit()
Do a command.
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)