aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <mbuland@penny-arcade.com>2020-07-27 11:23:11 -0700
committerMike Buland <mbuland@penny-arcade.com>2020-07-27 11:23:11 -0700
commit701b05de4d2e79afd88ef8ddf93ba0fcc0eb5b14 (patch)
tree0b8123426ec47c24f85d2f358b204f8f889e199c
parent78a6b37b5cef55dc6d0f7120ff2a1f914375fe70 (diff)
downloadlibgats-701b05de4d2e79afd88ef8ddf93ba0fcc0eb5b14.tar.gz
libgats-701b05de4d2e79afd88ef8ddf93ba0fcc0eb5b14.tar.bz2
libgats-701b05de4d2e79afd88ef8ddf93ba0fcc0eb5b14.tar.xz
libgats-701b05de4d2e79afd88ef8ddf93ba0fcc0eb5b14.zip
Added Qt style compliant value getters.
-rw-r--r--c++-qt/gats-qt/boolean.h1
-rw-r--r--c++-qt/gats-qt/float.h1
-rw-r--r--c++-qt/gats-qt/integer.h1
3 files changed, 3 insertions, 0 deletions
diff --git a/c++-qt/gats-qt/boolean.h b/c++-qt/gats-qt/boolean.h
index 04a9cef..e6d10af 100644
--- a/c++-qt/gats-qt/boolean.h
+++ b/c++-qt/gats-qt/boolean.h
@@ -26,6 +26,7 @@ namespace Gats
26 26
27 virtual Type getType() const { return typeBoolean; } 27 virtual Type getType() const { return typeBoolean; }
28 bool getValue() const { return bVal; } 28 bool getValue() const { return bVal; }
29 bool value() const { return bVal; }
29 void setValue( bool b ) { bVal = b; } 30 void setValue( bool b ) { bVal = b; }
30 31
31 virtual void write( QIODevice &rOut ) const; 32 virtual void write( QIODevice &rOut ) const;
diff --git a/c++-qt/gats-qt/float.h b/c++-qt/gats-qt/float.h
index 9791b38..5a1ff4b 100644
--- a/c++-qt/gats-qt/float.h
+++ b/c++-qt/gats-qt/float.h
@@ -24,6 +24,7 @@ namespace Gats
24 24
25 virtual Type getType() const { return typeFloat; } 25 virtual Type getType() const { return typeFloat; }
26 double getValue() const { return fVal; } 26 double getValue() const { return fVal; }
27 double value() const { return fVal; }
27 28
28 virtual void write( QIODevice &rOut ) const; 29 virtual void write( QIODevice &rOut ) const;
29 virtual void read( QIODevice &rIn, char cType ); 30 virtual void read( QIODevice &rIn, char cType );
diff --git a/c++-qt/gats-qt/integer.h b/c++-qt/gats-qt/integer.h
index 9638d77..3427682 100644
--- a/c++-qt/gats-qt/integer.h
+++ b/c++-qt/gats-qt/integer.h
@@ -28,6 +28,7 @@ namespace Gats
28 28
29 virtual Type getType() const { return typeInteger; } 29 virtual Type getType() const { return typeInteger; }
30 int64_t getValue() const { return iVal; } 30 int64_t getValue() const { return iVal; }
31 int64_t value() const { return iVal; }
31 void setValue( int64_t iNewVal ) { iVal = iNewVal; } 32 void setValue( int64_t iNewVal ) { iVal = iNewVal; }
32 33
33 virtual void write( QIODevice &rOut ) const; 34 virtual void write( QIODevice &rOut ) const;