decorator_pattern::Component

class Component

The Component interface defines operations that can be altered by decorators.

Subclassed by decorator_pattern::ConcreteComponent, decorator_pattern::Decorator

Public Functions

virtual std::string getDescription() const = 0

Returns the description of the component.

Returns:

A string description.

virtual float cost() const = 0

Returns the cost of the component.

Returns:

A float representing the cost.