ANNA Suite  2020b
Multipurpose development suite for Telco applications
Message.hpp
Go to the documentation of this file.
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_app_base_Message_hpp
10 #define anna_diameter_app_base_Message_hpp
11 
12 
13 // Local
16 
17 // AVPID's
20 
22 
23 
24 
25 //------------------------------------------------------------------------------
26 //---------------------------------------------------------------------- #define
27 //------------------------------------------------------------------------------
28 
29 
30 
31 namespace anna {
32 
33 namespace diameter {
34 
35 namespace codec {
36 using namespace basetypes;
37 }
38 
39 namespace app {
40 
41 namespace base {
42 
43 
48 
49 public:
50 
56  ASSERT_APP_GETAVP(return getAvp(helpers::base::AVPID__Session_Id)->getUTF8String());
57  }
58 
64  ASSERT_APP_GETAVP(return getAvp(helpers::base::AVPID__Destination_Host)->getDiameterIdentity());
65  }
66 
72  ASSERT_APP_GETAVP(return getAvp(helpers::base::AVPID__Destination_Realm)->getDiameterIdentity());
73  }
74 
80  ASSERT_APP_GETAVP(return getAvp(helpers::radius::AVPID__User_Name)->getUTF8String());
81  }
82 
88  ASSERT_APP_GETAVP(return getAvp(helpers::base::AVPID__Termination_Cause)->getEnumerated());
89  }
90 
96  ASSERT_APP_GETAVP(return getAvp(helpers::base::AVPID__Auth_Application_Id)->getUnsigned32());
97  }
98 
104  ASSERT_APP_GETAVP(return getAvp(helpers::radius::AVPID__Event_Timestamp)->getTime());
105  }
106 };
107 
108 }
109 }
110 }
111 }
112 
113 #endif
Definition: Exception.hpp:26
const Unsigned32 * getAuthApplicationId(anna::Exception::Mode::_v emode=anna::Exception::Mode::Throw) noexcept(false)
Definition: Message.hpp:95
_v
Definition: Exception.hpp:26
const UTF8String * getSessionId(anna::Exception::Mode::_v emode=anna::Exception::Mode::Throw) noexcept(false)
Definition: Message.hpp:55
const UTF8String * getUserName(anna::Exception::Mode::_v emode=anna::Exception::Mode::Throw) noexcept(false)
Definition: Message.hpp:79
Definition: Message.hpp:74
#define ASSERT_APP_GETAVP(source)
Definition: defines.hpp:15
const DiameterIdentity * getDestinationRealm(anna::Exception::Mode::_v emode=anna::Exception::Mode::Throw) noexcept(false)
Definition: Message.hpp:71
Definition: DiameterIdentity.hpp:30
const DiameterIdentity * getDestinationHost(anna::Exception::Mode::_v emode=anna::Exception::Mode::Throw) noexcept(false)
Definition: Message.hpp:63
Definition: Message.hpp:47
Definition: app.hpp:12
const Time * getEventTimestamp(anna::Exception::Mode::_v emode=anna::Exception::Mode::Throw) noexcept(false)
Definition: Message.hpp:103
const Enumerated * getTerminationCause(anna::Exception::Mode::_v emode=anna::Exception::Mode::Throw) noexcept(false)
Definition: Message.hpp:87