PLCnext API Documentation 25.0.2.69
Path.hpp
1
2//
3// Copyright Phoenix Contact GmbH & Co. KG
4//
6#pragma once
8
9namespace Arp { namespace System { namespace Commons { namespace Io
10{
11
12class Path
13{
14public: // construction/destruction
15 Path(void) = delete;
16
17public: // static operations
18 static String GetDirectoryName(const String& path);
19 static String GetFileTitle(const String& path);
20 static String GetFileName(const String& path);
21 static String GetExtension(const String& path);
22 static String ChangeExtension(const String& path, const String& newExtension);
23 static String GetFullPath(const String& path);
24 static String GetPathRoot(const String& path);
25 static String Combine(const String& path1, const String& path2);
26 static String GetCanonicalPath(const String& path);
27 static bool AreEqual(const String& path1, const String& path2);
28 static bool IsRelative(const String& path);
29 static bool IsAbsolute(const String& path);
30};
31
32}}}} // end of namespace Arp::System::Commons::Io
This class represents the Arp String. The implementation is based on std::string.
Definition: String.hpp:39
Definition: Path.hpp:13
static String Combine(const String &path1, const String &path2)
Combines two paths.
Definition: Path.cpp:135
static String GetFileTitle(const String &path)
Get title of a file.
Definition: Path.cpp:39
static String GetDirectoryName(const String &path)
Get the directory name of a path.
Definition: Path.cpp:23
static bool IsAbsolute(const String &path)
Checks whether a path is absolute.
Definition: Path.cpp:187
static bool AreEqual(const String &path1, const String &path2)
Checks whether two paths are equal.
Definition: Path.cpp:163
static String GetCanonicalPath(const String &path)
Get the canonical path.
Definition: Path.cpp:152
static String ChangeExtension(const String &path, const String &newExtension)
Change extension of a file.
Definition: Path.cpp:88
static String GetPathRoot(const String &path)
Get root of a file path.
Definition: Path.cpp:119
static String GetFileName(const String &path)
Get name of a file.
Definition: Path.cpp:55
static String GetExtension(const String &path)
Get extension of a file.
Definition: Path.cpp:71
static bool IsRelative(const String &path)
Checks whether a path is relative.
Definition: Path.cpp:176
static String GetFullPath(const String &path)
Get name of a path.
Definition: Path.cpp:104
Root namespace for the PLCnext API