#include <Configuration.h>
Public Member Functions | |
string | getFlowSource () |
string | getFlowDest () |
bool | getUseMeasure () |
string | getMeasureFile () |
bool | getCreatePlot () |
bool | getReCalcChecksums () |
bool | getSetBadChecksumsToBad () |
bool | getPrintPackets () |
bool | getSingleStepping () |
unsigned long | getReadBlockSize () |
unsigned long | getWriteBlockSize () |
void | bindAnonPrimitives () |
bool | configOk () |
Static Public Member Functions | |
static void | init (string file) |
static Configuration * | instance () |
Static Public Attributes | |
static const string | PATH_RUN_FLOW_SOURCE = "Settings/Flow/Input" |
static const string | PATH_RUN_FLOW_DEST = "Settings/Flow/Output" |
static const string | PATH_RUN_MEASURE_ON = "Settings/Misc/UseMeasure" |
static const string | PATH_RUN_MEASURE_FILE = "Settings/Misc/MeasureFile" |
static const string | PATH_RUN_MEASURE_CREATEPLOT = "Settings/Misc/CreatePlot" |
static const string | PATH_RUN_PRINT_PACKETS = "Settings/Misc/PrintPackets" |
static const string | PATH_RUN_SINGLE_STEPPING = "Settings/Misc/SingleStepping" |
static const string | PATH_RUN_BLOCK_SIZE_READ = "Settings/Misc/BlockSizeRead" |
static const string | PATH_RUN_BLOCK_SIZE_WRITE = "Settings/Misc/BlockSizeWrite" |
static const string | PATH_CHKSUM_RECALC = "Settings/Checksumming/ReCalculateChecksums" |
static const string | PATH_CHKSUM_BAD_TO_BAD = "Settings/Checksumming/SetBadChecksumsToBad" |
static const string | ANON_MODULE = "AnonMappings" |
static const string | ANON_SUBMODULE_ETHERNET = "EthernetPacket" |
static const string | ANON_SUBMODULE_ARP = "ArpPacket" |
static const string | ANON_SUBMODULE_IP = "IpPacket" |
static const string | ANON_SUBMODULE_ICMP = "IcmpPacket" |
static const string | ANON_SUBMODULE_TCP = "TcpPacket" |
static const string | ANON_SUBMODULE_UDP = "UdpPacket" |
static const string | ANON_SUBMODULE_PAYLOAD = "PayloadPacket" |
static const string | ANON_SUBMODULE_IPV6 = "Ipv6Packet" |
static const string | ANON_ATTR_PRIMITIVE = "anon" |
Private Member Functions | |
Configuration (string filename) | |
~Configuration () | |
bool | checkAnonObj (AnonPrimitive *anon, string name) |
void | exitOnBad () |
Private Attributes | |
Triggerconf | tconf |
Static Private Attributes | |
static Configuration * | object = NULL |
static string | filename = "" |
Friends | |
class | Guard |
Classes | |
class | Guard |
Configuration::Configuration | ( | string | filename | ) | [private] |
Configuration::~Configuration | ( | ) | [private] |
void Configuration::init | ( | string | file | ) | [static] |
Configuration * Configuration::instance | ( | ) | [static] |
string Configuration::getFlowSource | ( | ) |
string Configuration::getFlowDest | ( | ) |
bool Configuration::getUseMeasure | ( | ) |
string Configuration::getMeasureFile | ( | ) |
bool Configuration::getCreatePlot | ( | ) |
bool Configuration::getReCalcChecksums | ( | ) |
bool Configuration::getSetBadChecksumsToBad | ( | ) |
bool Configuration::getPrintPackets | ( | ) |
bool Configuration::getSingleStepping | ( | ) |
unsigned long Configuration::getReadBlockSize | ( | ) |
unsigned long Configuration::getWriteBlockSize | ( | ) |
void Configuration::bindAnonPrimitives | ( | ) |
bool Configuration::configOk | ( | ) |
bool Configuration::checkAnonObj | ( | AnonPrimitive * | anon, | |
string | name | |||
) | [private] |
void Configuration::exitOnBad | ( | ) | [private] |
friend class Guard [friend] |
const string Configuration::PATH_RUN_FLOW_SOURCE = "Settings/Flow/Input" [static] |
const string Configuration::PATH_RUN_FLOW_DEST = "Settings/Flow/Output" [static] |
const string Configuration::PATH_RUN_MEASURE_ON = "Settings/Misc/UseMeasure" [static] |
const string Configuration::PATH_RUN_MEASURE_FILE = "Settings/Misc/MeasureFile" [static] |
const string Configuration::PATH_RUN_MEASURE_CREATEPLOT = "Settings/Misc/CreatePlot" [static] |
const string Configuration::PATH_RUN_PRINT_PACKETS = "Settings/Misc/PrintPackets" [static] |
const string Configuration::PATH_RUN_SINGLE_STEPPING = "Settings/Misc/SingleStepping" [static] |
const string Configuration::PATH_RUN_BLOCK_SIZE_READ = "Settings/Misc/BlockSizeRead" [static] |
const string Configuration::PATH_RUN_BLOCK_SIZE_WRITE = "Settings/Misc/BlockSizeWrite" [static] |
const string Configuration::PATH_CHKSUM_RECALC = "Settings/Checksumming/ReCalculateChecksums" [static] |
const string Configuration::PATH_CHKSUM_BAD_TO_BAD = "Settings/Checksumming/SetBadChecksumsToBad" [static] |
const string Configuration::ANON_MODULE = "AnonMappings" [static] |
const string Configuration::ANON_SUBMODULE_ETHERNET = "EthernetPacket" [static] |
const string Configuration::ANON_SUBMODULE_ARP = "ArpPacket" [static] |
const string Configuration::ANON_SUBMODULE_IP = "IpPacket" [static] |
const string Configuration::ANON_SUBMODULE_ICMP = "IcmpPacket" [static] |
const string Configuration::ANON_SUBMODULE_TCP = "TcpPacket" [static] |
const string Configuration::ANON_SUBMODULE_UDP = "UdpPacket" [static] |
const string Configuration::ANON_SUBMODULE_PAYLOAD = "PayloadPacket" [static] |
const string Configuration::ANON_SUBMODULE_IPV6 = "Ipv6Packet" [static] |
const string Configuration::ANON_ATTR_PRIMITIVE = "anon" [static] |
Configuration * Configuration::object = NULL [static, private] |
string Configuration::filename = "" [static, private] |
Triggerconf Configuration::tconf [private] |