add variants of SetText() to support types
diff --git a/tinyxml2.h b/tinyxml2.h
index 2330ab9..41f1c70 100755
--- a/tinyxml2.h
+++ b/tinyxml2.h
@@ -118,7 +118,7 @@
static const int TIXML2_MAJOR_VERSION = 1;
static const int TIXML2_MINOR_VERSION = 0;
-static const int TIXML2_PATCH_VERSION = 13;
+static const int TIXML2_PATCH_VERSION = 14;
namespace tinyxml2
{
@@ -1403,7 +1403,17 @@
<foo>Hullaballoo!</foo>
@endverbatim
*/
- void SetText( const char* inText );
+ void SetText( const char* inText );
+ /// Convenince method for setting text inside and element. See SetText() for important limitations.
+ void SetText( int value );
+ /// Convenince method for setting text inside and element. See SetText() for important limitations.
+ void SetText( unsigned value );
+ /// Convenince method for setting text inside and element. See SetText() for important limitations.
+ void SetText( bool value );
+ /// Convenince method for setting text inside and element. See SetText() for important limitations.
+ void SetText( double value );
+ /// Convenince method for setting text inside and element. See SetText() for important limitations.
+ void SetText( float value );
/**
Convenience method to query the value of a child text node. This is probably best
@@ -1465,6 +1475,7 @@
//void LinkAttribute( XMLAttribute* attrib );
char* ParseAttributes( char* p );
+ enum { BUF_SIZE = 200 };
int _closingType;
// The attribute list is ordered; there is no 'lastAttribute'
// because the list needs to be scanned for dupes before adding