From 077b8b25ab7fac22daf8494feb125cd5c73b95ac Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Wed, 9 Jun 2010 11:59:38 +0000 Subject: QPID-2589 Cleanup pass to address function naming, capitalization rules, change Qpid messaging 'list' representation from List<> to Collection<>, some exception cleanup. Patch from Chuck Rolke git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@952968 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/bindings/qpid/dotnet/src/Address.cpp | 50 ++++++++++++++++---------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'cpp/bindings/qpid/dotnet/src/Address.cpp') diff --git a/cpp/bindings/qpid/dotnet/src/Address.cpp b/cpp/bindings/qpid/dotnet/src/Address.cpp index 8b48a2037f..f0bbe13bbb 100644 --- a/cpp/bindings/qpid/dotnet/src/Address.cpp +++ b/cpp/bindings/qpid/dotnet/src/Address.cpp @@ -30,10 +30,10 @@ #include "QpidTypeCheck.h" #include "TypeTranslator.h" -namespace org { -namespace apache { -namespace qpid { -namespace messaging { +namespace Org { +namespace Apache { +namespace Qpid { +namespace Messaging { /// /// Address is a managed wrapper for a qpid::messaging::Address @@ -58,10 +58,10 @@ namespace messaging { System::String ^, System::Object ^> ^ options) : addressp(new ::qpid::messaging::Address()) { - setName(name); - setSubject(subject); - setOptions(options); - setType(""); + SetName(name); + SetSubject(subject); + SetOptions(options); + SetType(""); } @@ -72,10 +72,10 @@ namespace messaging { System::String ^ type) : addressp(new ::qpid::messaging::Address()) { - setName(name); - setSubject(subject); - setOptions(options); - setType(type); + SetName(name); + SetSubject(subject); + SetOptions(options); + SetType(type); } @@ -114,12 +114,12 @@ namespace messaging { // // name // - System::String ^ Address::getName() + System::String ^ Address::GetName() { return gcnew System::String(addressp->getName().c_str()); } - void Address::setName(System::String ^ name) + void Address::SetName(System::String ^ name) { addressp->::qpid::messaging::Address::setName(QpidMarshal::ToNative(name)); } @@ -127,21 +127,21 @@ namespace messaging { // // subject // - System::String ^ Address::getSubject() + System::String ^ Address::GetSubject() { return gcnew System::String(addressp->getSubject().c_str()); } - void Address::setSubject(System::String ^ subject) + void Address::SetSubject(System::String ^ subject) { - addressp->setName(QpidMarshal::ToNative(subject)); + addressp->setSubject(QpidMarshal::ToNative(subject)); } // // options // System::Collections::Generic::Dictionary< - System::String ^, System::Object ^> ^ Address::getOptions() + System::String ^, System::Object ^> ^ Address::GetOptions() { ::qpid::types::Variant::Map map; System::Collections::Generic::Dictionary< @@ -149,37 +149,37 @@ namespace messaging { gcnew System::Collections::Generic::Dictionary< System::String ^, System::Object ^>; map = addressp->getOptions(); - TypeTranslator::NativeToManaged(newMap, map); + TypeTranslator::NativeToManaged(map, newMap); return newMap; } - void Address::setOptions(System::Collections::Generic::Dictionary< + void Address::SetOptions(System::Collections::Generic::Dictionary< System::String ^, System::Object ^> ^ options) { ::qpid::types::Variant::Map map; - TypeTranslator::ManagedToNative(map, options); + TypeTranslator::ManagedToNative(options, map); addressp->setOptions(map); } // // type // - System::String ^ Address::getType() + System::String ^ Address::GetType() { return gcnew System::String(addressp->getType().c_str()); } - void Address::setType(System::String ^ type) + void Address::SetType(System::String ^ type) { addressp->setName(QpidMarshal::ToNative(type)); } // - // str + // ToString // - System::String ^ Address::str() + System::String ^ Address::ToStr() { return gcnew System::String(addressp->str().c_str()); } -- cgit v1.2.1