Problem with Decorator Pattern
I have an abstract class AbstractGeometricShape from which I subclass different GeometricShape. In order to add functionnality to the GeomtricShape, I use a DP decorator to create for example profils or transformations to the shape :
boost::shared_ptr<ShapeProfilsDecorator> decorated_rectangle = boost::shared_ptr<ShapeProfilsDecorator>( new ShapeProfilsDecorator( boost::shared_ptr<ShapeTransformDecorator>(new ShapeTransformDecorator (rect)) ) );
However I am now facing a problem : how can I access the methods from ShapeProfilsDecorator AND ShapeTransformDecorator on my decorated_rectangle object ?
Regards

