ServerTextFilter Class Reference

#include <ServerTextFilter.h>

List of all members.

Public Member Functions

 ServerTextFilter ()
virtual ~ServerTextFilter ()
void filterString (LangString &text)

Protected Member Functions

void loadFile ()

Protected Attributes

std::list< LangStringwords_
time_t lastReadTime_

Classes

struct  TextPart


Detailed Description

Definition at line 28 of file ServerTextFilter.h.


Constructor & Destructor Documentation

ServerTextFilter::ServerTextFilter (  ) 

Definition at line 29 of file ServerTextFilter.cpp.

ServerTextFilter::~ServerTextFilter (  )  [virtual]

Definition at line 33 of file ServerTextFilter.cpp.


Member Function Documentation

void ServerTextFilter::filterString ( LangString text  ) 

Definition at line 37 of file ServerTextFilter.cpp.

References int(), IS_SPACE, loadFile(), ServerTextFilter::TextPart::part, ServerTextFilter::TextPart::pos, LangStringUtil::strcasecmp(), LangStringUtil::strlen(), LangStringUtil::strstr(), and words_.

Referenced by ServerChannelManager::actualSend(), and ServerAddPlayerHandler::filterName().

void ServerTextFilter::loadFile (  )  [protected]

Definition at line 151 of file ServerTextFilter.cpp.

References S3D::fileExists(), S3D::fileModTime(), S3D::formatStringBuffer(), FileLines::getLines(), S3D::getSettingsFile(), ScorchedServer::instance(), LANG_STRING, lastReadTime_, FileLines::readFile(), and words_.

Referenced by filterString().


Member Data Documentation

std::list<LangString> ServerTextFilter::words_ [protected]

Definition at line 43 of file ServerTextFilter.h.

Referenced by filterString(), and loadFile().

time_t ServerTextFilter::lastReadTime_ [protected]

Definition at line 44 of file ServerTextFilter.h.

Referenced by loadFile().


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