NAME
OUX_Directory -
Interface to file system directory.
SYNOPSIS
#include <OUX/files/directry.hh>
class OUX_Directory : public OTC_Directory
{
public:
static os_typespec* get_os_typespec();
OUX_Directory(OTC_String const& theName);
OUX_Directory(OTC_Directory const& theDir);
OUX_Directory(OUX_Directory const& theDir);
inline OUX_Directory& operator=(OTC_String const& theName);
inline OUX_Directory& operator=(OTC_Directory const& theDir);
inline OUX_Directory& operator=(OUX_Directory const& theDir);
OTC_Boolean contains(OTC_String const& theName) const;
};
CLASS TYPE
Concrete
DESCRIPTION
This class adds to OTC_Directory the ability to determine
if a directory contains a particular file.
INITIALISATION
OUX_Directory(OTC_String const& theName);
Creates an instance of this class for the
directory theName. Note that theName
is used as is, ie. leading and trailing
whitespace is not removed. If this is
required it should be done before hand.
OUX_Directory(OTC_Directory const& theDir);
Creates another class for the directory
theDir.
OUX_Directory(OUX_Directory const& theDir);
Creates another class for the directory
theDir.
inline OUX_Directory& operator=(OTC_String const& theName);
Initialises this directory to now
reference the directory given by
theName.
inline OUX_Directory& operator=(OTC_Directory const& theDir);
Initialises this directory to now
reference the directory given by
theDir.
inline OUX_Directory& operator=(OUX_Directory const& theDir);
Initialises this directory to now
reference the directory given by
theDir.
FILES
OTC_Boolean contains(OTC_String const& theName) const;
Returns OTCLIB_TRUE if this directory
contains a file with name theName. If
theName contains a slash, ie. /, then
OTCLIB_FALSE is always returned.
SEE ALSO
OTC_Directory
LIBRARY
OUX
AUTHOR(S)
Graham Dumpleton
COPYRIGHT
Copyright 1992 OTC LIMITED
Copyright 1994 DUMPLETON SOFTWARE CONSULTING PTY LIMITED