ANNA Suite  2020b
Multipurpose development suite for Telco applications
ISDNAddress.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_helpers_tme_codectypes_ISDNAddress_hpp
10 #define anna_diameter_helpers_tme_codectypes_ISDNAddress_hpp
11 
12 
13 // Local
15 
16 
17 namespace anna {
18 
19 namespace diameter {
20 
21 namespace codec {
22 class Avp;
23 }
24 
25 namespace helpers {
26 
27 namespace tme {
28 
29 namespace codectypes {
30 
36 
37  isup_number_t a_isupNumber;
38 
39  // Only for derived diameter type:
40  void updateBasic() noexcept(false);
41 
42 public:
43 
44  // Class-specific ////////////////////////////////////////////////////////////////////////////////////
45  //
51  const isup_number_t& getIsupNumber() const { return a_isupNumber; }
52 
58  void setIsupNumber(const isup_number_t& isupNumber) { a_isupNumber = isupNumber; updateBasic(); }
59  //
61 
62  // gets
63 
64  std::string getFormatName() const { return "ISDNAddress"; }
65 
66 
67  // helpers
68 
69  std::string asString() noexcept(false) {
70  return a_isupNumber.asString(true /* called party number */);
71  }
72 
73 
74  // sets
75 
76  void decode(const char* buffer, const int size) noexcept(false);
77 
78 
79  // exports /////////////////////////////
80  using AvpData::getSize;
81  using AvpData::code;
82  //using OctetString::asPrintableString;
84  //using OctetString::asString;
86  //using OctetString::decode;
89 
90 };
91 
92 }
93 }
94 }
95 }
96 }
97 
98 #endif
99 
void fromPrintableString(const char *printableString) noexcept(false)
Definition: AvpData.hpp:224
std::string asString() noexcept(false)
Definition: ISDNAddress.hpp:69
Definition: OctetString.hpp:30
void setIsupNumber(const isup_number_t &isupNumber)
Definition: ISDNAddress.hpp:58
std::string asDataBlockString() noexcept(false)
Definition: AvpData.hpp:171
std::string asString(bool calledOrCalling)
Definition: defines.hpp:334
Definition: defines.hpp:152
std::string asHexString() noexcept(false)
Definition: AvpData.hpp:196
Definition: app.hpp:12
const isup_number_t & getIsupNumber() const
Definition: ISDNAddress.hpp:51
void code(char *buffer, int &size) noexcept(false)
Definition: AvpData.hpp:147
void fromHexString(const std::string &hexString) noexcept(false)
Definition: AvpData.hpp:240
std::string getFormatName() const
Definition: ISDNAddress.hpp:64