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

Public Types | |
| typedef AFile | inherited |
| typedef object_type | data_type |
Public Member Functions | |
| IDFile () | |
| IDFile (const APath &path) | |
| IDFile (const IDPath &path) | |
| IDFile (const AString &pathStr) | |
| IDFile (const WideString &pathStr) | |
| IDFile (const AFile &file) | |
| IDFile (const IDFile &file) | |
| virtual | ~IDFile () |
| IDFile & | operator= (const IDFile &rhs) |
| IDFile (IDFile &&rhs) noexcept | |
| IDFile & | operator= (IDFile &&rhs) noexcept |
| IDFile & | operator= (const AFile &rhs) |
| bool | operator== (const IDFile &rhs) const |
| bool | operator!= (const IDFile &rhs) const |
| void | SetPath (const IDPath &path) |
| void | SetPath (const WideString &pathStr) |
| bool | IsStationary () const |
| bool | SetStationary (bool bStationary) |
| void | ReadWrite (IPMStream *s) |
| IDFile (const PMString &pathStr) | |
| PMString | GetFileName () const |
| bool16 | SetFileName (const PMString &nameStr) |
Friends | |
| void | swap (IDFile &a, IDFile &b) noexcept |
InDesign class used to manipulate a file or directory specified by a path.
| IDFile::IDFile | ( | ) |
Default constructor. Constructs an IDFile object pointing to the current working directory.
| IDFile::IDFile | ( | const APath & | path | ) |
Constructor. Constructs an IDFile object pointing to the given path.
| path | IN Path to set the file's path to. |
| IDFile::IDFile | ( | const IDPath & | path | ) |
Constructor. Constructs an IDFile object pointing to the given path.
| path | IN Path to set the file's path to. |
| IDFile::IDFile | ( | const AString & | pathStr | ) |
Constructor. Constructs an IDFile object pointing to the given path.
| pathStr | IN String containing the path to set the file's path to.\ On Windows, a UTF16 UNC or local path.\ On the Mac, a UTF16 POSIX path |
| explicit |
Constructor. Constructs an IDFile object pointing to the given path.
| pathStr | IN String containing the path to set the file's path to.\ On Windows, a UTF16 UNC or local path.\ On the Mac, a UTF16 POSIX path |
| IDFile::IDFile | ( | const AFile & | file | ) |
Copy constructor. Constructs an IDFile object that is a copy of the given file.
| file | IN File object to copy. |
| IDFile::IDFile | ( | const IDFile & | file | ) |
Copy constructor. Constructs an IDFile object that is a copy of the given file.
| file | IN File object to copy. |
| virtual |
Destructor. Destroys the IDFile object.
| explicit |
Constructor. Constructs an IDFile object pointing to the given path.
| pathStr | IN String containing the path to set the file's path to.\ On Windows, a UTF16 UNC or local path.\ On the Mac, a Unicode POSIX path. |
| PMString IDFile::GetFileName | ( | ) | const |
Returns the last component of the file's path as a Unicode name. On the Mac, the name is returned as a Unicode POSIX file name; colons in the name are changed to forward slashes.
| bool IDFile::IsStationary | ( | ) | const |
Returns whether the file is a stationary file. Returns the value of the file's stationary attribute.
| bool IDFile::operator!= | ( | const IDFile & | rhs | ) | const |
Non-equality operator. Test whether this file's path is not identical to the given file's path.
| rhs | IN File to test for non-equality against this file. |
Assignment operator. Assigns the given file to this file.
| rhs | IN File to assign to this file. |
| IDFile& IDFile::operator= | ( | const AFile & | rhs | ) |
Assignment operator. Assigns the given file to this file.
| rhs | IN File to assign to this file. |
| bool IDFile::operator== | ( | const IDFile & | rhs | ) | const |
Equality operator. Test whether this file's path is identical to the given file's path.
| rhs | IN File to test for equality against this file. |
| void IDFile::ReadWrite | ( | IPMStream * | s | ) |
Persistence-related method for saving or restoring the state of an IDFile object instance.
| s | IN Stream to read from or write to. |
| bool16 IDFile::SetFileName | ( | const PMString & | nameStr | ) |
Sets the last component in the file's path. On the Mac, all forward slashes in the name are changed to colons.
| nameStr | IN String containing the new file name, or an empty string to remove the last component in the file's path. |
| void IDFile::SetPath | ( | const IDPath & | path | ) |
Sets the file's path.
| path | IN Path to set the file's path to. An empty path to remove file's path. |
| void IDFile::SetPath | ( | const WideString & | pathStr | ) |
Sets the file's path.
| pathStr | IN String containing the path to set the file's path to. An empty string to remove file's path.\ On Windows, a UTF16 UNC or local path.\ On the Mac, a UTF16 POSIX path |
| bool IDFile::SetStationary | ( | bool | bStationary | ) |
Sets the file's stationary attribute.
| bStationary | IN Value of the stationary attribute. |