CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
global_simpleAngular_Check Class Reference

#include <global_simpleAngular.h>

Inheritance diagram for global_simpleAngular_Check:
AlgoCheck

Public Member Functions

 global_simpleAngular_Check ()
 
 ~global_simpleAngular_Check ()
 
- Public Member Functions inherited from AlgoCheck
 AlgoCheck ()
 the ctor of the derived class has to fill the members constraintsE_,S_ More...
 
bool check (parS_type &ps, parE_type &pe, std::string &err)
 returns true if the check was successfull (parameters conform to XML specification) More...
 
virtual ~AlgoCheck ()
 

Additional Inherited Members

- Public Types inherited from AlgoCheck
typedef std::map< std::string,
ConstraintE
constraintsE_type
 
typedef std::map< std::string,
ConstraintS
constraintsS_type
 
- Protected Member Functions inherited from AlgoCheck
bool checkBounds (parE_type::iterator pit, constraintsE_type::iterator cit, std::string &err)
 
bool checkStrings (parS_type::iterator sit, constraintsS_type::iterator cit, std::string &err)
 
- Static Protected Member Functions inherited from AlgoCheck
static std::string d2s (double x)
 ahh, converts a double into a std::string ... yet another one of this kind! More...
 
- Protected Attributes inherited from AlgoCheck
constraintsE_type constraintsE_
 format: "ParameterName" -> ConstraintE More...
 
constraintsS_type constraintsS_
 format: "ParameterName" -> ConstraintS More...
 

Detailed Description

Definition at line 134 of file global_simpleAngular.h.

Constructor & Destructor Documentation

global_simpleAngular_Check::global_simpleAngular_Check ( )

Definition at line 486 of file global_simpleAngular.cc.

References AlgoCheck::constraintsE_, AlgoCheck::constraintsS_, and MAX_DOUBLE.

487 {
488  // for the time being only expression-valued parameters can be automatically checked
489  // against their specified constraints
490 
491  // schema default values will be shown if necessary in the following XML comments
492  // on the second line. The fist shows the values as given in the instance document
493 
494  // expressions have to be converted into doubles. No variables [bla] shall be allowed
495  // inside the expressions; SystemOfUnits-symbols are the only supported ones.
496 
497 
498  constraintsE_["radius"] = ConstraintE( 1, // minOccurs
499  1, // maxOccurs
500  -MAX_DOUBLE, // min
501  +MAX_DOUBLE, // max
502  false, // use, true=required, false=optional
503  true, // use, true=use default, false=no default
504  0.0
505  );
506 
507  constraintsE_["offset"] = ConstraintE( 1, // minOccurs
508  1, // maxOccurs
509  0.0*deg, // min
510  360.0*deg, // max
511  false, // use, true=required, false=optional
512  true, // use, true=use default, false=no default
513  0.0
514  );
515 
516  constraintsE_["delta"] = ConstraintE( 1, // minOccurs
517  1, // maxOccurs
518  0.0*deg, // min
519  360.0*deg, // max
520  false, // use, true=required, false=optional
521  false, // use, true=use default, false=no default
522  0.
523  );
524 
525  constraintsE_["number"] = ConstraintE( 1, // minOccurs
526  1, // maxOccurs
527  -MAX_DOUBLE, // min
528  +MAX_DOUBLE, // max
529  false, // use, true=required, false=optional
530  false, // use, true=use default, false=no default
531  0.
532  );
533 
534  constraintsE_["radius"] = ConstraintE( 1, // minOccurs
535  1, // maxOccurs
536  -MAX_DOUBLE, // min
537  +MAX_DOUBLE, // max
538  true, // use, true=required, false=optional
539  true, // use, true=use default, false=no default
540  0.0
541  );
542 
543  constraintsS_["rotate"] = ConstraintS( 1, // minOccurs
544  1, // maxOccurs
545 
546 
547  false, // use, true=required, false=optional
548  true, // use, true=use default, false=no default
549  "1"
550  );
551 
552  constraintsS_["orientation"] = ConstraintS( 1, // minOccurs
553  1, // maxOccurs
554 
555 
556  false, // use, true=required, false=optional
557  false, // use, true=use default, false=no default
558  ""
559  );
560 
561 }
constraintsS_type constraintsS_
format: &quot;ParameterName&quot; -&gt; ConstraintS
Definition: AlgoCheck.h:76
constraintsE_type constraintsE_
format: &quot;ParameterName&quot; -&gt; ConstraintE
Definition: AlgoCheck.h:73
#define MAX_DOUBLE
global_simpleAngular_Check::~global_simpleAngular_Check ( )
inline

Definition at line 139 of file global_simpleAngular.h.

139 { };