ANNA Suite  2020b
Multipurpose development suite for Telco applications
Public Member Functions | List of all members
anna::diameter::codec::basetypes::UTF8String Class Reference

#include <UTF8String.hpp>

Inheritance diagram for anna::diameter::codec::basetypes::UTF8String:
Inheritance graph
[legend]
Collaboration diagram for anna::diameter::codec::basetypes::UTF8String:
Collaboration graph
[legend]

Public Member Functions

virtual ~UTF8String ()
 
std::string getFormatName () const
 
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)
 
virtual std::string asString () 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 UTF8String container

Constructor & Destructor Documentation

◆ ~UTF8String()

virtual anna::diameter::codec::basetypes::UTF8String::~UTF8String ( )
inlinevirtual
39 {;}

Member Function Documentation

◆ decode()

void anna::diameter::codec::basetypes::UTF8String::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::codec::basetypes::UTF8String::getFormatName ( ) const
inlinevirtual

Gets the avp data format name

Returns
avp data format name

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

Reimplemented in anna::diameter::helpers::tid::codectypes::Date.

43 { return "UTF8String"; }
Here is the call graph for this function:

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