C++ features by examples

is a virtual command handler of Chain_of_responsibility More...

Inheritance diagram for Handler:

Public Member Functions

virtual int handle (Command &cmnd)
 Specific handler can process a command and return non-negative. More...
 
virtual ~Handler ()=default
 

Detailed Description

is a virtual command handler of Chain_of_responsibility

Definition at line 514 of file patterns.cpp.

Constructor & Destructor Documentation

◆ ~Handler()

virtual Handler::~Handler ( )
virtualdefault

Member Function Documentation

◆ handle()

virtual int Handler::handle ( Command cmnd)
inlinevirtual

Specific handler can process a command and return non-negative.

Reimplemented in Chain_of_responsibility.

Definition at line 518 of file patterns.cpp.

518{ return cmnd.execute(); };
virtual int execute()
Definition: patterns.cpp:424
Here is the call graph for this function:

The documentation for this struct was generated from the following file: