|
| Path (void)=delete |
| Constructs an File instance.
|
|
| Path (const Path &arg)=delete |
| Copy constructor.
|
|
Path & | operator= (const Path &arg)=delete |
| Assignment operator.
|
|
| ~Path (void)=delete |
| Destructs this instance and frees all resources.
|
|
◆ AreEqual()
static bool Arp::System::Commons::Io::Path::AreEqual |
( |
const String & |
path1, |
|
|
const String & |
path2 |
|
) |
| |
|
static |
Checks whether two paths are equal.
- Parameters
-
path1 | First path to compare. |
path2 | Second path to compare. |
- Returns
- True, if both paths are equal. Otherwise false.
◆ ChangeExtension()
static String Arp::System::Commons::Io::Path::ChangeExtension |
( |
const String & |
path, |
|
|
const String & |
newExtension |
|
) |
| |
|
static |
Change extension of a file.
- Parameters
-
path | Fully qualified path of the file. |
newExtension | New extension of the file including the dot. |
- Returns
- The name of the file including the new extension.
Examples: ChangeExtension("/opt/plcnext/my.dir/file.a.txt", ".b") returns "/opt/plcnext/my.dir/file.a.b". ChangeExtension("/opt/plcnext/my.dir/file", ".b") returns "/opt/plcnext/my.dir/file.b".
◆ Combine()
static String Arp::System::Commons::Io::Path::Combine |
( |
const String & |
path1, |
|
|
const String & |
path2 |
|
) |
| |
|
static |
Combines two paths.
- Parameters
-
path1 | First path. |
path2 | Second path. |
- Returns
- Combination of path1 and path2.
Example: Combine("/opt/plcnext/my.dir", "file.a.txt") returns "/opt/plcnext/my.dir/file.a.txt".
◆ GetCanonicalPath()
static String Arp::System::Commons::Io::Path::GetCanonicalPath |
( |
const String & |
path | ) |
|
|
static |
Get the canonical path.
- Parameters
-
path | Fully qualified path. |
- Returns
- Canonical path without symbolic links or dots.
Example: GetCanonicalPath("/etc/../opt/plcnext/./my.dir/file.a.txt") returns "/opt/plcnext/my.dir/file.a.txt".
◆ GetDirectoryName()
static String Arp::System::Commons::Io::Path::GetDirectoryName |
( |
const String & |
path | ) |
|
|
static |
Get the directory name of a path.
- Parameters
-
path | Fully qualified path. |
- Returns
- Name of the directory.
Example: GetDirectoryName("/opt/plcnext/my.dir/file.a.txt") returns "/opt/plcnext/my.dir".
◆ GetExtension()
static String Arp::System::Commons::Io::Path::GetExtension |
( |
const String & |
path | ) |
|
|
static |
Get extension of a file.
- Parameters
-
path | Fully qualified path of the file. |
- Returns
- Extension of the file incldung the dot.
Examples: GetExtension("/opt/plcnext/my.dir/file.a.txt") returns ".txt". GetExtension("/opt/plcnext/my.dir/file") returns an empty String.
◆ GetFileName()
static String Arp::System::Commons::Io::Path::GetFileName |
( |
const String & |
path | ) |
|
|
static |
Get name of a file.
- Parameters
-
path | Fully qualified path of the file. |
- Returns
- Name of the file including the extension.
Examples: GetFileName("/opt/plcnext/my.dir/file.a.txt") returns "file.a.txt". GetFileName("/opt/plcnext/my.dir/file") returns "file".
◆ GetFileTitle()
static String Arp::System::Commons::Io::Path::GetFileTitle |
( |
const String & |
path | ) |
|
|
static |
Get title of a file.
- Parameters
-
path | Fully qualified path of the file. |
- Returns
- Name of the file without extension.
Examples: GetFileTitle("/opt/plcnext/my.dir/file.a.txt") returns "file.a". GetFileTitle("/opt/plcnext/my.dir/file") returns "file".
◆ GetFullPath()
static String Arp::System::Commons::Io::Path::GetFullPath |
( |
const String & |
path | ) |
|
|
static |
Get name of a path.
- Parameters
-
path | Fully qualified path. |
- Returns
- The name of the path.
Example: GetFullPath("/opt/plcnext/my.dir/file.a.txt") returns "/opt/plcnext/my.dir/file.a.txt".
◆ GetPathRoot()
static String Arp::System::Commons::Io::Path::GetPathRoot |
( |
const String & |
path | ) |
|
|
static |
Get root of a file path.
- Parameters
-
path | Fully qualified path. |
- Returns
- Root of the path.
Example: GetFullPath("/opt/plcnext/my.dir/file.a.txt") returns "/".
◆ IsAbsolute()
static bool Arp::System::Commons::Io::Path::IsAbsolute |
( |
const String & |
path | ) |
|
|
static |
Checks whether a path is absolute.
- Parameters
-
path | Fully qualified path. |
- Returns
- True, if the path is absolute, otherwise false.
◆ IsRelative()
static bool Arp::System::Commons::Io::Path::IsRelative |
( |
const String & |
path | ) |
|
|
static |
Checks whether a path is relative.
- Parameters
-
path | Fully qualified path. |
- Returns
- True, if the path is relative, otherwise false.
The documentation for this class was generated from the following file: