Woopsi 1.3
Nintendo DS Gui Framework
Public Member Functions
WoopsiUI::FilePath Class Reference

#include <libwoopsi/include/filepath.h>

List of all members.

Public Member Functions

 FilePath (const WoopsiString &path)
 ~FilePath ()
void setPath (const WoopsiString &path)
const WoopsiStringgetPath () const
void appendPath (const WoopsiString &path)
void goToParent ()
void goToRoot ()

Detailed Description

Class designed to simplify parsing path strings. If told to append the current directory to its current path, the path will not change. If told to append the parent directory, the current directory is stripped from the path. The path string is therefore always as short as possible.

Used by the FileListBox.


Constructor & Destructor Documentation

WoopsiUI::FilePath::FilePath ( const WoopsiString path)

Constructor.

Parameters:
pathInitial path.
WoopsiUI::FilePath::~FilePath ( ) [inline]

Destructor.


Member Function Documentation

void WoopsiUI::FilePath::appendPath ( const WoopsiString path)

Append a new path component to the current path. Automatically inserts trailing slash.

Parameters:
pathPath to add to the end of the current path.
const WoopsiString& WoopsiUI::FilePath::getPath ( ) const [inline]

Get the path.

Returns:
The path.
void WoopsiUI::FilePath::goToParent ( )

Move from the current directory to its parent, if possible.

void WoopsiUI::FilePath::goToRoot ( )

Go to the root of the filesystem.

void WoopsiUI::FilePath::setPath ( const WoopsiString path)

Set the path.

Parameters:
pathThe new path.

The documentation for this class was generated from the following file:
 All Classes Functions Variables Enumerations Enumerator