Hanles string paths.
More...
#include <Path.hpp>
List of all members.
Public Member Functions |
| | Path (const String &value) |
| | Initializes this Path with value.
|
| | Path (const Path ©) |
| | Initializes this Path from copy.
|
| Path & | operator= (const Path ©) |
| | Initializes this Path from copy.
|
| bool | operator< (const Path &right) const |
| | Compares the inferiority of this Path by right. For associative key containers handling.
|
| Path & | Concat (const Path &path) |
| | Appends path to this Path. Adds a separator character ('/' by default) if this Path does not end by that character.
|
| Path & | Concat (const String &value) |
| | Appends value to this Path. Does not add any separator character.
|
| const String & | GetValue () const |
| | Gets the underlying String value of this Path.
|
Static Public Member Functions |
| static Path | Concat (const Path &left, const Path &right) |
| | Appends right to left.
|
| static Path | Concat (const Path &left, const String &right) |
| | Appends right to left.
|
Static Private Attributes |
| static const char | DEFAULT_SEPARATOR = '/' |
| | Separator to use in case of the contatenation of Path.
|
Detailed Description
Hanles string paths.
Definition at line 10 of file Path.hpp.
Constructor & Destructor Documentation
| yap::Path::Path |
( |
const String & |
value | ) |
|
|
explicit |
Initializes this Path with value.
- Parameters:
-
| value | Value this Path contains. |
Definition at line 7 of file Path.cpp.
| yap::Path::Path |
( |
const Path & |
copy | ) |
|
Initializes this Path from copy.
- Parameters:
-
| copy | Path from which to initialize this Path. |
Definition at line 12 of file Path.cpp.
Member Function Documentation
| Path & yap::Path::Concat |
( |
const Path & |
path | ) |
|
Appends path to this Path. Adds a separator character ('/' by default) if this Path does not end by that character.
- Parameters:
-
Definition at line 32 of file Path.cpp.
Appends value to this Path. Does not add any separator character.
- Parameters:
-
| value | String to append to this Path. |
Definition at line 47 of file Path.cpp.
| Path yap::Path::Concat |
( |
const Path & |
left, |
|
|
const Path & |
right |
|
) |
| |
|
static |
Appends right to left.
- Parameters:
-
| left | Path from which to append right. |
| right | Path to append to left. |
Definition at line 54 of file Path.cpp.
Appends right to left.
- Parameters:
-
| left | Path from which to append right. |
| right | String to append to left. |
Definition at line 73 of file Path.cpp.
| const String & yap::Path::GetValue |
( |
| ) |
const |
Gets the underlying String value of this Path.
- Returns:
- Underlying value of this Path.
Definition at line 82 of file Path.cpp.
| bool yap::Path::operator< |
( |
const Path & |
right | ) |
const |
Compares the inferiority of this Path by right. For associative key containers handling.
- Parameters:
-
Definition at line 27 of file Path.cpp.
| Path & yap::Path::operator= |
( |
const Path & |
copy | ) |
|
Initializes this Path from copy.
- Parameters:
-
| copy | Path from which to initialize this Path. |
Definition at line 17 of file Path.cpp.
Member Data Documentation
| const char yap::Path::DEFAULT_SEPARATOR = '/' |
|
staticprivate |
Separator to use in case of the contatenation of Path.
Definition at line 56 of file Path.hpp.
The documentation for this class was generated from the following files:
- G:/YAPOG/YAPOG/YAPOG/include/YAPOG/System/Path.hpp
- G:/YAPOG/YAPOG/YAPOG/src/YAPOG/System/Path.cpp