Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

CTclAuthorizer Class Reference

#include <TclAuthorizer.h>

List of all members.

Public Methods

 CTclAuthorizer (Tcl_Interp *pInterp)
 ~CTclAuthorizer ()
const CTCLVariable * getHostNames () const
const CTCLVariable * getHostIps () const
virtual int operator() (CTCLInterpreter &rInterp, CTCLResult &rResult, int nArgs, char *pArgs[])
Bool_t AddHost (const std::string &HostOrIp)
Bool_t RemoveHost (const std::string &NameOrIP)
std::string ListHosts ()
Bool_t Authenticate (const std::string &rNameOrIp)

Protected Methods

void setHostNames (CTCLVariable *am_pHostNames)
void setHostIps (CTCLVariable *am_pHostIps)
int Process (CTCLInterpreter &rInterp, CTCLResult &rResult, int nArgs, char *pArgs[])
Bool_t HostToIp (std::string &rName)
Int_t GetIndex (const std::string &rHostOrIp)
Bool_t ConvertHost (const std::string &rInName, std::string &rOutname, std::string &rCanonicalIP)
Int_t Usage (CTCLResult &rResult)

Private Methods

 CTclAuthorizer (const CTclAuthorizer &aCTclAuthorizer)
CTclAuthorizer & operator= (const CTclAuthorizer &aCTclAuthorizer)
int operator== (const CTclAuthorizer &aCTclAuthorizer) const
void setResult (const std::string &rResult)
void setResult (const char *pResult)

Private Attributes

CTCLInterpreter * m_pInterpreter
CTCLVariable * m_pHostNames
CTCLVariable * m_pHostIps
CTCLResult * m_pResult


Constructor & Destructor Documentation

CTclAuthorizer::CTclAuthorizer Tcl_Interp *    pInterp
 

Definition at line 326 of file TclAuthorizer.cpp.

References IPVariable(), m_pHostIps, m_pHostNames, m_pInterpreter, and NameVariable().

CTclAuthorizer::~CTclAuthorizer   [inline]
 

Definition at line 342 of file TclAuthorizer.h.

References m_pHostIps, m_pHostNames, and m_pInterpreter.

CTclAuthorizer::CTclAuthorizer const CTclAuthorizer &    aCTclAuthorizer [private]
 


Member Function Documentation

Bool_t CTclAuthorizer::AddHost const std::string &    HostOrIp
 

Definition at line 402 of file TclAuthorizer.cpp.

References ConvertHost(), GetIndex(), m_pHostIps, m_pHostNames, m_pInterpreter, and setResult().

Referenced by Process(), and CInterpreterCore::RegisterExtensions().

Bool_t CTclAuthorizer::Authenticate const std::string &    rNameOrIp
 

Definition at line 546 of file TclAuthorizer.cpp.

References GetIndex().

Referenced by CTCLListener::Authenticate().

Bool_t CTclAuthorizer::ConvertHost const std::string &    rInName,
std::string &    rOutname,
std::string &    rCanonicalIP
[protected]
 

Definition at line 639 of file TclAuthorizer.cpp.

References HostToIp().

Referenced by AddHost().

const CTCLVariable* CTclAuthorizer::getHostIps   const [inline]
 

Definition at line 365 of file TclAuthorizer.h.

References m_pHostIps.

const CTCLVariable* CTclAuthorizer::getHostNames   const [inline]
 

Definition at line 361 of file TclAuthorizer.h.

References m_pHostNames.

Int_t CTclAuthorizer::GetIndex const std::string &    rHostOrIp [protected]
 

Definition at line 609 of file TclAuthorizer.cpp.

References HostToIp(), m_pHostIps, and m_pInterpreter.

Referenced by AddHost(), Authenticate(), and RemoveHost().

Bool_t CTclAuthorizer::HostToIp std::string &    rName [protected]
 

Definition at line 563 of file TclAuthorizer.cpp.

Referenced by ConvertHost(), and GetIndex().

std::string CTclAuthorizer::ListHosts  
 

Definition at line 505 of file TclAuthorizer.cpp.

References m_pHostIps, m_pHostNames, and m_pInterpreter.

Referenced by Process().

int CTclAuthorizer::operator() CTCLInterpreter &    rInterp,
CTCLResult &    rResult,
int    nArgs,
char *    pArgs[]
[virtual]
 

Definition at line 342 of file TclAuthorizer.cpp.

References m_pResult, and Process().

CTclAuthorizer& CTclAuthorizer::operator= const CTclAuthorizer &    aCTclAuthorizer [private]
 

int CTclAuthorizer::operator== const CTclAuthorizer &    aCTclAuthorizer const [private]
 

int CTclAuthorizer::Process CTCLInterpreter &    rInterp,
CTCLResult &    rResult,
int    nArgs,
char *    pArgs[]
[protected]
 

Definition at line 350 of file TclAuthorizer.cpp.

References AddHost(), ListHosts(), RemoveHost(), and Usage().

Referenced by operator()().

Bool_t CTclAuthorizer::RemoveHost const std::string &    NameOrIP
 

Definition at line 455 of file TclAuthorizer.cpp.

References GetIndex(), m_pHostIps, m_pHostNames, m_pInterpreter, and setResult().

Referenced by Process().

void CTclAuthorizer::setHostIps CTCLVariable *    am_pHostIps [inline, protected]
 

Definition at line 378 of file TclAuthorizer.h.

References m_pHostIps.

void CTclAuthorizer::setHostNames CTCLVariable *    am_pHostNames [inline, protected]
 

Definition at line 374 of file TclAuthorizer.h.

References m_pHostNames.

void CTclAuthorizer::setResult const char *    pResult [inline, private]
 

Definition at line 405 of file TclAuthorizer.h.

References m_pResult.

void CTclAuthorizer::setResult const std::string &    rResult [inline, private]
 

Definition at line 402 of file TclAuthorizer.h.

References m_pResult.

Referenced by AddHost(), and RemoveHost().

int CTclAuthorizer::Usage CTCLResult &    rResult [protected]
 

Definition at line 662 of file TclAuthorizer.cpp.

Referenced by Process().


Member Data Documentation

CTCLVariable* CTclAuthorizer::m_pHostIps [private]
 

Definition at line 333 of file TclAuthorizer.h.

Referenced by AddHost(), CTclAuthorizer(), getHostIps(), GetIndex(), ListHosts(), RemoveHost(), setHostIps(), and ~CTclAuthorizer().

CTCLVariable* CTclAuthorizer::m_pHostNames [private]
 

Definition at line 332 of file TclAuthorizer.h.

Referenced by AddHost(), CTclAuthorizer(), getHostNames(), ListHosts(), RemoveHost(), setHostNames(), and ~CTclAuthorizer().

CTCLInterpreter* CTclAuthorizer::m_pInterpreter [private]
 

Definition at line 331 of file TclAuthorizer.h.

Referenced by AddHost(), CTclAuthorizer(), GetIndex(), ListHosts(), RemoveHost(), and ~CTclAuthorizer().

CTCLResult* CTclAuthorizer::m_pResult [private]
 

Definition at line 334 of file TclAuthorizer.h.

Referenced by operator()(), and setResult().


The documentation for this class was generated from the following files:
Generated on Fri Nov 8 13:37:26 2002 for Event Readout system. by doxygen1.2.16