![]() | InDesign SDK 20.5 |
#include <IDPath.h>

Public Types | |
| typedef APath | inherited |
| typedef object_type | data_type |
Public Member Functions | |
| IDPath () | |
| IDPath (const APathComponent &component) | |
| IDPath (const AString &pathStr, PathType typeHint=kDefaultOSPath) | |
| IDPath (const WideString &pathStr, PathType typeHint=kDefaultOSPath) | |
| IDPath (const IDPath &path) | |
| IDPath (const APath &path) | |
| virtual | ~IDPath () |
| IDPath & | operator= (const IDPath &rhs) |
| IDPath (IDPath &&rhs) noexcept | |
| IDPath & | operator= (IDPath &&rhs) noexcept |
| IDPath & | operator= (const APath &rhs) |
| bool | operator== (const IDPath &rhs) const |
| bool | operator!= (const IDPath &rhs) const |
| IDPath & | operator+= (const IDPath &rhs) |
| IDPath & | operator+= (const APathComponent &rhs) |
| bool | SetPath (const WideString &pathStr, PathType typeHint=kDefaultOSPath) |
| IDPath & | Append (const IDPath &path) |
| IDPath & | Append (const APathComponent &component) |
Friends | |
| void | swap (IDPath &lhs, IDPath &rhs) noexcept |
InDesign class used to manipulate a file or directory specified by a path.
| IDPath::IDPath | ( | ) |
Default constructor. Constructs an empty APath object.
| IDPath::IDPath | ( | const APathComponent & | component | ) |
Constructor. Constructs an APath containing one path component.
| component | IN Component in the path. An empty path component is ignored. |
| IDPath::IDPath | ( | const AString & | pathStr, |
| PathType | typeHint = kDefaultOSPath | ||
| ) |
Constructor. Constructs an APath object from the given path string.\ Call !IsEmpty() after construction to determine if the path was successfully set from the given string.
| pathStr | IN String containing the path. |
| typeHint | IN Type of path contained in the string. The hint is only used to optimize the parsing of the path, not to specify the actual path type. Default {kDefaultOSPath}. |
| IDPath::IDPath | ( | const WideString & | pathStr, |
| PathType | typeHint = kDefaultOSPath | ||
| ) |
Constructor. Constructs an APath object from the given path string.\ Call !IsEmpty() after construction to determine if the path was successfully set from the given string.
| pathStr | IN String containing the path. |
| typeHint | IN Type of path contained in the string. The hint is only used to optimize the parsing of the path, not to specify the actual path type. Default {kDefaultOSPath}. |
| IDPath::IDPath | ( | const IDPath & | path | ) |
Copy constructor. Constructs an IDPath object that is a copy of the given path.
| path | IN Path to copy. |
| IDPath::IDPath | ( | const APath & | path | ) |
Copy constructor. Constructs an IDPath object that is a copy of the given path.
| path | IN Path to copy. |
| virtual |
Destructor. Destroys the IDPath object.
Appends the given path to this path.
| path | IN Path to append to the end of this path. |
| IDPath& IDPath::Append | ( | const APathComponent & | component | ) |
Appends the given path component to this path.
| path | IN Path component to append to the end of this path. |
| bool IDPath::operator!= | ( | const IDPath & | rhs | ) | const |
Non-equality operator. Test whether this path is not equal to the given path.
| rhs | IN Path to test for non-equality against this path. |
Addition operator. Appends the given path to the end of this path.
| rhs | IN Path to append to this path. |
| IDPath& IDPath::operator+= | ( | const APathComponent & | rhs | ) |
Addition operator. Appends the given path component to the end of this path.
| rhs | IN Path component to append to this path. |
Assignment operator. Assigns the given path to this path.
| rhs | IN Path to assign to this path. |
| IDPath& IDPath::operator= | ( | const APath & | rhs | ) |
Assignment operator. Assigns the given path to this path.
| rhs | IN Path to assign to this path. |
| bool IDPath::operator== | ( | const IDPath & | rhs | ) | const |
Equality operator. Test whether this path is equal to the given path.
| rhs | IN Path to test for equality against this path. |
| bool IDPath::SetPath | ( | const WideString & | pathStr, |
| PathType | typeHint = kDefaultOSPath | ||
| ) |
Sets the path from the given path string.
| pathStr | IN String containing the path. |
| typeHint | IN Type of path contained in the string. The hint is only used to optimize the parsing of the path, not to specify the actual path type. Default {kDefaultOSPath}. |