This is the declaration of the Command andCommandBase classes.
The Command defines an interface to a class derived from the InterfacedBase, through which arbitratru command strings can be sent and received. Command is templated and is derived from the InterfaceBase class via CommandBase.
For each command interface to be defined for a class T, exactly one object of the Command<T> must be created and initialized as follows:
Command<T> comint(name, description, &T::memberfn, depsafe);
Where name is an identifier std::string which should only contain letters [a-zA-z0-9_], description is an arbitrary std::string, memberfn should be a non-static member function of T and defined as std::string T::memberfn(std::string). Finally if depsafe is true it can be assumed that a call to the memberfn for an object does not influence other objects which may depend on the first.
The Command class, as all other InterfaceBase classes are mainly used in the BaseRepository class.
CLASS
CommandBase:
CLASS
Command: