class_adapter_pattern::Adapter

class Adapter : public class_adapter_pattern::Target, private class_adapter_pattern::Adaptee

The Adapter class bridges the Target and Adaptee interfaces.

The Adapter allows the Adaptee’s functionality to be used where the Target’s interface is required by translating requests from the Target format to the Adaptee’s specific format.

Public Functions

inline virtual std::string request() const override

Translates the Target’s request into the Adaptee’s specificRequest.

This method allows the client to interact with the Adaptee’s functionality using the Target interface.

Returns:

A string response combining the Adapter’s translation and the Adaptee’s functionality.