facade_pattern

namespace facade_pattern

Namespace for the Facade pattern.

class Facade
#include <facade.hpp>

The Facade provides a simplified interface to the subsystems.

The Facade delegates requests from the client to the appropriate subsystems, hiding their complexity.

Public Functions

inline std::string operation() const

Executes a high-level operation by coordinating subsystems.

Returns:

A string describing the combined operations.

class Subsystem1
#include <facade.hpp>

Subsystem1 provides a specific functionality.

Public Functions

inline std::string operation1() const

Performs operation 1.

Returns:

A string describing the operation.

class Subsystem2
#include <facade.hpp>

Subsystem2 provides a specific functionality.

Public Functions

inline std::string operation2() const

Performs operation 2.

Returns:

A string describing the operation.

class Subsystem3
#include <facade.hpp>

Subsystem3 provides a specific functionality.

Public Functions

inline std::string operation3() const

Performs operation 3.

Returns:

A string describing the operation.