From 97617284334c2f060f8c3bbc3333b0f13bca7c94 Mon Sep 17 00:00:00 2001 From: "kevin.larke" Date: Thu, 16 Apr 2020 11:05:38 -0400 Subject: [PATCH] cwObject.h/cpp : Enabled 'bool' variables via getv() --- cwObject.cpp | 1 + cwObject.h | 1 + 2 files changed, 2 insertions(+) diff --git a/cwObject.cpp b/cwObject.cpp index 454c95b..48a3a21 100644 --- a/cwObject.cpp +++ b/cwObject.cpp @@ -480,6 +480,7 @@ cw::rc_t cw::object_t::value( int64_t& v ) const { return type->value(this,kInt cw::rc_t cw::object_t::value( uint64_t& v ) const { return type->value(this,kUInt64TId,&v); } cw::rc_t cw::object_t::value( float& v ) const { return type->value(this,kFloatTId,&v); } cw::rc_t cw::object_t::value( double& v ) const { return type->value(this,kDoubleTId,&v); } +cw::rc_t cw::object_t::value( bool& v ) const { return type->value(this,kBoolTId,&v); } cw::rc_t cw::object_t::value( char*& v ) const { return type->value(this,kStringTId,&v); } cw::rc_t cw::object_t::value( const char*& v ) const { return type->value(this,kCStringTId,&v); } diff --git a/cwObject.h b/cwObject.h index 25b1542..41eab29 100644 --- a/cwObject.h +++ b/cwObject.h @@ -126,6 +126,7 @@ namespace cw rc_t value( uint64_t& v ) const; rc_t value( float& v ) const; rc_t value( double& v ) const; + rc_t value( bool& v ) const; rc_t value( char*& v ) const; rc_t value( const char*& v ) const;