summaryrefslogtreecommitdiff
path: root/cpp/include/qpid
diff options
context:
space:
mode:
authorJonathan Robie <jonathan@apache.org>2010-11-01 14:18:07 +0000
committerJonathan Robie <jonathan@apache.org>2010-11-01 14:18:07 +0000
commitefa5e425f9c7334b9eedbcdfb1928ed0b396ec97 (patch)
tree5de62a28333d7be93aa880f0909e2cace9032682 /cpp/include/qpid
parent01fc53ba3e26ca7dc5c01439569bc4cd5eb5a6c6 (diff)
downloadqpid-python-efa5e425f9c7334b9eedbcdfb1928ed0b396ec97.tar.gz
Changed Variant::fromString() to Variant::parse(). Also changed implementation.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1029673 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/include/qpid')
-rw-r--r--cpp/include/qpid/types/Variant.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/include/qpid/types/Variant.h b/cpp/include/qpid/types/Variant.h
index 2b692f9bdf..9ae672b7c2 100644
--- a/cpp/include/qpid/types/Variant.h
+++ b/cpp/include/qpid/types/Variant.h
@@ -113,7 +113,11 @@ class Variant
QPID_TYPES_EXTERN Variant& operator=(const Variant&);
QPID_TYPES_EXTERN Variant& operator=(const Uuid&);
- QPID_TYPES_EXTERN Variant& fromString(const std::string&);
+ /**
+ * Parses the argument and assigns itself the appropriate
+ * value. Recognises integers, doubles and booleans.
+ */
+ QPID_TYPES_EXTERN Variant& parse(const std::string&);
QPID_TYPES_EXTERN bool asBool() const;
QPID_TYPES_EXTERN uint8_t asUint8() const;