ViewFactory.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _ViewFactory_H_
15 #define _ViewFactory_H_
16 
17 #include "pattern/libhippo.h"
18 
19 namespace hippodraw {
20 
21 class FontBase;
22 class PlotterBase;
23 class ViewBase;
24 
36 {
37 protected:
38 
43 
45  ViewFactory();
46 
47 private:
49  ViewFactory( const ViewFactory & );
50 
51 public:
52 
57  virtual ~ViewFactory () {};
58 
60  static ViewFactory * instance();
61 
63  virtual ViewBase * createView ( PlotterBase * plotter ) const = 0;
64 
67  virtual FontBase * createFont ( ) const = 0;
68 
69 };
70 
71 } // namespace hippodraw
72 
73 #endif // _ViewFactory_H_
#define MDL_HIPPOPLOT_API
Definition: libhippo.h:36
virtual ~ViewFactory()
The virtual destructor.
Definition: ViewFactory.h:57
static ViewFactory * m_instance
An instance of the default view factory.
Definition: ViewFactory.h:42
A abstract base class for font handling.
Definition: FontBase.h:32
The base class for the PlotterBase hierarchy.
Definition: PlotterBase.h:55
The abstract base class for a factory that creates objects closely related to the graphics subsystem ...
Definition: ViewFactory.h:35
The abstract base class for views.
Definition: ViewBase.h:62

Generated for HippoDraw Class Library by doxygen