#include <OUX/files/pathname.hh> class OUX_Pathname : public OTC_Pathname {
public:
static os_typespec* get_os_typespec();
~OUX_Pathname();
OUX_Pathname();
OUX_Pathname(char const* thePath);
OUX_Pathname(OTC_String const& thePath);
OUX_Pathname(OTC_Pathname const& thePath);
OUX_Pathname(OUX_Pathname const& thePath);
OUX_Pathname& operator=(OTC_String const& thePath);
OUX_Pathname& operator=(OTC_Pathname const& thePath);
OUX_Pathname& operator=(OUX_Pathname const& thePath);
OUX_Pathname absolute() const;
OUX_Pathname dirname() const;
OUX_Pathname basename() const;
OTC_String basename(char const* theSuffix) const;
OTC_Boolean isAbsolute() const;
OTC_Boolean isRelative() const;
};
OTC_Pathname
to allow information
specific to UNIX to be derived from the pathname.
OUX_Pathname();
OUX_Pathname(char const* thePath);
thePath
.
OUX_Pathname(OTC_String const& thePath);
thePath
.
OUX_Pathname(OTC_Pathname const& thePath);
thePath
.
OUX_Pathname(OUX_Pathname const& thePath);
thePath
.
OUX_Pathname& operator=(OTC_String const& thePath);
thePath
.
OUX_Pathname& operator=(OTC_Pathname const& thePath);
thePath
.
OUX_Pathname& operator=(OUX_Pathname const& thePath);
thePath
.
OUX_Pathname absolute() const;
OUX_Pathname dirname() const;
dirname(1)
, returning
the directory portion of the pathname.
OUX_Pathname basename() const;
basename(1)
, returning
the filename portion of the pathname.
OTC_String basename(char const* theSuffix) const;
basename(1)
, returning the
filename portion of the pathname less
theSuffix
if the file did in fact end in
that suffix.
isAbsolute()
and
isRelative()
will return OTCLIB_FALSE
.
OTC_Boolean isAbsolute() const;
OTCLIB_TRUE
if the pathname
commences with a /
.
OTC_Boolean isRelative() const;
OTCLIB_TRUE
if the pathname
doesn't commence with a /
.
OTC_Pathname
, dirname(1)
, basename(1)