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

CTCPNoSuchService Class Reference

#include <CTCPNoSuchService.h>

List of all members.

Public Member Functions

 CTCPNoSuchService (const STD(string)&service, const STD(string)&Doing)
 CTCPNoSuchService (const CTCPNoSuchService &rhs)
 Copy Constructor.
virtual ~CTCPNoSuchService ()
 Destructor.
CTCPNoSuchServiceoperator= (const CTCPNoSuchService &rhs)
int operator== (const CTCPNoSuchService &rhs)
 STD (string) getService() const
 < Return service name.
virtual const char * ReasonText () const

Protected Member Functions

void setService (const STD(string)&newVal)

Private Member Functions

 STD (string) m_Service
 cached value of service.
 STD (string) m_Reason
 Where the reason text is built up.


Detailed Description

Encapsulates an excpetion which indicates a failure to translate a service specification STD(string) into a service port number. Service STD(string)s can be either a service name which is looked up in e.g. /etc/services or a STD(string)ified service port number.

Definition at line 311 of file CTCPNoSuchService.h.


Constructor & Destructor Documentation

CTCPNoSuchService::CTCPNoSuchService const STD(string)&  service,
const STD(string)&  Doing
 

CTCPNoSuchService::CTCPNoSuchService const CTCPNoSuchService rhs  ) 
 

Copy Constructor.

Copy constructor: Creates an object given a reference object. Used by the language to produce temporaries for .e.g. call by value and return by value function interactions.

Parameters:
rhs The reference object being copied into *this.

Definition at line 326 of file CTCPNoSuchService.cpp.

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

Destructor.

Definition at line 322 of file CTCPNoSuchService.h.


Member Function Documentation

CTCPNoSuchService & CTCPNoSuchService::operator= const CTCPNoSuchService rhs  ) 
 

Assignment. Assign *this to a rhs object. Different from copy construction in that:

  • We already exist as a validly constructed object.
  • We return a reference to ourselves so that = chaining is supported.
  • We prevent self assignment.

Parameters:
rhs The item to which we are being assigned.

Definition at line 342 of file CTCPNoSuchService.cpp.

int CTCPNoSuchService::operator== const CTCPNoSuchService rhs  ) 
 

Equality compare.. This is a field by field compare of the important elements Note that the m_Reason member is unimportant to the compare.

Parameters:
rhs The object *this is being compared to.

Definition at line 357 of file CTCPNoSuchService.cpp.

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

Returns the reason for the exception. This is a string which is built up from CErrno::ReasonText and other information we have it is of the form: "Unable to translate service [m_Service] becuase: [CErrno::ReasonText()]"

Definition at line 371 of file CTCPNoSuchService.cpp.

void CTCPNoSuchService::setService const STD(string)&  newVal  )  [inline, protected]
 

Definition at line 336 of file CTCPNoSuchService.h.

CTCPNoSuchService::STD string   )  const [inline]
 

< Return service name.

Definition at line 330 of file CTCPNoSuchService.h.

CTCPNoSuchService::STD string   )  [mutable, private]
 

Where the reason text is built up.

CTCPNoSuchService::STD string   )  [private]
 

cached value of service.


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