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_angular_Check Class Reference

#include <global_angular.h>

Inheritance diagram for global_angular_Check:
AlgoCheck

Public Member Functions

 global_angular_Check ()
 
 ~global_angular_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 78 of file global_angular.h.

Constructor & Destructor Documentation

global_angular_Check::global_angular_Check ( )

Definition at line 231 of file global_angular.cc.

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

232 {
233  // for the time being only expression-valued parameters can be automatically checked
234  // against their specified constraints
235 
236  // schema default values will be shown if necessary in the following XML comments
237  // on the second line. The fist shows the values as given in the instance document
238 
239  // expressions have to be converted into doubles. No variables [bla] shall be allowed
240  // inside the expressions; SystemOfUnits-symbols are the only supported ones.
241 
242 
243  constraintsE_["startAngle"] = ConstraintE( 1, // minOccurs
244  1, // maxOccurs
245  0., // min
246  360.0*deg, // max
247  false, // use, true=required, false=optional
248  true, // use, true=use default, false=no default
249  0.0
250  );
251 
252  constraintsE_["rangeAngle"] = ConstraintE( 1, // minOccurs
253  1, // maxOccurs
254  0., // min
255  360.0*deg, // max
256  false, // use, true=required, false=optional
257  true, // use, true=use default, false=no default
258  360.0*deg
259  );
260 
261  constraintsE_["n"] = ConstraintE( 1, // minOccurs
262  1, // maxOccurs
263  1, // min
264  +MAX_DOUBLE, // max
265  false, // use, true=required, false=optional
266  true, // use, true=use default, false=no default
267  1
268  );
269  constraintsE_["startCopyNo"] = ConstraintE( 1, // minOccurs
270  1, // maxOccurs
271  -MAX_DOUBLE, // min
272  +MAX_DOUBLE, // max
273  false, // use, true=required, false=optional
274  true, // use, true=use default, false=no default
275  1
276  );
277 
278  constraintsE_["incrCopyNo"] = ConstraintE( 1, // minOccurs
279  1, // maxOccurs
280  -MAX_DOUBLE, // min
281  +MAX_DOUBLE, // max
282  false, // use, true=required, false=optional
283  true, // use, true=use default, false=no default
284  1
285  );
286 
287 
288  constraintsE_["radius"] = ConstraintE( 1, // minOccurs
289  1, // maxOccurs
290  0., // min
291  +MAX_DOUBLE, // max
292  true, // use, true=required, false=optional
293  false, // use, true=use default, false=no default
294  2
295  );
296 
297  constraintsS_["alignSolid"] = ConstraintS( 1, // minOccurs
298  1, // maxOccurs
299 
300 
301  false, // use, true=required, false=optional
302  true, // use, true=use default, false=no default
303  "T"
304  );
305 
306  constraintsE_["center"] = ConstraintE( 3, // minOccurs
307  3, // maxOccurs
308  -MAX_DOUBLE, // min
309  +MAX_DOUBLE, // max
310  false, // use, true=required, false=optional
311  true, // use, true=use default, false=no default
312  0.
313  );
314 
315  constraintsE_["rotate"] = ConstraintE( 3, // minOccurs
316  9, // maxOccurs
317  -360.0*deg, // min
318  360.0*deg, // max
319  false, // use, true=required, false=optional
320  true, // use, true=use default, false=no default
321  0.0
322  );
323 
324  constraintsE_["rotateSolid"] = ConstraintE( 3, // minOccurs
325  9, // maxOccurs
326  -360.0*deg, // min
327  360.0*deg, // max
328  false, // use, true=required, false=optional
329  true, // use, true=use default, false=no default
330  0.0
331  );
332 
333 }
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_angular_Check::~global_angular_Check ( )
inline

Definition at line 83 of file global_angular.h.

83 { };