OpenLexocad
27.0
Value.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
Core/Variant.h
>
4
#include <
OpenLxApp/OpenLxApp_defines.h
>
5
6
namespace
OpenLxApp
7
{
8
class
OPENLXAPP_EXPORT
Value
9
{
10
public
:
11
Value
();
12
virtual
~
Value
();
13
virtual
void
setValue(
const
Core::Variant
& aVariant);
14
virtual
bool
isNull();
15
};
16
17
class
OPENLXAPP_EXPORT
ValueInteger
:
public
Value
18
{
19
public
:
20
ValueInteger
();
21
virtual
~
ValueInteger
();
22
ValueInteger
(
const
Core::Variant
& aVariant);
23
ValueInteger
(
int
aValue);
24
void
setValue(
const
Core::Variant
& aVariant)
override
;
25
void
setValue(
int
aValue);
26
int
getValue();
27
bool
isNull()
override
;
28
29
private
:
30
int
_value;
31
bool
_isNull =
true
;
32
};
33
34
class
OPENLXAPP_EXPORT
ValueDouble
:
public
Value
35
{
36
public
:
37
ValueDouble
();
38
virtual
~
ValueDouble
();
39
ValueDouble
(
const
Core::Variant
& aVariant);
40
ValueDouble
(
double
aValue);
41
void
setValue(
const
Core::Variant
& aVariant)
override
;
42
void
setValue(
double
aValue);
43
double
getValue();
44
bool
isNull()
override
;
45
46
private
:
47
double
_value;
48
bool
_isNull =
true
;
49
};
50
}
// namespace OpenLxApp
Core::Variant
Definition:
Variant.h:90
OpenLxApp::ValueInteger
Definition:
Value.h:17
OPENLXAPP_EXPORT
#define OPENLXAPP_EXPORT
Definition:
OpenLxApp_defines.h:12
OpenLxApp
Definition:
ActiveScript.h:9
OpenLxApp_defines.h
Variant.h
OpenLxApp::ValueDouble
Definition:
Value.h:34
OpenLxApp::Value
Definition:
Value.h:8
lexocad
OpenLxApp
include
OpenLxApp
Value.h
Generated by
1.8.15