diff options
author | Gordon Sim <gsim@apache.org> | 2011-02-28 15:35:28 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2011-02-28 15:35:28 +0000 |
commit | b657f00b7b05fd6ac36da7e53680b6cd01dd4d35 (patch) | |
tree | cb9737097405f248f139248ba8088260fa225701 | |
parent | b3b8be75969fa3a7edb6eb037cce98ea7bfbca13 (diff) | |
download | qpid-python-b657f00b7b05fd6ac36da7e53680b6cd01dd4d35.tar.gz |
QPID-3089: make getTypeName() a public method
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1075380 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | qpid/cpp/include/qpid/types/Variant.h | 2 | ||||
-rw-r--r-- | qpid/cpp/src/qpid/types/Variant.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/qpid/cpp/include/qpid/types/Variant.h b/qpid/cpp/include/qpid/types/Variant.h index 9ae672b7c2..d9260133a7 100644 --- a/qpid/cpp/include/qpid/types/Variant.h +++ b/qpid/cpp/include/qpid/types/Variant.h @@ -60,6 +60,8 @@ enum VariantType { VAR_UUID }; +std::string getTypeName(VariantType type); + class VariantImpl; /** diff --git a/qpid/cpp/src/qpid/types/Variant.cpp b/qpid/cpp/src/qpid/types/Variant.cpp index 5d8878bdac..9cc3cfe5fc 100644 --- a/qpid/cpp/src/qpid/types/Variant.cpp +++ b/qpid/cpp/src/qpid/types/Variant.cpp @@ -108,7 +108,6 @@ class VariantImpl } value; std::string encoding;//optional encoding for variable length data - std::string getTypeName(VariantType type) const; template<class T> T convertFromString() const { std::string* s = reinterpret_cast<std::string*>(value.v); @@ -582,7 +581,7 @@ const std::string& VariantImpl::getString() const void VariantImpl::setEncoding(const std::string& s) { encoding = s; } const std::string& VariantImpl::getEncoding() const { return encoding; } -std::string VariantImpl::getTypeName(VariantType type) const +std::string getTypeName(VariantType type) { switch (type) { case VAR_VOID: return "void"; |