9 #ifndef ThePEG_Command_H 10 #define ThePEG_Command_H 13 #include "ThePEG/Config/ThePEG.h" 14 #include "InterfaceBase.h" 73 CommandBase(
string newName,
string newDescription,
string newClassName,
74 const type_info & newTypeInfo,
bool depSafe)
76 newTypeInfo, depSafe, false) {
99 virtual string type()
const;
153 typedef string (T::*ExeFn)(string);
171 Command(
string newName,
string newDescription,
172 ExeFn newExeFn,
bool depSafe =
false)
175 theExeFn(newExeFn) {}
196 #ifndef ThePEG_TEMPLATES_IN_CC_FILE 197 #include "Command.tcc" Command(string newName, string newDescription, ExeFn newExeFn, bool depSafe=false)
Standard constructor.
The InterfaceBase class defines a generic interface to any class derived from the InterfacedBase clas...
bool hasDefault
A flag indicating whether this interface has a default setting.
CommandBase(string newName, string newDescription, string newClassName, const type_info &newTypeInfo, bool depSafe)
Standard constructor.
The CommandBase and its templated Command sub-class defines an interface to a class derived from the ...
This is the main namespace within which all identifiers in ThePEG are declared.
virtual string doxygenType() const
Return a string describing the type of interface to be included in the Doxygen documentation.
The CommandBase and its templated Command sub-class defines an interface to a class derived from the ...
virtual string type() const
Return a code for the type of this interface.
string className() const
Return the class name for the class this interface is defined for.
ExeFn theExeFn
The pointer to the member function.
InterfacedBase is the base class of all Interfaced objects to be handled by the BaseRepository class...
virtual string cmd(InterfacedBase &ib, string c) const =0
Execute the member function.
virtual string exec(InterfacedBase &ib, string action, string arguments) const
The general interface method overriding the one in InterfaceBase.
The default concrete implementation of ClassTraitsBase.