35 #ifndef ANA_COMMANDS_CLOADOBJECT_H 36 #define ANA_COMMANDS_CLOADOBJECT_H 65 const std::string & objname =
"",
bool ascursor =
false,
71 virtual std::string
name()
const {
return(
"LoadObject" ); }
89 static bool initSyntax();
91 std::string _filename;
93 std::list<AObject *> _obj;
94 std::string _objectname;
CommandContext * context()
std::vector< std::pair< AObject *, bool > > PostRegisterList
Base Anatomist object (abstract)
Command to load an object from a file.
virtual ~LoadObjectCommand()
virtual std::string name() const
Return the unique name of a class of commands.
Serializer is a helper class for pointer serialization.
static CommandContext & defaultContext()
virtual void doit()
Do a command.
virtual void write(Tree &com, Serializer *ser) const
Print the guts of a command into a Tree given as parent.
Context for commands processor readers (APipeReader etc)
void objectLoaded(anatomist::AObject *, const std::string &)
The abstract base class for commands.
LoadObjectCommand(const std::string &filename, int id=-1, const std::string &objname="", bool ascursor=false, carto::Object options=carto::none(), CommandContext *context=&CommandContext::defaultContext())
void objectLoadDone(AObject *, const ObjectReader::PostRegisterList &, void *, bool)
The abstract base class for commands that display a watch cursor.
std::list< AObject * > loadedObjects()
The abstract base class used for commands that have to read/write pointers.