diff options
Diffstat (limited to 'dep/ACE_wrappers/ace/Dirent.h')
-rw-r--r-- | dep/ACE_wrappers/ace/Dirent.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/dep/ACE_wrappers/ace/Dirent.h b/dep/ACE_wrappers/ace/Dirent.h index 11fde3d452f..036a942c611 100644 --- a/dep/ACE_wrappers/ace/Dirent.h +++ b/dep/ACE_wrappers/ace/Dirent.h @@ -1,4 +1,5 @@ // -*- C++ -*- + //============================================================================= /** * @file Dirent.h @@ -11,15 +12,21 @@ * @author Douglas C. Schmidt <schmidt@cs.wustl.edu> */ //============================================================================= + #ifndef ACE_DIRENT_H #define ACE_DIRENT_H #include /**/ "ace/pre.h" + #include /**/ "ace/ACE_export.h" + #if !defined (ACE_LACKS_PRAGMA_ONCE) # pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/OS_NS_dirent.h" + ACE_BEGIN_VERSIONED_NAMESPACE_DECL + /** * @class ACE_Dirent * @@ -31,15 +38,20 @@ public: // = Initialization and termination methods. /// Default constructor. ACE_Dirent (void); + /// Constructor calls <opendir> explicit ACE_Dirent (const ACE_TCHAR *dirname); + /// Opens the directory named by filename and associates a directory /// stream with it. int open (const ACE_TCHAR *filename); + /// Destructor calls <closedir>. ~ACE_Dirent (void); + /// Closes the directory stream and frees the <ACE_DIR> structure. void close (void); + // = Iterator methods. /** * Returns a pointer to a structure representing the directory entry @@ -59,6 +71,7 @@ public: * directory is actually read. */ ACE_DIRENT *read (void); + /** * Has the equivalent functionality as <readdir> except that an * @a entry and @a result buffer must be supplied by the caller to @@ -66,10 +79,12 @@ public: */ int read (struct ACE_DIRENT *entry, struct ACE_DIRENT **result); + // = Manipulators. /// Returns the current location associated with the directory /// stream. long tell (void); + /** * Sets the position of the next <readdir> operation on the * directory stream. The new position reverts to the position @@ -83,6 +98,7 @@ public: * any calls to readdir. */ void seek (long loc); + /** * Resets the position of the directory stream to the beginning of * the directory. It also causes the directory stream to refer to @@ -90,14 +106,18 @@ public: * <opendir> would. */ void rewind (void); + private: /// Pointer to the directory stream. ACE_DIR *dirp_; }; + ACE_END_VERSIONED_NAMESPACE_DECL + #if defined (__ACE_INLINE__) #include "ace/Dirent.inl" #endif /* __ACE_INLINE__ */ + #include /**/ "ace/post.h" #endif /* ACE_DIRENT_H */ |