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

PathElement Class Reference

#include <Directory.h>

Inheritance diagram for PathElement:

ContainingListItem< PathElement > List of all members.

Detailed Description

A path element is a directory or file name, a part of a path.

Author:
Thomas Jacob

Definition at line 1008 of file Directory.h.

Public Member Functions

bool ChangeExtension (const char *newExtension)
 Changes the extension of the path element.

PathElementClone ()
 Creates a new instance of the path element with the same content.

char * GetName ()
 Returns the content of the path element.

PathElementGetNext () const
 Returns the next ContainingListItem in the list chain.

PathElementGetNextElement ()
 Returns the next path element.

PathElementGetPrev () const
 Returns the previous ContainingListItem in the list chain.

PathElementGetPrevElement ()
 Returns the previous path element.

 PathElement (const char *Name)
 Creates a new path element from a string template.

 PathElement ()
 Creates an empty path element.

void SetName (const char *name)
 Sets the content of the path element.

 ~PathElement ()
 Destroys the path element.


Private Attributes

char * Name
 The content of the path element itself.


Constructor & Destructor Documentation

PathElement  ) 
 

Creates an empty path element.

PathElement const char *  Name  ) 
 

Creates a new path element from a string template.

Parameters:
Name The path element as a string. This string is no longer used after the construction.

~PathElement  ) 
 

Destroys the path element.


Member Function Documentation

bool ChangeExtension const char *  newExtension  ) 
 

Changes the extension of the path element.

Parameters:
newExtension The new extension.
Returns:
If the extension was successfully changed.

PathElement* Clone  ) 
 

Creates a new instance of the path element with the same content.

Returns:
A clone of the object.
Exceptions:
EOutOfMemory The clone could not be allocated.

char* GetName  )  [inline]
 

Returns the content of the path element.

Returns:
The content of the path element.

PathElement * GetNext  )  const [inline, inherited]
 

Returns the next ContainingListItem in the list chain.

Returns:
The next ContainingListItem.

class PathElement* GetNextElement  )  [inline]
 

Returns the next path element.

Returns:
The next path element.

PathElement * GetPrev  )  const [inline, inherited]
 

Returns the previous ContainingListItem in the list chain.

Returns:
The previous ContainingListItem.

class PathElement* GetPrevElement  )  [inline]
 

Returns the previous path element.

Returns:
The previous path element.

void SetName const char *  name  ) 
 

Sets the content of the path element.

After the content has been set, it is no longer used.

Parameters:
name The new content.


Member Data Documentation

char* Name [private]
 

The content of the path element itself.

Definition at line 1022 of file Directory.h.


The documentation for this class was generated from the following file:
Generated on Tue Oct 3 00:23:40 2006 for ToolBox by doxygen 1.3.6