ServerChannelManager::DestinationEntry Class Reference

#include <ServerChannelManager.h>

List of all members.

Public Member Functions

 DestinationEntry (unsigned int destinationId)
unsigned int getDestinationId ()
bool hasChannel (const std::string &channel)
void addChannel (const std::string &channel, unsigned int localId, bool current)
void removeChannel (const std::string &channel, unsigned int localId)
bool hasLocalId (unsigned int localId)
void addLocalId (unsigned int localId)
void removeLocalId (unsigned int localId)
void setMessageCount (unsigned int count)
unsigned int getMessageCount ()
time_t getMuteTime ()
void setMuteTime (time_t t)
void getLocalIds (const std::string &channel, std::list< unsigned int > &ids)
std::map< unsigned
int,
DestinationLocalEntry > & 
getLocalEntries ()

Protected Member Functions

void updateChannels ()

Protected Attributes

time_t muteTime_
unsigned int messageCount_
unsigned int destinationId_
std::set< std::stringchannels_
std::map< unsigned
int,
DestinationLocalEntry
localEntries_


Detailed Description

Definition at line 77 of file ServerChannelManager.h.


Constructor & Destructor Documentation

ServerChannelManager::DestinationEntry::DestinationEntry ( unsigned int  destinationId  ) 

Definition at line 55 of file ServerChannelManager.cpp.


Member Function Documentation

unsigned int ServerChannelManager::DestinationEntry::getDestinationId (  )  [inline]

Definition at line 82 of file ServerChannelManager.h.

References destinationId_.

Referenced by ServerChannelManager::actualSend(), and ServerChannelManager::simulate().

bool ServerChannelManager::DestinationEntry::hasChannel ( const std::string channel  ) 

Definition at line 62 of file ServerChannelManager.cpp.

References channels_.

Referenced by ServerChannelManager::actualSend(), and ServerChannelManager::processMessage().

void ServerChannelManager::DestinationEntry::addChannel ( const std::string channel,
unsigned int  localId,
bool  current 
)

Definition at line 67 of file ServerChannelManager.cpp.

References hasLocalId(), localEntries_, and updateChannels().

Referenced by ServerChannelManager::joinClient(), and ServerChannelManager::refreshDestination().

void ServerChannelManager::DestinationEntry::removeChannel ( const std::string channel,
unsigned int  localId 
)

Definition at line 85 of file ServerChannelManager.cpp.

References hasLocalId(), localEntries_, and updateChannels().

Referenced by ServerChannelManager::joinClient(), and ServerChannelManager::refreshDestination().

bool ServerChannelManager::DestinationEntry::hasLocalId ( unsigned int  localId  ) 

Definition at line 108 of file ServerChannelManager.cpp.

References localEntries_.

Referenced by addChannel(), addLocalId(), ServerChannelManager::deregisterClient(), ServerChannelManager::joinClient(), ServerChannelManager::registerClient(), removeChannel(), and removeLocalId().

void ServerChannelManager::DestinationEntry::addLocalId ( unsigned int  localId  ) 

Definition at line 113 of file ServerChannelManager.cpp.

References hasLocalId(), localEntries_, and updateChannels().

Referenced by ServerChannelManager::registerClient().

void ServerChannelManager::DestinationEntry::removeLocalId ( unsigned int  localId  ) 

Definition at line 120 of file ServerChannelManager.cpp.

References hasLocalId(), localEntries_, and updateChannels().

Referenced by ServerChannelManager::deregisterClient().

void ServerChannelManager::DestinationEntry::setMessageCount ( unsigned int  count  )  [inline]

Definition at line 92 of file ServerChannelManager.h.

References messageCount_.

Referenced by ServerChannelManager::processMessage(), and ServerChannelManager::simulate().

unsigned int ServerChannelManager::DestinationEntry::getMessageCount (  )  [inline]

Definition at line 93 of file ServerChannelManager.h.

References messageCount_.

Referenced by ServerChannelManager::processMessage(), and ServerChannelManager::simulate().

time_t ServerChannelManager::DestinationEntry::getMuteTime (  )  [inline]

Definition at line 95 of file ServerChannelManager.h.

References muteTime_.

Referenced by ServerChannelManager::processMessage(), and ServerChannelManager::simulate().

void ServerChannelManager::DestinationEntry::setMuteTime ( time_t  t  )  [inline]

Definition at line 96 of file ServerChannelManager.h.

References muteTime_.

Referenced by ServerChannelManager::simulate().

void ServerChannelManager::DestinationEntry::getLocalIds ( const std::string channel,
std::list< unsigned int > &  ids 
)

Definition at line 93 of file ServerChannelManager.cpp.

References ServerChannelManager::DestinationLocalEntry::getChannels(), and localEntries_.

Referenced by ServerChannelManager::actualSend().

std::map<unsigned int, DestinationLocalEntry>& ServerChannelManager::DestinationEntry::getLocalEntries (  )  [inline]

Definition at line 99 of file ServerChannelManager.h.

References localEntries_.

Referenced by ServerChannelManager::refreshDestination().

void ServerChannelManager::DestinationEntry::updateChannels (  )  [protected]

Definition at line 127 of file ServerChannelManager.cpp.

References channels_, ServerChannelManager::DestinationLocalEntry::getChannels(), and localEntries_.

Referenced by addChannel(), addLocalId(), removeChannel(), and removeLocalId().


Member Data Documentation

time_t ServerChannelManager::DestinationEntry::muteTime_ [protected]

Definition at line 102 of file ServerChannelManager.h.

Referenced by getMuteTime(), and setMuteTime().

unsigned int ServerChannelManager::DestinationEntry::messageCount_ [protected]

Definition at line 103 of file ServerChannelManager.h.

Referenced by getMessageCount(), and setMessageCount().

unsigned int ServerChannelManager::DestinationEntry::destinationId_ [protected]

Definition at line 104 of file ServerChannelManager.h.

Referenced by getDestinationId().

std::set<std::string> ServerChannelManager::DestinationEntry::channels_ [protected]

Definition at line 105 of file ServerChannelManager.h.

Referenced by hasChannel(), and updateChannels().

std::map<unsigned int, DestinationLocalEntry> ServerChannelManager::DestinationEntry::localEntries_ [protected]

Definition at line 106 of file ServerChannelManager.h.

Referenced by addChannel(), addLocalId(), getLocalEntries(), getLocalIds(), hasLocalId(), removeChannel(), removeLocalId(), and updateChannels().


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