Candidate_v1.7.0
        stable
      
      
        
          | 
            Last change
 on this file since 7a434f was             f79d65, checked in by Frederik Heber <frederik.heber@…>, 8 years ago           | 
        
        
          | 
             
Vector(s) are now stored as strings in Querys intermediately. 
 
- they get evaluated first after being stored in a Parameter/Value on request
via get().
 - Needed to change all Vector(s)..Query's of all UIs and also the general base
classes inside Dialog.
 - QtQueryList need to be specialized in order to allow a QtQueryList<Vector>
to actually store a vector of strings.
 - we may use setAsString() in order to set the Parameter thankfully.
 - TESTS: All regression tests on Geometry Actions are now working. Removed
XFAIL from Options/Session test that use Python, i.e. the ones we marked
four commits ago.
  
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            1.2 KB
           | 
        
      
      
| Rev | Line |   | 
|---|
| [0286bc] | 1 | /*
 | 
|---|
 | 2 |  * Values.hpp
 | 
|---|
 | 3 |  *
 | 
|---|
 | 4 |  *  Created on: Jun 7, 2010
 | 
|---|
 | 5 |  *      Author: heber
 | 
|---|
 | 6 |  */
 | 
|---|
 | 7 | 
 | 
|---|
 | 8 | #ifndef VALUES_HPP_
 | 
|---|
 | 9 | #define VALUES_HPP_
 | 
|---|
 | 10 | 
 | 
|---|
| [56f73b] | 11 | // include config.h
 | 
|---|
 | 12 | #ifdef HAVE_CONFIG_H
 | 
|---|
 | 13 | #include <config.h>
 | 
|---|
 | 14 | #endif
 | 
|---|
 | 15 | 
 | 
|---|
| [06aedc] | 16 | #include "LinearAlgebra/defs.hpp"
 | 
|---|
| [56f73b] | 17 | 
 | 
|---|
| [33e801] | 18 | #include <string>
 | 
|---|
 | 19 | 
 | 
|---|
| [528b3e] | 20 | class Box;
 | 
|---|
 | 21 | class BoxVector;
 | 
|---|
| [7d9416] | 22 | class RealSpaceMatrix;
 | 
|---|
| [528b3e] | 23 | class Vector;
 | 
|---|
 | 24 | 
 | 
|---|
 | 25 | /** This is just a temporary container for values parsed from the command line.
 | 
|---|
 | 26 |  * I.e. this is only used within CommandLineParser, where VectorType and alikes
 | 
|---|
 | 27 |  * are registered as VectorValue and lateron inside the CommandLineQuery placed
 | 
|---|
 | 28 |  * into the real vector.
 | 
|---|
| [f79d65] | 29 |  *
 | 
|---|
 | 30 |  * We use this abstraction also for Geometry Objects, i.e. string names
 | 
|---|
 | 31 |  * referencing vectors in the GeomtryRegistry.
 | 
|---|
| [528b3e] | 32 |  */
 | 
|---|
| [0286bc] | 33 | struct VectorValue
 | 
|---|
 | 34 | {
 | 
|---|
| [f79d65] | 35 |   std::string vectorstring;
 | 
|---|
| [528b3e] | 36 | 
 | 
|---|
 | 37 |   Vector toVector() const;
 | 
|---|
 | 38 |   BoxVector toBoxVector(Box &_box) const;
 | 
|---|
| [0286bc] | 39 | };
 | 
|---|
 | 40 | 
 | 
|---|
| [528b3e] | 41 | /** This is just a temporary container for values parsed from the command line.
 | 
|---|
 | 42 |  * I.e. this is only used within CommandLineParser, where BoxType is registered
 | 
|---|
 | 43 |  * as BoxValue and lateron inside the CommandLineQuery placed into the real Box.
 | 
|---|
 | 44 |  */
 | 
|---|
| [7d9416] | 45 | struct RealSpaceMatrixValue
 | 
|---|
| [0286bc] | 46 | {
 | 
|---|
| [528b3e] | 47 |   double matrix[(NDIM*(NDIM+1))/2];
 | 
|---|
 | 48 | 
 | 
|---|
| [7d9416] | 49 |   RealSpaceMatrix toRealSpaceMatrix() const;
 | 
|---|
| [0286bc] | 50 | };
 | 
|---|
 | 51 | 
 | 
|---|
 | 52 | #endif /* VALUES_HPP_ */
 | 
|---|
| [33e801] | 53 | 
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.