8 #include "CommandManager.h" 35 for (
int i = 0; i <
size(); ++i) {
37 if (command.
match(name)) {
virtual bool readStandardCommand(std::string name, std::istream &in)
Attempt to read a standard built-in command, execute if recognized.
CommandManager()
Constructor.
virtual void execute(std::istream &in)=0
Execute this command.
Template container for pointers to objects with a common base class.
Utility classes for scientific computation.
Command is an object that can be invoked from the command script.
virtual bool match(std::string name)
Compare a string to the name of this command.
Single-processor Monte Carlo (MC) and molecular dynamics (MD).
virtual ~CommandManager()
Destructor.
void setClassName(const char *className)
Set class name string.
int size() const
Get logical size.
bool readCommand(std::string name, std::istream &in)
Attempt to read a command line, execute if recognized.