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 223 of file global_angular.cc.

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

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