|
libcosmos
Linux C++ System Programming Library
|
Represents the mode bits portion of a ModeT. More...
#include <types.hxx>
Public Member Functions | |
| FileMode (const FileModeBits mask) | |
| Constructs a FileMode from the given bitmask object. | |
| FileMode (const ModeT raw=ModeT::NONE) | |
| Constructs a FileMode from the given raw input. | |
| bool | isSetUID () const |
| bool | isSetGID () const |
| bool | isSticky () const |
| bool | canOwnerRead () const |
| bool | canOwnerWrite () const |
| bool | canOwnerExec () const |
| bool | canGroupRead () const |
| bool | canGroupWrite () const |
| bool | canGroupExec () const |
| bool | canOthersRead () const |
| bool | canOthersWrite () const |
| bool | canOthersExec () const |
| bool | canAnyRead () const |
| bool | canAnyWrite () const |
| bool | canAnyExec () const |
| FileModeBits & | mask () |
| Returns the complete bitmask object. | |
| const FileModeBits & | mask () const |
| std::string | symbolic () const |
| Returns a symbolic string representation of the mode. | |
| ModeT | raw () const |
| bool | operator== (const FileMode &other) const |
| bool | operator!= (const FileMode &other) const |
Protected Attributes | |
| FileModeBits | m_mode |
| bitmask for mode bits | |
Represents the mode bits portion of a ModeT.
This is wrapper around the primitive ModeT describing the classical UNIX file permissions and mode bits.
|
inlineexplicit |
Constructs a FileMode from the given bitmask object.
|
inline |
Constructs a FileMode from the given raw input.
This constructor is consciously not explicit to allow simpler use of octal literals.
Definition at line 236 of file types.hxx.
|
inline |
Definition at line 270 of file types.hxx.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 289 of file types.hxx.
| std::string cosmos::FileMode::symbolic | ( | ) | const |
Returns a symbolic string representation of the mode.
This returns a string like "r-x---r-x" as known from the ls utility and similar tools. The type is not part of this. You can use FileType::symbolic() to also get the type character in front.
Definition at line 51 of file FileStatus.cxx.
|
protected |