Remove dynamic exceptions
[anna.git] / include / anna / diameter / helpers / ericsson / 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_helpers_ericsson_functions_hpp
10 #define anna_diameter_helpers_ericsson_functions_hpp
11
12
13 #include <anna/core/RuntimeException.hpp>
14
15 // STL
16 #include <string>
17
18 //------------------------------------------------------------------------------
19 //---------------------------------------------------------------------- #define
20 //------------------------------------------------------------------------------
21
22
23 namespace anna {
24 class DataBlock;
25 }
26
27
28
29 namespace anna {
30
31 namespace diameter {
32
33 namespace helpers {
34
35 namespace ericsson {
36
37
38 struct functions {
39
40   // getters & helpers
41   /**
42   * SCAP-Subscription-Id-Data for provided SCAP-Subscription-Id-Type within a command.
43   * Returns empty string when not found.
44   */
45   static std::string getSCAPSubscriptionIdData(const anna::DataBlock &,
46       int scapSubscriptionIdType = AVPVALUES__SCAP_Subscription_Id_Type::END_USER_MSISDN) noexcept(false);
47 };
48
49
50 }
51 }
52 }
53 }
54
55
56 #endif
57