PLCnext API Documentation 23.6.0.37
Path.hpp
1
2//
3// Copyright PHOENIX CONTACT Electronics GmbH
4//
6#pragma once
8
9namespace Arp { namespace System { namespace Commons { namespace Io
10{
11
12class Path
13{
14public: // typedefs
15
16public: // construction/destruction
18 Path(void) = delete;
20 Path(const Path& arg) = delete;
22 Path& operator=(const Path& arg) = delete;
24 ~Path(void) = delete;
25
26public: // operators
27
28public: // static operations
38 static String GetDirectoryName(const String& path);
49 static String GetFileTitle(const String& path);
60 static String GetFileName(const String& path);
71 static String GetExtension(const String& path);
83 static String ChangeExtension(const String& path, const String& newExtension);
93 static String GetFullPath(const String& path);
103 static String GetPathRoot(const String& path);
114 static String Combine(const String& path1, const String& path2);
124 static String GetCanonicalPath(const String& path);
131 static bool AreEqual(const String& path1, const String& path2);
137 static bool IsRelative(const String& path);
143 static bool IsAbsolute(const String& path);
144
145public: // setter/getter operations
146
147public: // operations
148
149protected: // operations
150
151private: // static methods
152
153private: // methods
154
155private: // fields
156
157private: // static fields
158
159};
160
162// inline methods of class Path
163
164}}}} // end of namespace Arp::System::Commons::Io
Definition: Path.hpp:13
static String GetExtension(const String &path)
Get extension of a file.
static String GetCanonicalPath(const String &path)
Get the canonical path.
static bool AreEqual(const String &path1, const String &path2)
Checks whether two paths are equal.
Path & operator=(const Path &arg)=delete
Assignment operator.
static String ChangeExtension(const String &path, const String &newExtension)
Change extension of a file.
Path(void)=delete
Constructs an File instance.
static bool IsAbsolute(const String &path)
Checks whether a path is absolute.
static String GetFileTitle(const String &path)
Get title of a file.
~Path(void)=delete
Destructs this instance and frees all resources.
static String GetDirectoryName(const String &path)
Get the directory name of a path.
static String GetPathRoot(const String &path)
Get root of a file path.
static String Combine(const String &path1, const String &path2)
Combines two paths.
static String GetFileName(const String &path)
Get name of a file.
static String GetFullPath(const String &path)
Get name of a path.
static bool IsRelative(const String &path)
Checks whether a path is relative.
Path(const Path &arg)=delete
Copy constructor.
@ System
System components used by the System, Device, Plc or Io domains.
Root namespace for the PLCnext API