test
[anna.git] / source / diameter.comm / ClassCode.cpp
1 // ANNA - Anna is Not Nothingness Anymore                                                         //
2 //                                                                                                //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo                         //
4 //                                                                                                //
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 //
7
8
9 // Local
10 #include <anna/diameter.comm/ClassCode.hpp>
11
12 using namespace std;
13
14 //string anna::diameter::comm::ClassCode::asString(const ClassCode::_v v)
15 //throw() {
16 //   static const char* text [] = { "Undefined", "Bind", "ApplicationMessage" };
17 //   string result("ClassCode: ");
18 //   return result += (v >= Min && v < Max) ? text [v] : "<null>";
19 //}
20
21 string anna::diameter::comm::ClassCode::asText(const ClassCode::_v v)
22 throw() {
23   static const char* text [] = { "Undefined", "Bind", "ApplicationMessage" };
24   return string((v >= Min && v < Max) ? text [v] : "<null>");
25 }
26