EpcTools
An event based multi-threaded C++ development framework.
|
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <arpa/inet.h>
#include <string>
#include <sstream>
#include <stdexcept>
#include <iostream>
#include <iomanip>
#include <unordered_map>
#include "freeDiameter/freeDiameter-host.h"
#include "freeDiameter/libfdcore.h"
#include "freeDiameter/libfdproto.h"
#include "rapidjson/rapidjson.h"
#include "rapidjson/document.h"
#include "rapidjson/writer.h"
#include "rapidjson/prettywriter.h"
#include "rapidjson/stringbuffer.h"
#include "efdjson.h"
#include "etime.h"
#include "esynch.h"
Classes | |
class | runtimeInfo |
class | runtimeError |
class | Buffer< T > |
class | AvpDictionaryEntry |
class | AVP |
Macros | |
#define | RAPIDJSON_NAMESPACE epctoolsrapidjson |
#define | ISHEXDIGIT(x) |
#define | HEX2BIN(x) |
#define | LOWERNIBBLE(_ln_) ((_ln_) & 0x0f) |
#define | UPPERNIBBLE(_un_) ( LOWERNIBBLE((_un_) >> 4) ) |
#define | THROW_DATATYPE_MISMATCH() |
Enumerations | |
enum | AvpDataType { ADTUnknown, ADTOctetString, ADTI32, ADTI64, ADTU32, ADTU64, ADTF32, ADTF64, ADTGrouped, ADTAddress, ADTTime, ADTUTF8String, ADTDiameterIdentity, ADTDiameterURI, ADTEnumerated, ADTIPFilterRule } |
Functions | |
std::string | string_format (const char *format,...) |
int | fdJsonAddAvps (const char *json, msg_or_avp *msg, void(*errfunc)(const char *)) |
Adds the AVP from the JSON string to a freeDiameter message or grouped AVP. More... | |
std::string | fdJsonBinaryToHex (const unsigned char *buffer, size_t len) |
void | fdJsonGetJSON (msg_or_avp *ref, std::string &json, void(*errfunc)(const char *)) |
const char * | fdJsonGetJSON (msg_or_avp *ref, void(*errfunc)(const char *)) |
Converts the AVP's from a freeDiameter message or grouped AVP to a JSON string. More... | |
bool | fdJsonGetValueOfMember (std::string json, std::string member, std::string &value) |
void | parseRecursive (std::string scope, RAPIDJSON_NAMESPACE::Value::ConstMemberIterator object, std::unordered_map< std::string, std::string > &values) |
bool | fdJsonGetApnValueFromSubData (std::string json, std::string &apn) |
#define HEX2BIN | ( | x | ) |
#define ISHEXDIGIT | ( | x | ) |
#define LOWERNIBBLE | ( | _ln_ | ) | ((_ln_) & 0x0f) |
#define RAPIDJSON_NAMESPACE epctoolsrapidjson |
#define THROW_DATATYPE_MISMATCH | ( | ) |
#define UPPERNIBBLE | ( | _un_ | ) | ( LOWERNIBBLE((_un_) >> 4) ) |
enum AvpDataType |
int fdJsonAddAvps | ( | const char * | json, |
msg_or_avp * | msg, | ||
void(*)(const char *) | errfunc | ||
) |
std::string fdJsonBinaryToHex | ( | const unsigned char * | buffer, |
size_t | len | ||
) |
bool fdJsonGetApnValueFromSubData | ( | std::string | json, |
std::string & | apn | ||
) |
void fdJsonGetJSON | ( | msg_or_avp * | ref, |
std::string & | json, | ||
void(*)(const char *) | errfunc | ||
) |
const char* fdJsonGetJSON | ( | msg_or_avp * | msg, |
void(*)(const char *) | errfunc | ||
) |
bool fdJsonGetValueOfMember | ( | std::string | json, |
std::string | member, | ||
std::string & | value | ||
) |
void parseRecursive | ( | std::string | scope, |
RAPIDJSON_NAMESPACE::Value::ConstMemberIterator | object, | ||
std::unordered_map< std::string, std::string > & | values | ||
) |
std::string string_format | ( | const char * | format, |
... | |||
) |