NAME

OTC_Directory - Iterator interface to system directory routines.

SYNOPSIS


#include <OTC/files/directry.hh>

class OTC_Directory
{
  public:
    static os_typespec* get_os_typespec();
    OTC_Directory(OTC_String const& theName);
    OTC_Directory(OTC_Directory const& theDir);
    inline OTC_Directory& operator=(OTC_String const& theName);
    inline OTC_Directory& operator=(OTC_Directory const& theDir);
    inline OTC_String const& name() const;
    OTC_Boolean isSearchable() const;
    OTC_Iterator<OTC_String> files() const;
    OTC_Iterator<OTC_String> files(char const* thePattern) const;
};

CLASS TYPE

Concrete

DESCRIPTION

The OTC_Directory class is a wrapper around the opendir(3), readdir(3) system calls.

INITIALISATION

OTC_Directory(OTC_String const& theName);
OTC_Directory(OTC_Directory const& theDir);
inline OTC_Directory& operator=(OTC_String const& theName);
inline OTC_Directory& operator=(OTC_Directory const& theDir);

QUERY

inline OTC_String const& name() const;
OTC_Boolean isSearchable() const;

FILES

OTC_Iterator<OTC_String> files() const;
OTC_Iterator<OTC_String> files(char const* thePattern) const;

LIBRARY

OTC

AUTHOR(S)

Graham Dumpleton

COPYRIGHT

Copyright 1991 1992 OTC LIMITED
Copyright 1994 DUMPLETON SOFTWARE CONSULTING PTY LIMITED