diff options
| author | Jonathan Robie <jonathan@apache.org> | 2010-11-01 14:18:07 +0000 |
|---|---|---|
| committer | Jonathan Robie <jonathan@apache.org> | 2010-11-01 14:18:07 +0000 |
| commit | f3737cc2b38d3a0494a64d1b5d618229a80651bd (patch) | |
| tree | a66be957c5dd1489bb46cc9c0e63002c3728908b /qpid/cpp/include | |
| parent | ec8173b568c8c57f7f21215f0e64947b69f0c13b (diff) | |
| download | qpid-python-f3737cc2b38d3a0494a64d1b5d618229a80651bd.tar.gz | |
Changed Variant::fromString() to Variant::parse(). Also changed implementation.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1029673 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/include')
| -rw-r--r-- | qpid/cpp/include/qpid/types/Variant.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/qpid/cpp/include/qpid/types/Variant.h b/qpid/cpp/include/qpid/types/Variant.h index 2b692f9bdf..9ae672b7c2 100644 --- a/qpid/cpp/include/qpid/types/Variant.h +++ b/qpid/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; |
