1 // ANNA - Anna is Not Nothingness Anymore //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
10 #include <anna/diameter/functions.hpp>
12 #include <anna/core/functions.hpp>
14 using namespace anna::diameter;
17 std::string functions::avpIdAsPairString(const AvpId & avpId) throw() {
20 result += anna::functions::asString(avpId.first);
22 result += anna::functions::asString(avpId.second);
28 std::string functions::commandIdAsPairString(const CommandId & commandId) throw() {
31 result += anna::functions::asString(commandId.first);
33 result += (commandId.second ? "request" : "answer");