Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

CTCPNoSuchHost Class Reference

#include <CTCPNoSuchHost.h>

List of all members.

Public Member Functions

 CTCPNoSuchHost (const STD(string)&hostname, const STD(string)&Doing)
 CTCPNoSuchHost (const CTCPNoSuchHost &rhs)
 Copy constructor.
virtual ~CTCPNoSuchHost ()
 Destructor.
CTCPNoSuchHostoperator= (const CTCPNoSuchHost &rhs)
int operator== (const CTCPNoSuchHost &rhs)
int gethErrno () const
 < Return h_errno at time of instantiation
 STD (string) getHost() const
 < Return name of failing host
virtual const char * ReasonText () const
virtual Int_t ReasonCode () const

Protected Member Functions

void sethErrno (int newVal)
void setHost (const STD(string) newVal)

Private Member Functions

 STD (string) m_Host
 Host which doesn't exist.
 STD (string) m_Reason
 STD(String) for building up reason text.

Private Attributes

int m_hErrno
 Cached value of errno when instantiated.


Detailed Description

Encapsulates an exception which indicates a failure to translate a host specification string into an IP address. Hosts are translated from two posible string formats

The exception produces reason STD(string)s which describe why the host could not be opened along with contextual information supplied by the application when the object is instantiated.

Definition at line 317 of file CTCPNoSuchHost.h.


Constructor & Destructor Documentation

CTCPNoSuchHost::CTCPNoSuchHost const STD(string)&  hostname,
const STD(string)&  Doing
 

CTCPNoSuchHost::CTCPNoSuchHost const CTCPNoSuchHost rhs  ) 
 

Copy constructor.

Copy constructor. Used to build temporaries for e.g. call by value or return by value functional semantics.

Parameters:
rhs - The original object from which the copy is constructed.

Definition at line 327 of file CTCPNoSuchHost.cpp.

virtual CTCPNoSuchHost::~CTCPNoSuchHost  )  [inline, virtual]
 

Destructor.

Definition at line 330 of file CTCPNoSuchHost.h.


Member Function Documentation

int CTCPNoSuchHost::gethErrno  )  const [inline]
 

< Return h_errno at time of instantiation

Definition at line 338 of file CTCPNoSuchHost.h.

CTCPNoSuchHost & CTCPNoSuchHost::operator= const CTCPNoSuchHost rhs  ) 
 

Assignment operator

Parameters:
rhs - the right hand side of the assignment.

Definition at line 339 of file CTCPNoSuchHost.cpp.

int CTCPNoSuchHost::operator== const CTCPNoSuchHost rhs  ) 
 

Comparison operator.

Parameters:
rhs - the right hand side of the comparison (Who *this is potentially equal to).

Definition at line 353 of file CTCPNoSuchHost.cpp.

References m_hErrno.

Int_t CTCPNoSuchHost::ReasonCode  )  const [virtual]
 

Returns the exception specific reason code. In this case, m_hErrno.

Definition at line 385 of file CTCPNoSuchHost.cpp.

const char * CTCPNoSuchHost::ReasonText  )  const [virtual]
 

Returns a textual string indicating why the exception was thrown. This string is suitable for diaplay to a user. The string is of the form: "Host Lookup failed for [m_Host] due to: [hstrerror(m_hErrno)] while [WasDoing()]"

Definition at line 370 of file CTCPNoSuchHost.cpp.

References m_hErrno.

void CTCPNoSuchHost::sethErrno int  newVal  )  [inline, protected]
 

Definition at line 346 of file CTCPNoSuchHost.h.

References m_hErrno.

void CTCPNoSuchHost::setHost const STD(string)  newVal  )  [inline, protected]
 

Definition at line 348 of file CTCPNoSuchHost.h.

CTCPNoSuchHost::STD string   )  const [inline]
 

< Return name of failing host

Definition at line 340 of file CTCPNoSuchHost.h.

CTCPNoSuchHost::STD string   )  [mutable, private]
 

STD(String) for building up reason text.

CTCPNoSuchHost::STD string   )  [private]
 

Host which doesn't exist.


Member Data Documentation

int CTCPNoSuchHost::m_hErrno [private]
 

Cached value of errno when instantiated.

Definition at line 321 of file CTCPNoSuchHost.h.

Referenced by operator==(), ReasonText(), and sethErrno().


The documentation for this class was generated from the following files:
Generated on Thu Jan 6 16:58:44 2005 for Spectrodaq External Event Framework by  doxygen 1.3.9.1