EpcTools
An event based multi-threaded C++ development framework.
|
A class wrapper around a freeDiameter AVP object. More...
#include <efd.h>
Public Member Functions | |
FDAvp (FDDictionaryEntryAVP &de, Bool dedel=false) | |
Class constructor. More... | |
FDAvp (FDDictionaryEntryAVP &de, struct avp *a, Bool dedel=false) | |
Class constructor. More... | |
~FDAvp () | |
Class destructor. More... | |
FDAvp & | add (FDAvp &avp) |
Adds an AVP to this grouped AVP. More... | |
Bool | isValid () |
Indicates if this AVP object is valid. More... | |
FDAvp & | add (FDDictionaryEntryAVP &de, int32_t v) |
Adds an int32_t AVP to this grouped AVP. More... | |
FDAvp & | add (FDDictionaryEntryAVP &de, int64_t v) |
Adds an int64_t AVP to this grouped AVP. More... | |
FDAvp & | add (FDDictionaryEntryAVP &de, uint32_t v) |
Adds an uint32_t AVP to this grouped AVP. More... | |
FDAvp & | add (FDDictionaryEntryAVP &de, uint64_t v) |
Adds an uint64_t AVP to this grouped AVP. More... | |
FDAvp & | add (FDDictionaryEntryAVP &de, float v) |
Adds a float AVP to this grouped AVP. More... | |
FDAvp & | add (FDDictionaryEntryAVP &de, double v) |
Adds a double AVP to this grouped AVP. More... | |
FDAvp & | add (FDDictionaryEntryAVP &de, const char *v) |
Adds a string AVP to this grouped AVP. More... | |
FDAvp & | add (FDDictionaryEntryAVP &de, const std::string &v) |
Adds a string to this grouped AVP. More... | |
FDAvp & | add (FDDictionaryEntryAVP &de, const char *v, size_t len) |
Adds an octet string AVP to this grouped AVP. More... | |
FDAvp & | add (FDDictionaryEntryAVP &de, const uint8_t *v, size_t len) |
Adds an octet string AVP to this grouped AVP. More... | |
FDAvp & | add (FDDictionaryEntryAVP &de, const ETime &v) |
Adds a time AVP to this grouped AVP. More... | |
FDAvp & | operator= (int32_t v) |
Assigns an int32_t value to this AVP. More... | |
FDAvp & | operator= (int64_t v) |
Assigns an int64_t value to this AVP. More... | |
FDAvp & | operator= (uint32_t v) |
Assigns an uint32_t value to this AVP. More... | |
FDAvp & | operator= (uint64_t v) |
Assigns an uint64_t value to this AVP. More... | |
FDAvp & | operator= (float v) |
Assigns a float value to this AVP. More... | |
FDAvp & | operator= (double v) |
Assigns a double value to this AVP. More... | |
FDAvp & | operator= (const char *v) |
Assigns a string value to this AVP. More... | |
FDAvp & | operator= (const std::string &v) |
Assigns a string value to this AVP. More... | |
FDAvp & | operator= (const ETime &v) |
Assigns a time value to this AVP. More... | |
Bool | get (int32_t &v) |
Retrieves an int32_t AVP value. Returns True if the value is successfully retrieved. More... | |
Bool | get (uint32_t &v) |
Retrieves an uint32_t AVP value. Returns True if the value is successfully retrieved. More... | |
Bool | get (uint64_t &v) |
Retrieves an uint64_t AVP value. Returns True if the value is successfully retrieved. More... | |
Bool | get (float &v) |
Retrieves a float AVP value. More... | |
Bool | get (double &v) |
Retrieves a double AVP value. More... | |
Bool | get (int64_t &v) |
Retrieves an int64_t AVP value. More... | |
Bool | get (std::string &v) |
Retrieves a string AVP value. More... | |
Bool | get (char *data, size_t &len) |
Retrieves an octet string AVP value. More... | |
Bool | get (uint8_t *data, size_t &len) |
Retrieves an octet string AVP value. More... | |
Bool | get (sSS &ss) |
Retrieves an IP address AVP value. More... | |
Bool | get (ETime &v) |
Retrieves a time AVP value. More... | |
FDAvp & | set (int32_t v) |
Assigns an int32_t value to this AVP. More... | |
FDAvp & | set (uint32_t v) |
Assigns an uint32_t value to this AVP. More... | |
FDAvp & | set (uint64_t v) |
Assigns an uint64_t value to this AVP. More... | |
FDAvp & | set (float v) |
Assigns a float value to this AVP. More... | |
FDAvp & | set (double v) |
Assigns a double value to this AVP. More... | |
FDAvp & | set (const char *v) |
Assigns a string value to this AVP. More... | |
FDAvp & | set (const uint8_t *v, size_t len) |
Assigns an octet string value to this AVP. More... | |
FDAvp & | set (const std::string &v) |
Assigns a string value to this AVP. More... | |
FDAvp & | set (int64_t v) |
Assigns an int64_t value to this AVP. More... | |
FDAvp & | set (const char *v, size_t len) |
Assigns an octet string value to this AVP. More... | |
FDAvp & | set (const ETime &v) |
Assigns a time value to this AVP. More... | |
FDAvp | getNext (Bool &found) |
Returns the next AVP from a grouped AVP. More... | |
FDAvp | getChild (Bool &found) |
Returns the first child AVP of this grouped AVP. More... | |
struct avp * | getAvp () |
Returns the underlying freeDiameter AVP object. More... | |
union avp_value * | getAvpValue () |
Returns the underlying freeDiameter AVP value object. More... | |
FDAvp & | setAvp (struct avp *a) |
Sets the freeDiameter AVP object that this object is associated with. More... | |
FDAvp & | add (FDExtractor &e) |
Adds the AVP's associated with the FDExtractor object to this AVP. More... | |
FDAvp & | add (FDExtractorList &el) |
Adds the list of AVP's associated with the FDExtractorList object to this AVP. More... | |
FDAvp & | add (FDExtractorAvp &ea) |
Adds the AVP's associated with the FDExtractorAvp object to this AVP. More... | |
FDAvp & | add (FDExtractorAvpList &eal) |
Adds the list of AVP's associated with the FDExtractorAvpList object to this AVP. More... | |
FDAvp & | addJson (const char *json) |
Adds the AVP's represented in a JSON string. More... | |
FDAvp & | addJson (const std::string &json) |
Adds the AVP's represented in a JSON string. More... | |
Bool | getJson (std::string &json) |
Retrieves the JSON string representing the AVP values for this AVP. More... | |
Void | dump () |
Prints the contents of this AVP to the screen. More... | |
FDDictionaryEntryAVP & | getDictionaryEntry () |
Retrieves the dictionary entry associated with this FDAvp object. More... | |
Protected Member Functions | |
Void | addTo (msg_or_avp *reference) |
Adds the contents of the message or avp to this AVP object. More... | |
A class wrapper around a freeDiameter AVP object.
FDAvp::FDAvp | ( | FDDictionaryEntryAVP & | de, |
Bool | dedel = false |
||
) |
Class constructor.
de | the dictionary entry for the AVP. |
dedel | instructs the destructor to delete the dictionary entry. |
FDException |
FDAvp::FDAvp | ( | FDDictionaryEntryAVP & | de, |
struct avp * | a, | ||
Bool | dedel = false |
||
) |
Class constructor.
de | the dictionary entry for the AVP. |
a | the freeDiameter AVP pointer. |
dedel | instructs the destructor to delete the dictionary entry. |
FDException |
FDAvp::~FDAvp | ( | ) |
Class destructor.
Adds an AVP to this grouped AVP.
avp | the AVP to add. |
FDException |
|
inline |
Adds a string AVP to this grouped AVP.
de | the dictionary entry for the AVP to add. |
v | the value to add. |
FDException |
|
inline |
Adds an octet string AVP to this grouped AVP.
de | the dictionary entry for the AVP to add. |
v | the value to add. |
len | the length of the octet string. |
FDException |
|
inline |
Adds a time AVP to this grouped AVP.
de | the dictionary entry for the AVP to add. |
v | the value to add. |
FDException |
|
inline |
Adds a string to this grouped AVP.
de | the dictionary entry for the AVP to add. |
v | the value to add. |
FDException |
|
inline |
Adds an octet string AVP to this grouped AVP.
de | the dictionary entry for the AVP to add. |
v | the value to add. |
len | the length of the octet string. |
FDException |
|
inline |
Adds a double AVP to this grouped AVP.
de | the dictionary entry for the AVP to add. |
v | the value to add. |
FDException |
|
inline |
Adds a float AVP to this grouped AVP.
de | the dictionary entry for the AVP to add. |
v | the value to add. |
FDException |
|
inline |
Adds an int32_t AVP to this grouped AVP.
de | the dictionary entry for the AVP to add. |
v | the value to add. |
FDException |
|
inline |
Adds an int64_t AVP to this grouped AVP.
de | the dictionary entry for the AVP to add. |
v | the value to add. |
FDException |
|
inline |
Adds an uint32_t AVP to this grouped AVP.
de | the dictionary entry for the AVP to add. |
v | the value to add. |
FDException |
|
inline |
Adds an uint64_t AVP to this grouped AVP.
de | the dictionary entry for the AVP to add. |
v | the value to add. |
FDException |
FDAvp & FDAvp::add | ( | FDExtractor & | e | ) |
Adds the AVP's associated with the FDExtractor object to this AVP.
e | the FDExtractor object reference to copy. |
FDException |
FDAvp & FDAvp::add | ( | FDExtractorAvp & | ea | ) |
Adds the AVP's associated with the FDExtractorAvp object to this AVP.
ea | the FDExtractorAvp object reference to copy. |
FDException |
FDAvp & FDAvp::add | ( | FDExtractorAvpList & | eal | ) |
Adds the list of AVP's associated with the FDExtractorAvpList object to this AVP.
eal | the FDExtractorAvpList object reference to copy. |
FDException |
FDAvp & FDAvp::add | ( | FDExtractorList & | el | ) |
Adds the list of AVP's associated with the FDExtractorList object to this AVP.
el | the FDExtractorList object reference to copy. |
FDException |
FDAvp & FDAvp::addJson | ( | const char * | json | ) |
Adds the AVP's represented in a JSON string.
json | the JSON string containing the AVP values to add. |
FDException |
|
inline |
Adds the AVP's represented in a JSON string.
json | the JSON string containing the AVP values to add. |
FDException |
|
protected |
Adds the contents of the message or avp to this AVP object.
reference | the message or avp to add. |
FDException |
Void FDAvp::dump | ( | ) |
Prints the contents of this AVP to the screen.
Bool FDAvp::get | ( | char * | data, |
size_t & | len | ||
) |
Retrieves an octet string AVP value.
data | the variable to populate. |
len | the maximum length of the octet string. |
|
inline |
Retrieves a double AVP value.
v | the variable to populate. |
Bool FDAvp::get | ( | ETime & | v | ) |
Retrieves a time AVP value.
v | the variable to populate. |
FDException |
|
inline |
Retrieves a float AVP value.
v | the variable to populate. |
|
inline |
Retrieves an int32_t AVP value. Returns True if the value is successfully retrieved.
v | the variable to populate. |
Bool FDAvp::get | ( | int64_t & | v | ) |
Retrieves an int64_t AVP value.
v | the variable to populate. |
Bool FDAvp::get | ( | sSS & | ss | ) |
Retrieves an IP address AVP value.
ss | the variable to populate. |
Bool FDAvp::get | ( | std::string & | v | ) |
Retrieves a string AVP value.
v | the variable to populate. |
|
inline |
Retrieves an uint32_t AVP value. Returns True if the value is successfully retrieved.
v | the variable to populate. |
|
inline |
Retrieves an uint64_t AVP value. Returns True if the value is successfully retrieved.
v | the variable to populate. |
Bool FDAvp::get | ( | uint8_t * | data, |
size_t & | len | ||
) |
Retrieves an octet string AVP value.
data | the variable to populate. |
len | the maximum length of the octet string. |
|
inline |
|
inline |
FDAvp FDAvp::getChild | ( | Bool & | found | ) |
|
inline |
Bool FDAvp::getJson | ( | std::string & | json | ) |
FDAvp FDAvp::getNext | ( | Bool & | found | ) |
|
inline |
|
inline |
Assigns a string value to this AVP.
v | the value to add. |
FDException |
Assigns a time value to this AVP.
v | the value to add. |
FDException |
|
inline |
Assigns a string value to this AVP.
v | the value to add. |
FDException |
|
inline |
Assigns a double value to this AVP.
v | the value to add. |
FDException |
|
inline |
Assigns a float value to this AVP.
v | the value to add. |
FDException |
|
inline |
Assigns an int32_t value to this AVP.
v | the value to add. |
FDException |
|
inline |
Assigns an int64_t value to this AVP.
v | the value to add. |
FDException |
|
inline |
Assigns an uint32_t value to this AVP.
v | the value to add. |
FDException |
|
inline |
Assigns an uint64_t value to this AVP.
v | the value to add. |
FDException |
|
inline |
Assigns a string value to this AVP.
v | the value to assign. |
FDException |
FDAvp & FDAvp::set | ( | const char * | v, |
size_t | len | ||
) |
Assigns an octet string value to this AVP.
v | the value to assign. |
len | the length of the octet string. |
FDException |
|
inline |
Assigns a string value to this AVP.
v | the value to assign. |
FDException |
|
inline |
Assigns an octet string value to this AVP.
v | the value to assign. |
len | the length of the octet string. |
FDException |
|
inline |
Assigns a double value to this AVP.
v | the value to assign. |
FDException |
|
inline |
Assigns a float value to this AVP.
v | the value to assign. |
FDException |
|
inline |
Assigns an int32_t value to this AVP.
v | the value to assign. |
FDException |
FDAvp & FDAvp::set | ( | int64_t | v | ) |
Assigns an int64_t value to this AVP.
v | the value to assign. |
FDException |
|
inline |
Assigns an uint32_t value to this AVP.
v | the value to assign. |
FDException |
|
inline |
Assigns an uint64_t value to this AVP.
v | the value to assign. |
FDException |
FDAvp & FDAvp::setAvp | ( | struct avp * | a | ) |