using namespace std;
//string anna::diameter::comm::ClassCode::asString(const ClassCode::_v v)
-//throw() {
+//{
// static const char* text [] = { "Undefined", "Bind", "ApplicationMessage" };
// string result("ClassCode: ");
-// return result += (v >= Min && v < Max) ? text [v] : "<null>";
+// return result += (v >= Min && v < Max) ? text [v] : "[null]";
//}
string anna::diameter::comm::ClassCode::asText(const ClassCode::_v v)
-throw() {
+{
static const char* text [] = { "Undefined", "Bind", "ApplicationMessage" };
- return string((v >= Min && v < Max) ? text [v] : "<null>");
+ return string((v >= Min && v < Max) ? text [v] : "[null]");
}