Engauge Digitizer  2
DlgValidatorFactory.h
1 #ifndef DLG_VALIDATOR_FACTORY_H
2 #define DLG_VALIDATOR_FACTORY_H
3 
4 #include "CoordScale.h"
5 #include "CoordUnitsNonPolarTheta.h"
6 #include "CoordUnitsPolarTheta.h"
7 
9 
12 {
13 public:
16 
19  bool isCartesian,
20  CoordUnitsNonPolarTheta coordUnitsCartesian,
21  CoordUnitsNonPolarTheta coordUnitsPolar,
22  CoordUnitsDate coordUnitsDate,
23  CoordUnitsTime coordUnitsTime) const;
24 
27  bool isCartesian,
28  CoordUnitsNonPolarTheta coordUnitsCartesian,
29  CoordUnitsPolarTheta coordUnitsPolar,
30  CoordUnitsDate coordUnitsDate,
31  CoordUnitsTime coordUnitsTime) const;
32 
34  DlgValidatorAbstract *createWithNonPolar (CoordScale coordScale,
35  CoordUnitsNonPolarTheta coordUnits,
36  CoordUnitsDate coordUnitsDate,
37  CoordUnitsTime coordUnitsTime) const;
38 
40  DlgValidatorAbstract *createWithPolar (CoordScale coordScale,
41  CoordUnitsPolarTheta coordUnits) const;
42 };
43 
44 #endif // DLG_VALIDATOR_FACTORY_H
DlgValidatorAbstract * createCartesianOrPolarWithPolarPolar(CoordScale coordScale, bool isCartesian, CoordUnitsNonPolarTheta coordUnitsCartesian, CoordUnitsPolarTheta coordUnitsPolar, CoordUnitsDate coordUnitsDate, CoordUnitsTime coordUnitsTime) const
Factory method for generating validators for either cartesian or polar case, when polar format is spe...
DlgValidatorFactory()
Single constructor.
DlgValidatorAbstract * createWithPolar(CoordScale coordScale, CoordUnitsPolarTheta coordUnits) const
Factory method for generating validators when cartesian/polar case handling is handled externally...
Abstract validator for all numeric formats.
DlgValidatorAbstract * createCartesianOrPolarWithNonPolarPolar(CoordScale coordScale, bool isCartesian, CoordUnitsNonPolarTheta coordUnitsCartesian, CoordUnitsNonPolarTheta coordUnitsPolar, CoordUnitsDate coordUnitsDate, CoordUnitsTime coordUnitsTime) const
Factory method for generating validators for either cartesian or polar case, when polar format is spe...
DlgValidatorAbstract * createWithNonPolar(CoordScale coordScale, CoordUnitsNonPolarTheta coordUnits, CoordUnitsDate coordUnitsDate, CoordUnitsTime coordUnitsTime) const
Factory method for generating validators when cartesian/polar case handling is handled externally...
Validator factory.