Simple helper class to resolve owner and group ids to strings names. The simple approach here is to store the last recently requested ID/name pairs and return this if a subsequent request asks for the same id. Otherwise, a system call is performed.
Definition at line 22 of file ftools.hpp.
#include <ftools.hpp>
Public Method Index: | |
OwnerAndGroupResolver () | |
ALIB_API std::pair< String, String > | Get (const FInfo &finfo) |
|
protected |
The last requested group ID.
Definition at line 26 of file ftools.hpp.
|
protected |
The result associated with lastGID.
Definition at line 28 of file ftools.hpp.
|
protected |
The last requested user ID..
Definition at line 25 of file ftools.hpp.
|
protected |
The result associated with lastUID.
Definition at line 27 of file ftools.hpp.
|
inline |
Constructor
Definition at line 32 of file ftools.hpp.
Writes owner and group names of finfo to the given strings.
finfo | The file to examine. |
Definition at line 23 of file ftools.cpp.