From 701b05de4d2e79afd88ef8ddf93ba0fcc0eb5b14 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 27 Jul 2020 11:23:11 -0700 Subject: Added Qt style compliant value getters. --- c++-qt/gats-qt/boolean.h | 1 + c++-qt/gats-qt/float.h | 1 + c++-qt/gats-qt/integer.h | 1 + 3 files changed, 3 insertions(+) (limited to 'c++-qt') 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 virtual Type getType() const { return typeBoolean; } bool getValue() const { return bVal; } + bool value() const { return bVal; } void setValue( bool b ) { bVal = b; } 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 virtual Type getType() const { return typeFloat; } double getValue() const { return fVal; } + double value() const { return fVal; } virtual void write( QIODevice &rOut ) const; 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 virtual Type getType() const { return typeInteger; } int64_t getValue() const { return iVal; } + int64_t value() const { return iVal; } void setValue( int64_t iNewVal ) { iVal = iNewVal; } virtual void write( QIODevice &rOut ) const; -- cgit v1.2.3