Remove dynamic exceptions
[anna.git] / include / anna / diameter / functions.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_functions_hpp
10 #define anna_diameter_functions_hpp
11
12
13 // Local
14 #include <anna/diameter/defines.hpp>
15
16 // STL
17 #include <string>
18
19 //------------------------------------------------------------------------------
20 //---------------------------------------------------------------------- #define
21 //------------------------------------------------------------------------------
22
23 namespace anna {
24
25 namespace diameter {
26
27
28 struct functions {
29
30 //public:
31
32   /**
33   * Returns Avp identification as string:
34   * <pre>
35   *
36   *           '(<code>,<vendorId>)'
37   * </pre>
38   */
39   static std::string avpIdAsPairString(const AvpId & avpId) ;
40
41
42   /**
43   * Returns Command identification as string:
44   * <pre>
45   *
46   *           '(<code>,request|answer)'
47   * </pre>
48   */
49   static std::string commandIdAsPairString(const CommandId & commandId) ;
50 };
51
52
53 }
54 }
55
56
57 #endif
58