SNode.C
Loading...
Searching...
No Matches
express::Dispatcher Class Referenceabstract

#include <Dispatcher.h>

Inheritance diagram for express::Dispatcher:
Collaboration diagram for express::Dispatcher:

Public Member Functions

 Dispatcher (const Dispatcher &)=delete
 
Dispatcheroperator= (const Dispatcher &)=delete
 
 Dispatcher ()=default
 
virtual ~Dispatcher ()
 
virtual bool dispatch (Controller &controller, const std::string &parentMountPath, const MountPoint &mountPoint)=0
 
bool dispatchNext (Controller &controller, const std::string &parentMountPath)
 

Private Attributes

std::shared_ptr< RoutenextRoute = nullptr
 

Friends

class Route
 

Detailed Description

Definition at line 38 of file Dispatcher.h.

Constructor & Destructor Documentation

◆ Dispatcher() [1/2]

express::Dispatcher::Dispatcher ( const Dispatcher & )
delete

◆ Dispatcher() [2/2]

express::Dispatcher::Dispatcher ( )
default

◆ ~Dispatcher()

express::Dispatcher::~Dispatcher ( )
virtual

Definition at line 30 of file Dispatcher.cpp.

30 {
31 }

Member Function Documentation

◆ dispatch()

virtual bool express::Dispatcher::dispatch ( Controller & controller,
const std::string & parentMountPath,
const MountPoint & mountPoint )
pure virtual

◆ dispatchNext()

bool express::Dispatcher::dispatchNext ( Controller & controller,
const std::string & parentMountPath )

Definition at line 33 of file Dispatcher.cpp.

33 {
34 bool dispatched = false;
35
36 if (nextRoute != nullptr) {
37 dispatched = nextRoute->dispatch(controller, parentMountPath);
38 }
39
40 return dispatched;
41 }
std::shared_ptr< Route > nextRoute
Definition Dispatcher.h:52

◆ operator=()

Dispatcher & express::Dispatcher::operator= ( const Dispatcher & )
delete

Friends And Related Symbol Documentation

◆ Route

friend class Route
friend

Definition at line 54 of file Dispatcher.h.

Member Data Documentation

◆ nextRoute

std::shared_ptr<Route> express::Dispatcher::nextRoute = nullptr
private

Definition at line 52 of file Dispatcher.h.


The documentation for this class was generated from the following files: