The Path::Property class is used to get properties from a Path, using the
Path::property() member function. Currently the Path::Property can be Absolute or
Relative, meaning the path is absolute, resp. relative.
On Unix systems an absolute path simply starts with a “/” (slash), while on Windows
it can start with a drive specification (like “c:\”), or an SMB network specification (like
“\\host\share\...”).
Synopsis
class Path::Property
{
public:
enum Val { Unknown, Absolute, Relative };
~Path::Property ();
Path::Property ();
Path::Property (Val val);
Path::Property (const Path::Property& property);
Path::Property& operator = (const Path::Property& property);
operator int () const;
bool operator == (const Path::Property& property) const;
bool operator != (const Path::Property& property) const;
bool operator == (Val val) const;
bool operator != (Val val) const;
};
Description
-
˜Path::Property () -
Destroys this path property. Releases all used memory resources.
-
Path::Property () -
Constructs this path property as the Unknown property.
-
Path::Property (Path::Property::Val val) -
Constructs this path property from the given value. The given value can be
one of Unknown, Absolute, Relative.
-
Path::Property (const Path::Property& property) -
Constructs this path property from the given property. The path property
value stored in property is copied into this.
-
Path::Property& operator = (const Path::Property& property) -
Assigns this path property from property, and return a reference to this for
assignment operation chaining. The path property value stored in property is
copied into this.
-
operator int () const -
Returns the integer value associated with this path property. This operator
is provided for switch code.
-
bool operator == (const Path::Property& property) const -
Returns true if this and property store the same path property, false if not.
-
bool operator != (const Path::Property& property) const -
Returns true if this and property do not store the same path property, true
if they do.
-
bool operator == (Path::Property::Val val) const -
Returns true if this stores a path property matching the given value, false
if not.
-
bool operator != (Path::Property::Val val) const -
Returns true if this does not store a path property matching the given value,
true if it does.