Geometrize  1.0
An application for geometrizing images into geometric primitives
Public Member Functions | Static Public Attributes | List of all members
geometrize::script::CommandHandler Class Referenceabstract

The CommandHandler class provides an interface that all objects that can handle/process script commands implement. This is used do things like provide a way for scripts to send commands to the Geometrize user interface. More...

#include <commandhandler.h>

Inheritance diagram for geometrize::script::CommandHandler:
Inheritance graph
[legend]

Public Member Functions

 CommandHandler ()
 
virtual ~CommandHandler ()
 
virtual void handleCommand (const Command &command)=0
 
virtual std::string getCommandHandlerName () const =0
 
virtual void setCommandHandlerName (const std::string &name)=0
 

Static Public Attributes

static std::set< CommandHandler * > allCommandHandlers
 

Detailed Description

The CommandHandler class provides an interface that all objects that can handle/process script commands implement. This is used do things like provide a way for scripts to send commands to the Geometrize user interface.

Constructor & Destructor Documentation

◆ CommandHandler()

geometrize::script::CommandHandler::CommandHandler ( )
14 {
15  allCommandHandlers.insert(this);
16 }

◆ ~CommandHandler()

geometrize::script::CommandHandler::~CommandHandler ( )
virtual
19 {
20  allCommandHandlers.erase(this);
21 }

Member Function Documentation

◆ getCommandHandlerName()

virtual std::string geometrize::script::CommandHandler::getCommandHandlerName ( ) const
pure virtual

◆ handleCommand()

virtual void geometrize::script::CommandHandler::handleCommand ( const Command command)
pure virtual

◆ setCommandHandlerName()

virtual void geometrize::script::CommandHandler::setCommandHandlerName ( const std::string &  name)
pure virtual

Member Data Documentation

◆ allCommandHandlers

std::set< CommandHandler * > geometrize::script::CommandHandler::allCommandHandlers
static

The documentation for this class was generated from the following files:
geometrize::script::CommandHandler::allCommandHandlers
static std::set< CommandHandler * > allCommandHandlers
Definition: commandhandler.h:28