Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

MPS::Address Class Reference

Represents a resolved name for an object. More...

#include <address.h>

List of all members.

Public Methods

 Address (string const &resolvedName)
 Address (Address const &other)
string getResolvedName () const
string getTransport () const
int getParamCount () const
string getParam (unsigned int index) const
void setParam (unsigned int index, string const &value)

Private Methods

vector<string> splitResolvedName (string const &resolvedName)
void become (string const &resolvedName)
Address const& operator= (Address const &other)

Private Attributes

string transport
vector<string> params


Detailed Description

Represents a resolved name for an object.

Definition at line 44 of file address.h.


Constructor & Destructor Documentation

MPS::Address::Address ( string const & resolvedName ) [inline]
 

Initialise this from the resolved name string passed in.

Definition at line 60 of file address.h.

MPS::Address::Address ( Address const & other ) [inline]
 

Copy constructor.

Definition at line 65 of file address.h.


Member Function Documentation

void MPS::Address::become ( string const & resolvedName ) [private]
 

Sets this to be equivalent to the resolved name passed in.

Referenced by Address().

string MPS::Address::getParam ( unsigned int index ) const [inline]
 

Return a parameter string.

Definition at line 77 of file address.h.

int MPS::Address::getParamCount ( ) const [inline]
 

Return the count of parameters in the connection spec.

Definition at line 74 of file address.h.

string MPS::Address::getResolvedName ( ) const
 

Return the connection spec as a string.

string MPS::Address::getTransport ( ) const [inline]
 

Return the transport name.

Definition at line 71 of file address.h.

Address const & MPS::Address::operator= ( Address const & other ) [private]
 

Scope the assignment operator as "private". It's deliberately unimplemented.

void MPS::Address::setParam ( unsigned int index,
string const & value ) [inline]
 

Modify a parameter string.

Definition at line 85 of file address.h.

vector< string > MPS::Address::splitResolvedName ( string const & resolvedName ) [private]
 

Splits a resolved name string into its constituent parts.


Member Data Documentation

vector< string > MPS::Address::params<string> [private]
 

Vector of transport-specific parameters for this address.

Definition at line 47 of file address.h.

string MPS::Address::transport [private]
 

The name of the transport this address refers to.

Definition at line 46 of file address.h.


The documentation for this class was generated from the following file:
Generated at Wed Aug 15 01:05:26 2001 for mps-cpp by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001