X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fhttp%2Fwims20%2FAbstract.cpp;h=b2a214e8119c639165267e9bcf961d28817041db;hp=49f0fea84ebae17025d262003096d7d1d244d2cc;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/http/wims20/Abstract.cpp b/source/http/wims20/Abstract.cpp index 49f0fea..b2a214e 100644 --- a/source/http/wims20/Abstract.cpp +++ b/source/http/wims20/Abstract.cpp @@ -40,7 +40,7 @@ http::wims20::Abstract::~Abstract() { /* Calcula la parte fija de la URI, se invoca desde el constructor. */ const string& http::wims20::Abstract::calculeFixedPart() -throw(RuntimeException) { +noexcept(false) { if(a_serviceID.empty() == true) { string msg(asString()); msg += " | ServiceID can not be NULL"; @@ -63,7 +63,7 @@ throw(RuntimeException) { } const string& http::wims20::Abstract::calculeShortFixedPart() -throw(RuntimeException) { +noexcept(false) { string::size_type pos = a_domain.find("http://"); if(pos == string::npos) { @@ -87,7 +87,7 @@ throw(RuntimeException) { } void http::wims20::Abstract::other_level_add(const std::string& otherLevel) -throw(RuntimeException) { +noexcept(false) { if(a_otherLevels == NULL) a_otherLevels = new other_level_container; @@ -101,7 +101,7 @@ throw(RuntimeException) { /*virtual*/ void http::wims20::Abstract::clearOtherLevels() -throw() { +{ if(hasOtherLevels()) { for(other_level_iterator ii = other_level_begin(), maxii = other_level_end(); ii != maxii; ii ++) destroyString(otherLevel(ii)); @@ -111,7 +111,7 @@ throw() { } void http::wims20::Abstract::parameter_set(const std::string& name, const std::string& value) -throw(RuntimeException) { +noexcept(false) { bool exists = false; if(a_parameters == NULL) @@ -144,7 +144,7 @@ throw(RuntimeException) { } void http::wims20::Abstract::clearParameters() -throw() { +{ if(hasParameters()) { for(parameter_iterator ii = parameter_begin(), maxii = parameter_end(); ii != maxii; ii ++) { destroyString(parameter_name(ii)); @@ -156,7 +156,7 @@ throw() { } string http::wims20::Abstract::asString() const -throw() { +{ string result("http::wims20::"); result += a_whatis; result += " { Domain: "; @@ -194,7 +194,7 @@ throw() { /*static*/ void http::wims20::Abstract::appendWithSlash(std::string& target, const std::string& other) -throw() { +{ const char* str = target.c_str(); if(str [anna_strlen(str) - 1] != '/')