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

#include <Message.hpp>

Inheritance diagram for anna::diameter::codec::tme::Message:
Inheritance graph
[legend]
Collaboration diagram for anna::diameter::codec::tme::Message:
Collaboration graph
[legend]

Public Member Functions

 Message (Engine *engine=NULL)
 
 Message (CommandId id, Engine *engine=NULL)
 
- Public Member Functions inherited from anna::diameter::codec::Message
 Message (Engine *engine=NULL)
 
 Message (CommandId id, Engine *engine=NULL)
 
void setEngine (Engine *engine)
 
virtual ~Message ()
 
void setId (CommandId id) noexcept(false)
 
void setId (const char *name) noexcept(false)
 
void setVersion (U8 version)
 
void setProxiableBit (bool activate=true)
 
void setErrorBit (bool activate=true)
 
void setPotentiallyReTransmittedMessageBit (bool activate=true)
 
void setApplicationId (U32 aid) noexcept(false)
 
void setHopByHop (U32 hbh)
 
void setEndToEnd (U32 ete)
 
void setHeaderToAnswer (const Message &request) noexcept(false)
 
void setStandardToAnswer (const Message &request, const std::string &originHost, const std::string &originRealm, int resultCode=helpers::base::AVPVALUES__Result_Code::DIAMETER_SUCCESS) noexcept(false)
 
void setResultCode (int rc=helpers::base::AVPVALUES__Result_Code::DIAMETER_SUCCESS) noexcept(false)
 
int getResultCode () const
 
AvpaddAvp (AvpId id) noexcept(false)
 
AvpaddAvp (const char *name) noexcept(false)
 
AvpaddAvp (Avp *avp)
 
bool removeAvp (AvpId id, int ocurrence=1) noexcept(false)
 
bool removeAvp (const char *name, int ocurrence=1) noexcept(false)
 
virtual void clear (bool resetEngine=true) noexcept(false)
 
void decode (const anna::DataBlock &db, Message *ptrAnswer=NULL) noexcept(false)
 
void fix ()
 
bool valid (Message *ptrAnswer=NULL) const noexcept(false)
 
void fromXML (const anna::xml::Node *messageNode) noexcept(false)
 
void loadXMLFile (const std::string &xmlPathFile) noexcept(false)
 
void loadXMLString (const std::string &xmlString) noexcept(false)
 
const CommandIdgetId () const
 
U8 getVersion () const
 
bool isRequest () const
 
bool isAnswer () const
 
const U32getApplicationId () const
 
const U32getHopByHop () const
 
const U32getEndToEnd () const
 
const anna::diameter::stack::CommandgetStackCommand () const noexcept(false)
 
bool requestBit () const
 
bool proxiableBit () const
 
bool errorBit () const
 
bool potentiallyReTransmittedMessageBit () const
 
const AvpgetAvp (AvpId id, int ocurrence=1, anna::Exception::Mode::_v emode=anna::Exception::Mode::Throw) const noexcept(false)
 
AvpgetAvp (AvpId id, int ocurrence=1, anna::Exception::Mode::_v emode=anna::Exception::Mode::Throw) noexcept(false)
 
const AvpgetAvp (const char *name, int ocurrence=1, anna::Exception::Mode::_v emode=anna::Exception::Mode::Throw) const noexcept(false)
 
AvpgetAvp (const char *name, int ocurrence=1, anna::Exception::Mode::_v emode=anna::Exception::Mode::Throw) noexcept(false)
 
int countAvp (AvpId id) const
 
int countAvp (const char *name) const noexcept(false)
 
int countChilds () const
 
const anna::DataBlockcode () noexcept(false)
 
anna::xml::NodeasXML (anna::xml::Node *parent) const
 
std::string asXMLString (bool normalize=false) const
 
bool isLike (const std::string &pattern) const
 

Protected Member Functions

virtual void initialize ()
 
- Protected Member Functions inherited from anna::diameter::codec::Message
virtual EnginegetEngine () const noexcept(false)
 

Additional Inherited Members

- Static Public Attributes inherited from anna::diameter::codec::Message
static const int HeaderLength
 
static const U8 RBitMask
 
static const U8 PBitMask
 
static const U8 EBitMask
 
static const U8 TBitMask
 
- Protected Attributes inherited from anna::diameter::codec::Message
Enginea_engine
 

Detailed Description

Diameter TME message generic container Manages tme-specific formats (Unsigned16, ISDNAddress, ISDNNumber)

Constructor & Destructor Documentation

◆ Message() [1/2]

anna::diameter::codec::tme::Message::Message ( Engine engine = NULL)
inline

Default constructor

Parameters
engineCodec engine used
Definition: Message.hpp:74

◆ Message() [2/2]

anna::diameter::codec::tme::Message::Message ( CommandId  id,
Engine engine = NULL 
)
inline

Identified constructor

Parameters
idCommand identifier as pair (code,request-indicator).
engineCodec engine used
64 : anna::diameter::codec::Message(id, engine) {;}
Definition: Message.hpp:74

Member Function Documentation

◆ initialize()

virtual void anna::diameter::codec::tme::Message::initialize ( )
protectedvirtual

Codec Engine getter: avoids have to create base engine when using its child Initializes Message class information. Any reimplementation must first invoke base class method.

Reimplemented from anna::diameter::codec::Message.


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