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 488 of file global_simpleAngular.cc.

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

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