ANNA Suite  2020b
Multipurpose development suite for Telco applications
Classes | Public Member Functions | Friends | List of all members
anna::diameter::stack::Vendor Class Reference

#include <Vendor.hpp>

Classes

struct  Code
 

Public Member Functions

 Vendor ()
 
 ~Vendor ()
 
S32 getId (void) const
 
const S8getName (void) const
 
bool isVendorSpecific (void) const
 
std::string asString (void) const
 
anna::xml::NodeasXML (anna::xml::Node *parent) const
 
void setId (const S32 &id) noexcept(false)
 
void setName (const std::string &n) noexcept(false)
 

Friends

bool operator== (const Vendor &v1, const Vendor &v2)
 

Detailed Description

Vendor data container

Constructor & Destructor Documentation

◆ Vendor()

anna::diameter::stack::Vendor::Vendor ( )
inline
76 {};

◆ ~Vendor()

anna::diameter::stack::Vendor::~Vendor ( )
inline
77 {};

Member Function Documentation

◆ asString()

std::string anna::diameter::stack::Vendor::asString ( void  ) const

◆ asXML()

anna::xml::Node* anna::diameter::stack::Vendor::asXML ( anna::xml::Node parent) const

◆ getId()

S32 anna::diameter::stack::Vendor::getId ( void  ) const
inline
81 { return a_id; }

◆ getName()

const S8* anna::diameter::stack::Vendor::getName ( void  ) const
inline
82 { return a_name.c_str(); }

◆ isVendorSpecific()

bool anna::diameter::stack::Vendor::isVendorSpecific ( void  ) const
inline
85 { return (a_id > 0); }

◆ setId()

void anna::diameter::stack::Vendor::setId ( const S32 id)
inlinenoexcept
95  {
96  if(id < 0) throw anna::RuntimeException("Negative vendor-id not allowed", ANNA_FILE_LOCATION);
97 
98  a_id = id;
99  }
#define ANNA_FILE_LOCATION
Definition: defines.hpp:23
Definition: RuntimeException.hpp:23

◆ setName()

void anna::diameter::stack::Vendor::setName ( const std::string &  n)
inlinenoexcept
101  {
102  if(n == "") throw anna::RuntimeException("Empty vendor-name string not allowed", ANNA_FILE_LOCATION);
103 
104  a_name = n;
105  }
#define ANNA_FILE_LOCATION
Definition: defines.hpp:23
Definition: RuntimeException.hpp:23

Friends And Related Function Documentation

◆ operator==

bool operator== ( const Vendor v1,
const Vendor v2 
)
friend
92 { return ((v1.getId() == v2.getId())); }

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