Configuration Class Reference

#include <Configuration.h>

Collaboration diagram for Configuration:

Collaboration graph
[legend]

List of all members.

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 Configurationinstance ()

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 Configurationobject = NULL
static string filename = ""

Friends

class Guard

Classes

class  Guard


Constructor & Destructor Documentation

Configuration::Configuration ( string  filename  )  [private]

Configuration::~Configuration (  )  [private]


Member Function Documentation

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]


Friends And Related Function Documentation

friend class Guard [friend]


Member Data Documentation

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]


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

Generated on Wed Jun 18 09:40:43 2008 for pktanon by  doxygen 1.5.5