NAME

OUX_Stat - Class wrapper around the system stat structure.

SYNOPSIS


#include <OUX/files/stat.hh>

class OUX_Stat : public OTC_Stat
{
  public:
    static os_typespec* get_os_typespec();
    inline OUX_Stat();
    inline OUX_Stat(OUX_Stat const& theStat);
    inline ino_t ino() const;
    inline short nlink() const;
    inline uid_t uid() const;
    inline gid_t gid() const;
    inline dev_t rdev() const;
    inline long blksize() const;
    inline long blocks() const;
    inline OTC_Boolean isSymbolicLink() const;
    inline OTC_Boolean isSocket() const;
    inline OTC_Boolean isSetUid() const;
    inline OTC_Boolean isSetGid() const;
    inline OTC_Boolean isSaveTxt() const;
    inline OTC_Boolean isGroupRead() const;
    inline OTC_Boolean isGroupWrite() const;
    inline OTC_Boolean isGroupExec() const;
    inline OTC_Boolean isOtherRead() const;
    inline OTC_Boolean isOtherWrite() const;
    inline OTC_Boolean isOtherExec() const;
};

CLASS TYPE

Concrete

EXAMPLE

ATTRIBUTES

inline ino_t ino() const;
inline short nlink() const;
inline uid_t uid() const;
inline gid_t gid() const;
inline dev_t rdev() const;
inline long blksize() const;
inline long blocks() const;
The following simplify questions commonly asked about files.
inline OTC_Boolean isSymbolicLink() const;
inline OTC_Boolean isSocket() const;
inline OTC_Boolean isSetUid() const;
inline OTC_Boolean isSetGid() const;
inline OTC_Boolean isSaveTxt() const;
inline OTC_Boolean isGroupRead() const;
inline OTC_Boolean isGroupWrite() const;
inline OTC_Boolean isGroupExec() const;
inline OTC_Boolean isOtherRead() const;
inline OTC_Boolean isOtherWrite() const;
inline OTC_Boolean isOtherExec() const;

DECSCRIPTION

Encapsulates the system stat structure to make deriving information about a file easier. Note that it is still necessary to use the system stat() function to fill out information in the class. This derived version of OTC_Stat adds extra functionality particular to UNIX.

SEE ALSO

stat(2)

LIBRARY

OUX

AUTHOR(S)

Graham Dumpleton

COPYRIGHT

Copyright 1991 1992 OTC LIMITED