InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IDPath Class Reference

#include <IDPath.h>

Inheritance diagram for IDPath:

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 ()
 
IDPathoperator= (const IDPath &rhs)
 
 IDPath (IDPath &&rhs) noexcept
 
IDPathoperator= (IDPath &&rhs) noexcept
 
IDPathoperator= (const APath &rhs)
 
bool operator== (const IDPath &rhs) const
 
bool operator!= (const IDPath &rhs) const
 
IDPathoperator+= (const IDPath &rhs)
 
IDPathoperator+= (const APathComponent &rhs)
 
bool SetPath (const WideString &pathStr, PathType typeHint=kDefaultOSPath)
 
IDPathAppend (const IDPath &path)
 
IDPathAppend (const APathComponent &component)
 

Friends

void swap (IDPath &lhs, IDPath &rhs) noexcept
 

Detailed Description

InDesign class used to manipulate a file or directory specified by a path.

See Also
AFile

Constructor & Destructor Documentation

IDPath::IDPath ()

Default constructor. Constructs an empty APath object.

IDPath::IDPath (const APathComponent & component)

Constructor. Constructs an APath containing one path component.

Parameters
componentIN 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.

Parameters
pathStrIN String containing the path.
typeHintIN 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 WideStringpathStr,
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.

Parameters
pathStrIN String containing the path.
typeHintIN 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 IDPathpath)

Copy constructor. Constructs an IDPath object that is a copy of the given path.

Parameters
pathIN Path to copy.
IDPath::IDPath (const APath & path)

Copy constructor. Constructs an IDPath object that is a copy of the given path.

Parameters
pathIN Path to copy.
virtual IDPath::~IDPath ()
virtual

Destructor. Destroys the IDPath object.

Member Function Documentation

IDPath& IDPath::Append (const IDPathpath)

Appends the given path to this path.

Parameters
pathIN Path to append to the end of this path.
Returns
Reference to the path.
IDPath& IDPath::Append (const APathComponent & component)

Appends the given path component to this path.

Parameters
pathIN Path component to append to the end of this path.
Returns
Reference to the path.
bool IDPath::operator!= (const IDPathrhs) const

Non-equality operator. Test whether this path is not equal to the given path.

Parameters
rhsIN Path to test for non-equality against this path.
Returns
True if this path is not equal to the given path, else false.
IDPath& IDPath::operator+= (const IDPathrhs)

Addition operator. Appends the given path to the end of this path.

Parameters
rhsIN Path to append to this path.
Returns
Reference to this path.
IDPath& IDPath::operator+= (const APathComponent & rhs)

Addition operator. Appends the given path component to the end of this path.

Parameters
rhsIN Path component to append to this path.
Returns
Reference to this path.
IDPath& IDPath::operator= (const IDPathrhs)

Assignment operator. Assigns the given path to this path.

Parameters
rhsIN Path to assign to this path.
Returns
Reference to the path.
IDPath& IDPath::operator= (const APath & rhs)

Assignment operator. Assigns the given path to this path.

Parameters
rhsIN Path to assign to this path.
Returns
Reference to the path.
bool IDPath::operator== (const IDPathrhs) const

Equality operator. Test whether this path is equal to the given path.

Parameters
rhsIN Path to test for equality against this path.
Returns
True if this path is equal to the given path, else false.
bool IDPath::SetPath (const WideStringpathStr,
PathType typeHint = kDefaultOSPath 
)

Sets the path from the given path string.

Parameters
pathStrIN String containing the path.
typeHintIN 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}.
Returns
True if the path was set, else false.

Friends And Related Function Documentation

void swap (IDPathlhs,
IDPathrhs 
)
friend

Swap function. Swaps this object with the passed in object.

Parameters
rhsIN Path to swap with this path.