1 #include "DlgValidatorAbstract.h"
2 #include "DlgValidatorDateTime.h"
3 #include "DlgValidatorDegreesMinutesSeconds.h"
4 #include "DlgValidatorFactory.h"
5 #include "DlgValidatorNumber.h"
10 LOG4CPP_INFO_S ((*mainCat)) <<
"DlgValidatorFactory::DlgValidatorFactory";
14 CoordUnitsNonPolarTheta coordUnits,
15 CoordUnitsDate coordUnitsDate,
16 CoordUnitsTime coordUnitsTime)
const
18 LOG4CPP_INFO_S ((*mainCat)) <<
"DlgValidatorFactory::createWithNonPolar";
21 case COORD_UNITS_NON_POLAR_THETA_DATE_TIME:
26 case COORD_UNITS_NON_POLAR_THETA_DEGREES_MINUTES_SECONDS:
29 case COORD_UNITS_NON_POLAR_THETA_NUMBER:
33 LOG4CPP_ERROR_S ((*mainCat)) <<
"DlgValidatorFactory::createWithNonPolar";
39 CoordUnitsPolarTheta coordUnits)
const
41 LOG4CPP_INFO_S ((*mainCat)) <<
"DlgValidatorFactory::createWithPolar";
44 case COORD_UNITS_POLAR_THETA_DEGREES:
45 case COORD_UNITS_POLAR_THETA_DEGREES_MINUTES:
46 case COORD_UNITS_POLAR_THETA_DEGREES_MINUTES_SECONDS:
47 case COORD_UNITS_POLAR_THETA_DEGREES_MINUTES_SECONDS_NSEW:
50 case COORD_UNITS_POLAR_THETA_GRADIANS:
51 case COORD_UNITS_POLAR_THETA_RADIANS:
52 case COORD_UNITS_POLAR_THETA_TURNS:
56 LOG4CPP_ERROR_S ((*mainCat)) <<
"DlgValidatorFactory::createWithNonPolar";
63 CoordUnitsNonPolarTheta coordUnitsCartesian,
64 CoordUnitsNonPolarTheta coordUnitsPolar,
65 CoordUnitsDate coordUnitsDate,
66 CoordUnitsTime coordUnitsTime)
const
68 LOG4CPP_INFO_S ((*mainCat)) <<
"DlgValidatorFactory::createCartesianOrPolarWithNonPolarPolar";
85 CoordUnitsNonPolarTheta coordUnitsCartesian,
86 CoordUnitsPolarTheta coordUnitsPolar,
87 CoordUnitsDate coordUnitsDate,
88 CoordUnitsTime coordUnitsTime)
const
90 LOG4CPP_INFO_S ((*mainCat)) <<
"DlgValidatorFactory::createCartesianOrPolarWithPolarPolar";
Validator for numeric value expressed as date and/or time.
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.
Validator for angles in real degrees, integer degrees and real minutes, or integer degrees with integ...
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 for generic (=simple) numbers.