NetOptions Class Reference

#include <NetOptions.h>

List of all members.

Public Member Functions

int getNumberRetries ()
int getOutstandingPackets ()
int getPacketSize ()
bool getPacketLogging ()
bool writeOptionsToFile ()
bool readOptionsFromFile ()

Static Public Member Functions

static NetOptionsinstance ()

Protected Attributes

std::list
< OptionEntry * > 
options_
OptionEntryBoundedInt numberRetries_
OptionEntryBoundedInt outstandingPackets_
OptionEntryBoundedInt packetSize_
OptionEntryBool packetLogging_

Static Protected Attributes

static NetOptionsinstance_ = 0

Private Member Functions

 NetOptions ()
virtual ~NetOptions ()


Detailed Description

Definition at line 26 of file NetOptions.h.


Constructor & Destructor Documentation

NetOptions::NetOptions (  )  [private]

Definition at line 35 of file NetOptions.cpp.

NetOptions::~NetOptions (  )  [private, virtual]

Definition at line 47 of file NetOptions.cpp.


Member Function Documentation

NetOptions * NetOptions::instance (  )  [static]

Definition at line 25 of file NetOptions.cpp.

References instance_.

Referenced by NetServerTCP2::NetServerTCP2(), NetServerTCP2Destination::NetServerTCP2Destination(), and NetServerTCP3::NetServerTCP3().

int NetOptions::getNumberRetries (  )  [inline]

Definition at line 31 of file NetOptions.h.

References numberRetries_.

int NetOptions::getOutstandingPackets (  )  [inline]

Definition at line 32 of file NetOptions.h.

References outstandingPackets_.

int NetOptions::getPacketSize (  )  [inline]

Definition at line 33 of file NetOptions.h.

References packetSize_.

bool NetOptions::getPacketLogging (  )  [inline]

Definition at line 34 of file NetOptions.h.

References packetLogging_.

Referenced by NetServerTCP2Destination::NetServerTCP2Destination().

bool NetOptions::writeOptionsToFile (  ) 

Definition at line 51 of file NetOptions.cpp.

References S3D::getSettingsFile(), options_, and OptionEntryHelper::writeToFile().

Referenced by NetServerTCP2::NetServerTCP2(), and NetServerTCP3::NetServerTCP3().

bool NetOptions::readOptionsFromFile (  ) 

Definition at line 58 of file NetOptions.cpp.

References S3D::getSettingsFile(), options_, and OptionEntryHelper::readFromFile().

Referenced by NetServerTCP2::NetServerTCP2(), and NetServerTCP3::NetServerTCP3().


Member Data Documentation

NetOptions * NetOptions::instance_ = 0 [static, protected]

Definition at line 40 of file NetOptions.h.

Referenced by instance().

std::list<OptionEntry *> NetOptions::options_ [protected]

Definition at line 41 of file NetOptions.h.

Referenced by readOptionsFromFile(), and writeOptionsToFile().

OptionEntryBoundedInt NetOptions::numberRetries_ [protected]

Definition at line 43 of file NetOptions.h.

Referenced by getNumberRetries().

OptionEntryBoundedInt NetOptions::outstandingPackets_ [protected]

Definition at line 44 of file NetOptions.h.

Referenced by getOutstandingPackets().

OptionEntryBoundedInt NetOptions::packetSize_ [protected]

Definition at line 45 of file NetOptions.h.

Referenced by getPacketSize().

OptionEntryBool NetOptions::packetLogging_ [protected]

Definition at line 46 of file NetOptions.h.

Referenced by getPacketLogging().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:04 2009 for Scorched3D by  doxygen 1.5.3