ANNA Suite  2020b
Multipurpose development suite for Telco applications
Public Member Functions | List of all members
anna::diameter::helpers::tme::codectypes::ISDNNumber Class Reference

#include <ISDNNumber.hpp>

Inheritance diagram for anna::diameter::helpers::tme::codectypes::ISDNNumber:
Inheritance graph
[legend]
Collaboration diagram for anna::diameter::helpers::tme::codectypes::ISDNNumber:
Collaboration graph
[legend]

Public Member Functions

const isup_number_tgetIsupNumber () const
 
void setIsupNumber (const isup_number_t &isupNumber)
 
std::string getFormatName () const
 
std::string asString () noexcept(false)
 
void decode (const char *buffer, const int size) noexcept(false)
 
- Public Member Functions inherited from anna::diameter::codec::basetypes::OctetString
virtual ~OctetString ()
 
const std::string & getValue () const
 
void setValue (const std::string &value)
 
virtual int getSize () const
 
- Public Member Functions inherited from anna::diameter::codec::basetypes::AvpData
 AvpData ()
 
void code (char *buffer, int &size) noexcept(false)
 
virtual std::string asPrintableString () noexcept(false)
 
std::string asDataBlockString () noexcept(false)
 
std::string asHexString () noexcept(false)
 
void fromPrintableString (const char *printableString) noexcept(false)
 
void fromHexString (const std::string &hexString) noexcept(false)
 

Additional Inherited Members

- Protected Member Functions inherited from anna::diameter::codec::basetypes::OctetString
void assertPrintable () const noexcept(false)
 
- Protected Member Functions inherited from anna::diameter::codec::basetypes::AvpData
std::string assertPrintable (const char *buffer, const int size) const noexcept(false)
 

Detailed Description

Diameter ISDNNumber container Internal format is based in Calling Party Number (Q763)

Member Function Documentation

◆ asString()

std::string anna::diameter::helpers::tme::codectypes::ISDNNumber::asString ( void  )
inlinevirtualnoexcept

Class string representation Default implementation invokes raw DataBlock 'asString' method, but it should be different specially with complex application data types.

Returns
String with class content

Reimplemented from anna::diameter::codec::basetypes::AvpData.

70  {
71  return a_isupNumber.asString(false /* calling party number */);
72  }
std::string asString(bool calledOrCalling)
Definition: defines.hpp:334
Here is the call graph for this function:

◆ decode()

void anna::diameter::helpers::tme::codectypes::ISDNNumber::decode ( const char *  buffer,
const int  size 
)
virtualnoexcept

Decodes provided buffer/size

Derived types must invoke base class 'decode()' at the end in order to keep coherence with parent members. This base class decodification actually sets the base class members with the same buffer provided, being more comfortable than using base class setters.

Parameters
bufferRaw avp data
sizeRaw avp data length

Reimplemented from anna::diameter::codec::basetypes::OctetString.

◆ getFormatName()

std::string anna::diameter::helpers::tme::codectypes::ISDNNumber::getFormatName ( ) const
inlinevirtual

Gets the avp data format name

Returns
avp data format name

Reimplemented from anna::diameter::codec::basetypes::OctetString.

66 { return "ISDNNumber"; }

◆ getIsupNumber()

const isup_number_t& anna::diameter::helpers::tme::codectypes::ISDNNumber::getIsupNumber ( ) const
inline

Gets the Q763 ISUP Number

Returns
Q763 ISUP Number
53 { return a_isupNumber; }

◆ setIsupNumber()

void anna::diameter::helpers::tme::codectypes::ISDNNumber::setIsupNumber ( const isup_number_t isupNumber)
inline

Sets the Q763 ISUP Number

Parameters
isupNumberQ763 ISUP Number
60 { a_isupNumber = isupNumber; updateBasic(); }

The documentation for this class was generated from the following file: