UniqueIdStore Class Reference

#include <UniqueIdStore.h>

List of all members.

Public Member Functions

 UniqueIdStore ()
virtual ~UniqueIdStore ()
bool loadStore ()
bool saveStore ()
const char * getUniqueId (unsigned int ip)
bool saveUniqueId (unsigned int ip, const char *id, const char *published)
std::list< Entry > & getIds ()

Protected Attributes

std::list< Entryids_

Classes

class  Entry


Detailed Description

Definition at line 27 of file UniqueIdStore.h.


Constructor & Destructor Documentation

UniqueIdStore::UniqueIdStore (  ) 

Definition at line 29 of file UniqueIdStore.cpp.

UniqueIdStore::~UniqueIdStore (  )  [virtual]

Definition at line 34 of file UniqueIdStore.cpp.


Member Function Documentation

bool UniqueIdStore::loadStore (  ) 

Definition at line 38 of file UniqueIdStore.cpp.

References S3D::dialogMessage(), XMLNode::failChildren(), file, S3D::formatStringBuffer(), XMLNode::getNamedChild(), XMLFile::getParserError(), XMLFile::getRootNode(), S3D::getSettingsFile(), UniqueIdStore::Entry::id, ids_, UniqueIdStore::Entry::ip, UniqueIdStore::Entry::published, and XMLFile::readFile().

Referenced by ConnectDialog::getIdStore(), and refreshIdentControls().

bool UniqueIdStore::saveStore (  ) 

Definition at line 76 of file UniqueIdStore.cpp.

References XMLNode::addChild(), S3D::getSettingsFile(), UniqueIdStore::Entry::id, ids_, UniqueIdStore::Entry::published, and XMLNode::writeToFile().

Referenced by saveUniqueId().

const char * UniqueIdStore::getUniqueId ( unsigned int  ip  ) 

Definition at line 98 of file UniqueIdStore.cpp.

References UniqueIdStore::Entry::id, ids_, and UniqueIdStore::Entry::ip.

Referenced by ClientConnectionAuthHandler::sendAuth().

bool UniqueIdStore::saveUniqueId ( unsigned int  ip,
const char *  id,
const char *  published 
)

Definition at line 117 of file UniqueIdStore.cpp.

References S3D::formatStringBuffer(), NetInterface::getIpName(), UniqueIdStore::Entry::id, ids_, OptionsDisplay::instance(), UniqueIdStore::Entry::ip, Logger::log(), UniqueIdStore::Entry::published, saveStore(), and LangStringUtil::strcmp().

std::list<Entry>& UniqueIdStore::getIds (  )  [inline]

Definition at line 48 of file UniqueIdStore.h.

References ids_.

Referenced by refreshIdentControls().


Member Data Documentation

std::list<Entry> UniqueIdStore::ids_ [protected]

Definition at line 51 of file UniqueIdStore.h.

Referenced by getIds(), getUniqueId(), loadStore(), saveStore(), and saveUniqueId().


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