Loading...
Searching...
No Matches
Classes | Functions
Entry.h File Reference

Provides the BEntry class and entry_ref implementations. More...

Classes

class  BEntry
 A location in the filesystem. More...
 
struct  entry_ref
 A filesystem entry represented as a name in a concrete directory. More...
 

Functions

status_t get_ref_for_path (const char *path, entry_ref *ref)
 Returns an entry_ref for a given path.
 
bool operator< (const entry_ref &a, const entry_ref &b)
 Returns whether an entry is less than another.
 

Detailed Description

Provides the BEntry class and entry_ref implementations.

Function Documentation

◆ get_ref_for_path()

status_t get_ref_for_path ( const char *  path,
entry_ref ref 
)

Returns an entry_ref for a given path.

Parameters
pathThe path name referring to the entry.
refThe entry_ref structure to be filled in.
Returns
A status code.
Return values
B_OKEverything went fine.
B_BAD_VALUENULL path or ref.
B_ENTRY_NOT_FOUNDA (non-leaf) path component does not exist.
B_NO_MEMORYInsufficient memory for successful completion.
Since
BeOS R4

◆ operator<()

bool operator< ( const entry_ref a,
const entry_ref b 
)

Returns whether an entry is less than another.

The components are compared in order device, directory, name. A NULL name is less than any non-NULL name.

Return values
truea < b
falsea >= b
Since
Haiku R1