FitterFactory.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _FitterFactory_H_
15 #define _FitterFactory_H_
16 
17 #include "pattern/Factory.h"
18 
19 namespace hippodraw {
20 
21 class Fitter;
22 
28 class MDL_HIPPOPLOT_API FitterFactory : public Factory <Fitter>
29 {
30 
31  private:
32 
35  std::string m_default;
36 
39 
41  FitterFactory ( const FitterFactory & );
42 
44  void initialize ();
45 
46 protected:
47 
50  FitterFactory();
51 
52  public:
53 
55  static FitterFactory * instance ();
56 
61  void setDefault ( const std::string & name );
62 
65  const std::string & getDefault () const;
66 
67 };
68 
69 } // namespace hippodraw
70 
71 #endif // _FitterFactory_H_
#define MDL_HIPPOPLOT_API
Definition: libhippo.h:36
The base class for singleton factory classes.
Definition: Factory.h:43
hippodraw::Factory class interface and template implementation
A Factory singleton class for creating objects whose class derives from Fitter.
Definition: FitterFactory.h:28
std::string m_default
The application&#39;s default fitter, if non empty.
Definition: FitterFactory.h:35
static FitterFactory * s_instance
A pointer to the singleton object.
Definition: FitterFactory.h:38

Generated for HippoDraw Class Library by doxygen