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

PathSpecification Class Reference

#include <pathspecification.h>

List of all members.


Detailed Description

Simple class holding a fully-specified path to an item.

The initial string specification should be of the form [name][::name]*[::], i.e. a list of names separated by double colons, with no whitespace.

Operations return empty strings or empty lists if the appropriate item is unavailable or undefined.

Definition at line 24 of file pathspecification.h.

Public Types

typedef StringParser::arglist NameList

Public Methods

 PathSpecification (const string &s)
 Constructor.

const string last () const
 Returns the tail of the path, if any.

const string first () const
 Returns the head of the path, if any.

const bool isrooted () const
 Returns true if the path started with the segment separator, i.e.

const NameList & all () const
 Returns the entire path.

const NameList allbutlast () const
 Returns the path up to (but not including) the tail.


Member Function Documentation

const bool PathSpecification::isrooted   const [inline]
 

Returns true if the path started with the segment separator, i.e.

::

Definition at line 49 of file pathspecification.h.

Referenced by ParameterMap< ParamType >::lookup_map(), and ParameterMap< ParamType >::lookup_with_path().


The documentation for this class was generated from the following file:
Generated on Mon Jan 20 02:37:09 2003 for RF-LISSOM by doxygen1.3-rc2