Geometrize  1.0
An application for geometrizing images into geometric primitives
commandhandler.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <set>
4 #include <string>
5 
6 #include "script/command.h"
7 
8 namespace geometrize
9 {
10 
11 namespace script
12 {
13 
19 {
20 public:
22  virtual ~CommandHandler();
23 
24  virtual void handleCommand(const Command& command) = 0;
25  virtual std::string getCommandHandlerName() const = 0;
26  virtual void setCommandHandlerName(const std::string& name) = 0;
27 
28  static std::set<CommandHandler*> allCommandHandlers;
29 };
30 
31 }
32 
33 }
commandhandler.h
geometrize::script::Command
The Command class provides a convenient way for a script to tell an object about something For exampl...
Definition: command.h:17
geometrize::script::CommandHandler::setCommandHandlerName
virtual void setCommandHandlerName(const std::string &name)=0
geometrize::script::CommandHandler
The CommandHandler class provides an interface that all objects that can handle/process script comman...
Definition: commandhandler.h:19
command.h
geometrize::script::CommandHandler::handleCommand
virtual void handleCommand(const Command &command)=0
geometrize::script::CommandHandler::~CommandHandler
virtual ~CommandHandler()
Definition: commandhandler.cpp:18
geometrize
Definition: commandlineparser.cpp:73
geometrize::script::CommandHandler::getCommandHandlerName
virtual std::string getCommandHandlerName() const =0
geometrize::script::CommandHandler::CommandHandler
CommandHandler()
Definition: commandhandler.cpp:13
geometrize::script::CommandHandler::allCommandHandlers
static std::set< CommandHandler * > allCommandHandlers
Definition: commandhandler.h:28