Remove dynamic exceptions
[anna.git] / include / anna / diameter.comm / ClassCode.hpp
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 #ifndef anna_diameter_comm_ClassCode_hpp
10 #define anna_diameter_comm_ClassCode_hpp
11
12
13 // STL
14 #include <string>
15
16
17 namespace anna {
18
19 namespace diameter {
20
21 namespace comm {
22
23 /**
24    Class types for request/answers managed by the module.
25    No matter if we are client or server: request messages will be temporized, but not answers.
26 */
27 struct ClassCode {
28   enum _v {
29     Undefined, /**< Internal use */ // valdra 0, igual que Min
30     Bind, /**< Capabilities Exchange Request */
31     ApplicationMessage, /**< Diameter messages (request/answers) to the server (answers not temporized) */
32     Max, /**< Internal use */
33     Min = 0 /**< Internal use */
34   };
35
36
37   /**
38      Class type string representation
39      \param v Class type code to translate.
40      \return Class type string representation.
41   */
42   //static std::string asString(const _v v) ;
43
44   /**
45      Class type text representation
46      \param v Class type code to translate.
47      \return Class type text representation.
48   */
49   static std::string asText(const _v v) ;
50 };
51
52 }
53 }
54 }
55
56 #endif
57