#include <Format.hpp>
◆ Format()
anna::diameter::stack::Format::Format |
( |
const Dictionary * |
d = NULL | ) |
|
|
inline |
◆ ~Format()
anna::diameter::stack::Format::~Format |
( |
| ) |
|
|
inline |
◆ asString()
std::string anna::diameter::stack::Format::asString |
( |
void |
| ) |
const |
Class string representation
- Returns
- String with class content
◆ asXML()
Class xml representation
- Returns
- XML document with relevant information for this instance.
◆ getBasicType()
Gets the diameter basic format type from which a derived type inherit, or basic type itself for non-derived
- Returns
- Diameter basic format type
◆ getName()
const std::string& anna::diameter::stack::Format::getName |
( |
void |
| ) |
const |
|
inline |
Gets the format type name
- Returns
- Format type name
◆ getParent()
const Format* anna::diameter::stack::Format::getParent |
( |
void |
| ) |
const |
Gets the diameter parent type reference
- Returns
- Diameter parent type reference, NULL for diameter basic format types (and reserved like 'Any, Unknown')
◆ getParentName()
const std::string& anna::diameter::stack::Format::getParentName |
( |
void |
| ) |
const |
|
inline |
Gets the format parent type name
- Returns
- Format parent type name, empty string for diameter basic format types (and reserved like 'Any, Unknown')
76 {
return a_parentName; }
◆ initialize()
void anna::diameter::stack::Format::initialize |
( |
const Dictionary * |
d = NULL | ) |
|
|
inline |
Initializes the class content
◆ isAddress()
bool anna::diameter::stack::Format::isAddress |
( |
| ) |
const |
|
inline |
- Returns
- The format is 'Address'
◆ isAny()
bool anna::diameter::stack::Format::isAny |
( |
| ) |
const |
|
inline |
- Returns
- The format is 'Any' (generic AVP)
◆ isApplicationSpecific()
bool anna::diameter::stack::Format::isApplicationSpecific |
( |
void |
| ) |
const |
|
inline |
The diameter format is application-specific or a format type name not registered on dictionary
- Returns
- The format is application-specific
◆ isBasic()
bool anna::diameter::stack::Format::isBasic |
( |
void |
| ) |
const |
|
inline |
The diameter format is a basic type: (OctetString, Integer32, Integer64, Unsigned32, Unsigned64, Float32, Float64, Grouped)
- Returns
- The format is basic
◆ isDerived()
bool anna::diameter::stack::Format::isDerived |
( |
void |
| ) |
const |
|
inline |
The diameter format is a derived type
- Returns
- The format is derived
92 {
return (a_parentName !=
""); }
◆ isDiameterIdentity()
bool anna::diameter::stack::Format::isDiameterIdentity |
( |
| ) |
const |
|
inline |
- Returns
- The format is 'DiameterIdentity'
◆ isDiameterURI()
bool anna::diameter::stack::Format::isDiameterURI |
( |
| ) |
const |
|
inline |
- Returns
- The format is 'DiameterURI'
◆ isEnumerated()
bool anna::diameter::stack::Format::isEnumerated |
( |
| ) |
const |
|
inline |
- Returns
- The format is 'Enumerated'
◆ isFloat32()
bool anna::diameter::stack::Format::isFloat32 |
( |
| ) |
const |
|
inline |
- Returns
- The format is 'Float32'
◆ isFloat64()
bool anna::diameter::stack::Format::isFloat64 |
( |
| ) |
const |
|
inline |
- Returns
- The format is 'Float64'
◆ isGrouped()
bool anna::diameter::stack::Format::isGrouped |
( |
| ) |
const |
|
inline |
- Returns
- The format is 'Grouped'
◆ isInteger32()
bool anna::diameter::stack::Format::isInteger32 |
( |
| ) |
const |
|
inline |
- Returns
- The format is 'Integer32'
◆ isInteger64()
bool anna::diameter::stack::Format::isInteger64 |
( |
| ) |
const |
|
inline |
- Returns
- The format is 'Integer64'
◆ isIPFilterRule()
bool anna::diameter::stack::Format::isIPFilterRule |
( |
| ) |
const |
|
inline |
- Returns
- The format is 'IPFilterRule'
◆ isOctetString()
bool anna::diameter::stack::Format::isOctetString |
( |
| ) |
const |
|
inline |
- Returns
- The format is 'Unknown'
-
The format is 'OctetString'
◆ isQoSFilterRule()
bool anna::diameter::stack::Format::isQoSFilterRule |
( |
| ) |
const |
|
inline |
- Returns
- The format is 'QoSFilterRule'
◆ isReserved()
bool anna::diameter::stack::Format::isReserved |
( |
void |
| ) |
const |
|
inline |
The diameter format is reserved ('Any' for generic AVP, 'Unknown' for not registered avps)
- Returns
- The format is reserved
◆ isRFC3588()
bool anna::diameter::stack::Format::isRFC3588 |
( |
void |
| ) |
const |
|
inline |
The diameter format belongs to RFC3588 diameter format family: (OctetString, Integer32, Integer64, Unsigned32, Unsigned64, Float32, Float64, Grouped, Address, Time, UTF8String, DiameterIdentity, DiameterURI, Enumerated, IPFilterRule, QoSFilterRule)
- Returns
- The format belongs to RFC3588
◆ isTime()
bool anna::diameter::stack::Format::isTime |
( |
| ) |
const |
|
inline |
- Returns
- The format is 'Time'
◆ isUnsigned32()
bool anna::diameter::stack::Format::isUnsigned32 |
( |
| ) |
const |
|
inline |
- Returns
- The format is 'Unsigned32'
◆ isUnsigned64()
bool anna::diameter::stack::Format::isUnsigned64 |
( |
| ) |
const |
|
inline |
- Returns
- The format is 'Unsigned64'
◆ isUTF8String()
bool anna::diameter::stack::Format::isUTF8String |
( |
| ) |
const |
|
inline |
- Returns
- The format is 'UTF8String'
◆ setName()
void anna::diameter::stack::Format::setName |
( |
const char * |
name | ) |
|
|
inlinenoexcept |
Sets Avp format type name
- Parameters
-
#define ANNA_FILE_LOCATION
Definition: defines.hpp:23
Definition: RuntimeException.hpp:23
◆ setParentName()
void anna::diameter::stack::Format::setParentName |
( |
const std::string & |
parentName | ) |
|
|
noexcept |
Sets Diameter-basic avp format parent
- Parameters
-
parent | Diameter-basic avp format parent |
◆ setRFC3588()
Sets RFC3588 Avp format type name
- Parameters
-
rfc3588Format | RFC3588 format type |
◆ operator!=
- Returns
- Difference between two class instances
195 {
return !(f1 == f2); }
◆ operator==
- Returns
- Equality between two class instances
190 {
return ((f1.getName() == f2.getName())); }
The documentation for this class was generated from the following file: