#include <nNetwork.h>
Public Member Functions | |
nCurrentSenderID () | |
nCurrentSenderID (int senderID) | |
~nCurrentSenderID () | |
void | SetID (int senderID) |
Static Public Member Functions | |
static int | GetID () |
Private Attributes | |
int | lastSenderID_ |
Static Private Attributes | |
static int | currentSenderID_ = 0 |
Definition at line 719 of file nNetwork.h.
nCurrentSenderID::nCurrentSenderID | ( | ) | [inline] |
nCurrentSenderID::nCurrentSenderID | ( | int | senderID | ) | [inline] |
Definition at line 723 of file nNetwork.h.
References SetID().
00723 :lastSenderID_( currentSenderID_ ){ 00724 SetID( senderID ); 00725 }
nCurrentSenderID::~nCurrentSenderID | ( | ) | [inline] |
Definition at line 726 of file nNetwork.h.
References currentSenderID_, and lastSenderID_.
00726 { 00727 currentSenderID_ = lastSenderID_; 00728 }
static int nCurrentSenderID::GetID | ( | ) | [inline, static] |
Definition at line 730 of file nNetwork.h.
References currentSenderID_.
00730 { 00731 return currentSenderID_; 00732 }
void nCurrentSenderID::SetID | ( | int | senderID | ) | [inline] |
Definition at line 733 of file nNetwork.h.
References currentSenderID_.
Referenced by eVoteItem::AcceptNewVote(), eVoteItem::FillFromMessage(), eVoter::HandleChat(), and nCurrentSenderID().
00733 { 00734 currentSenderID_ = senderID; 00735 }
int nCurrentSenderID::lastSenderID_ [private] |
int nCurrentSenderID::currentSenderID_ = 0 [static, private] |