Skip to content

Commit

Permalink
Documentation updates for Storage Kit classes
Browse files Browse the repository at this point in the history
* Added \since to each method and parameter.
* Whitespace cleanup.
* Some other minor cleanups and updates.
  • Loading branch information
jscipione committed Jun 18, 2014
1 parent a30a4a4 commit b885e90
Show file tree
Hide file tree
Showing 20 changed files with 3,221 additions and 1,767 deletions.
341 changes: 156 additions & 185 deletions docs/user/storage/AppFileInfo.dox

Large diffs are not rendered by default.

190 changes: 128 additions & 62 deletions docs/user/storage/Directory.dox

Large diffs are not rendered by default.

245 changes: 119 additions & 126 deletions docs/user/storage/Entry.dox

Large diffs are not rendered by default.

54 changes: 35 additions & 19 deletions docs/user/storage/EntryList.dox
@@ -1,14 +1,14 @@
/*
* Copyright 2011 Haiku, Inc. All rights reserved.
* Copyright 2011-2014 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Erik Jaesler, ejakowatz@users.sourceforge.net
* John Scipione, jscipione@gmail.com
*
* Corresponds to:
* headers/os/storage/EntryList.h rev 42794
* src/kits/storage/EntryList.cpp rev 42794
* headers/os/storage/EntryList.h hrev47402
* src/kits/storage/EntryList.cpp hrev47402
*/


Expand All @@ -28,6 +28,8 @@

Defines a general interface for iterating through a list of entries
i.e. files in a folder.

\since BeOS R3
*/


Expand All @@ -36,6 +38,8 @@
\brief Creates a BEntryList object.

Does nothing at this time.

\since Haiku R1
*/


Expand All @@ -44,6 +48,8 @@
\brief Frees all resources associated with the BEntryList object.

Does nothing at this time.

\since Haiku R1
*/


Expand All @@ -56,15 +62,17 @@

\param entry a pointer to a BEntry to be initialized with the found entry.
\param traverse specifies whether to follow it, if the found entry
is a symbolic link.
is a symbolic link.

\note The iterator used by this method is the same one used by
GetNextRef(), GetNextDirents(), Rewind() and CountEntries().
GetNextRef(), GetNextDirents(), Rewind() and CountEntries().

\retval B_OK if successful
\retval B_ENTRY_NOT_FOUND when at the end of the list
\retval B_ERROR or another error code (depending on the implementation
of the derived class).
of the derived class).

\since BeOS R3
*/


Expand All @@ -75,21 +83,23 @@
Places an entry_ref to the next entry in the list into \a ref.

\param ref a pointer to an entry_ref to be filled in with the data of the
found entry.
found entry.

\note The iterator used by this method is the same one used by
GetNextEntry(), GetNextDirents(), Rewind() and CountEntries().
GetNextEntry(), GetNextDirents(), Rewind() and CountEntries().

\retval B_OK if successful
\retval B_ENTRY_NOT_FOUND when at the end of the list
\retval B_ERROR or another error code (depending on the implementation
of the derived class).
of the derived class).

\since BeOS R3
*/


/*!
\fn int32 BEntryList::GetNextDirents(struct dirent *buf, size_t length,
int32 count)
int32 count)
\brief Returns the BEntryList's next entries as dirent structures.

Reads a number of entries into the array of dirent structures pointed
Expand All @@ -98,18 +108,20 @@
\a buf with given length \a length (in bytes), whichever is smallest.

\param buf A pointer to a buffer to be filled with dirent structures of
the found entries.
the found entries.
\param length The length of the \a buf array.
\param count the maximum number of entries to be read.

\note The iterator used by this method is the same one used by
GetNextEntry(), GetNextRef(), Rewind() and CountEntries().
GetNextEntry(), GetNextRef(), Rewind() and CountEntries().

\returns
- The number of dirent structures stored in the buffer or 0 when
there are no more entries to be read.
- an error code (depending on the implementation of the derived class)
if an error occurred.
- The number of dirent structures stored in the buffer or 0 when
there are no more entries to be read.
- an error code (depending on the implementation of the derived class)
if an error occurred.

\since BeOS R3
*/


Expand All @@ -119,7 +131,9 @@

\retval B_OK if successful
\retval B_ERROR or another error code (depending on the implementation
of the derived class).
of the derived class).

\since BeOS R3
*/


Expand All @@ -130,5 +144,7 @@
\retval B_OK if successful
\retval B_ENTRY_NOT_FOUND when at the end of the list
\retval B_ERROR or another error code (depending on the implementation
of the derived class).
*/
of the derived class).

\since BeOS R3
*/

0 comments on commit b885e90

Please sign in to comment.