OpenLexocad  27.0
Result.h
Go to the documentation of this file.
1 // //
3 // LEXOCAD API //
4 // //
5 // ©2005-2016 Cadwork Informatik. All rights reserved. //
6 // //
7 // ONLY INCLUDE OTHER INTERFACES! //
8 // Lexocad provides API Classes for public use and //
9 // Implementation Classes for private use. //
10 // //
11 // - Do ONLY include and use the LEXOCAD API in this header. //
12 // - Do not change existing interfaces. //
13 // - Document your code! //
14 // //
15 // - All types from Base, Core, Geom, Topo are allowed here. //
16 // - In the Gui modules the use of Qt types is allowed. //
17 // //
19 
20 #pragma once
21 
22 #include <Base/String.h>
24 #include <Core/core_defines2.h>
25 #include <Geom/Pnt.h>
26 
27 namespace Core
28 {
30 {
31 public:
32  bool isNull() const { return _isNull; }
33  double getValue() { return _value; }
34  void setValue(double aValue)
35  {
36  _value = aValue;
37  _isNull = false;
38  }
39 
40 private:
41  bool _isNull = true;
42  double _value;
43 };
44 
46 {
47 public:
48  bool isNull() const { return _isNull; }
49  int getValue() { return _value; }
50  void setValue(int aValue)
51  {
52  _value = aValue;
53  _isNull = false;
54  }
55 
56 private:
57  bool _isNull = true;
58  int _value;
59 };
60 
62 {
63 public:
64  bool isNull() const { return _isNull; }
65  Base::String getValue() { return _value; }
66  void setValue(const Base::String& aValue)
67  {
68  _value = aValue;
69  _isNull = false;
70  }
71 
72 private:
73  bool _isNull = true;
74  Base::String _value;
75 };
76 
78 {
79 public:
80  bool isNull() const { return _isNull; }
81  Geom::Pnt getValue() { return _value; }
82  void setValue(const Geom::Pnt& aValue)
83  {
84  _value = aValue;
85  _isNull = false;
86  }
87 
88 private:
89  bool _isNull = true;
90  Geom::Pnt _value;
91 };
92 
94 {
95 public:
96  bool isNull() const { return _isNull; }
99  {
100  _value = aValue;
101  _isNull = false;
102  }
103 
104 private:
105  bool _isNull = true;
107 };
108 } // namespace Core
#define CORE_EXPORT
Definition: core_defines2.h:10
Definition: Result.h:61
bool isNull() const
Definition: Result.h:32
void setValue(double aValue)
Definition: Result.h:34
Defines a non-persistent 3D Cartesian point.
Definition: Pnt.h:42
bool isNull() const
Definition: Result.h:64
bool isNull() const
Definition: Result.h:48
bool isNull() const
Definition: Result.h:80
A Utf-16 (windows) or ucs4 (unix) encoded string class.
Definition: String.h:29
int getValue()
Definition: Result.h:49
Definition: Result.h:77
Geom::Pnt getValue()
Definition: Result.h:81
void setValue(int aValue)
Definition: Result.h:50
Definition: StandardManipulatorPolicy.h:9
Core::StandardManipulatorPolicy getValue()
Definition: Result.h:97
Definition: Base.h:19
void setValue(const Core::StandardManipulatorPolicy &aValue)
Definition: Result.h:98
void setValue(const Base::String &aValue)
Definition: Result.h:66
Definition: Result.h:45
void setValue(const Geom::Pnt &aValue)
Definition: Result.h:82
bool isNull() const
Definition: Result.h:96
Definition: Result.h:29
Base::String getValue()
Definition: Result.h:65
double getValue()
Definition: Result.h:33