etk::FSNodeRight Class Reference

#include <FSNodeRight.hpp>

Public Member Functions

 FSNodeRight (int16_t _newRight=0)
 
etk::FSNodeRightoperator= (const etk::FSNodeRight &_obj)
 
etk::FSNodeRightoperator= (const int32_t _newVal)
 
void clear ()
 
bool isUserReadable () const
 
bool isUserWritable () const
 
bool isUserRunable () const
 
void setUserReadable (bool _newStatus)
 
void setUserWritable (bool _newStatus)
 
void setUserRunable (bool _newStatus)
 
bool isGroupReadable () const
 
bool isGroupWritable () const
 
bool isGroupRunable () const
 
void setGroupReadable (bool _newStatus)
 
void setGroupWritable (bool _newStatus)
 
void setGroupRunable (bool _newStatus)
 
bool isOtherReadable () const
 
bool isOtherWritable () const
 
bool isOtherRunable () const
 
void setOtherReadable (bool _newStatus)
 
void setOtherWritable (bool _newStatus)
 
void setOtherRunable (bool _newStatus)
 
std::string getRight () const
 

Detailed Description

File System Right management.

Constructor & Destructor Documentation

§ FSNodeRight()

etk::FSNodeRight::FSNodeRight ( int16_t  _newRight = 0)

Right contructor.

Parameters
[in]_newRightRight to set by default

Member Function Documentation

§ clear()

void etk::FSNodeRight::clear ( )

Clear right (set the value at 0 ==> cant not be read/write/execute.

§ getRight()

std::string etk::FSNodeRight::getRight ( ) const

Get the write written in a string mode (like in linux rw-r--—)

Returns
String with the right in string

§ isGroupReadable()

bool etk::FSNodeRight::isGroupReadable ( ) const

Get the "Read status" for the "Group".

Returns
true The file/folder/... is readable
false The file/folder/... is NOT readable

§ isGroupRunable()

bool etk::FSNodeRight::isGroupRunable ( ) const

Get the "execute status" for the "Group".

Returns
true The file/folder/... is executable
false The file/folder/... is NOT executable

§ isGroupWritable()

bool etk::FSNodeRight::isGroupWritable ( ) const

Get the "Write status" for the "Group".

Returns
true The file/folder/... is writable
false The file/folder/... is NOT writable

§ isOtherReadable()

bool etk::FSNodeRight::isOtherReadable ( ) const

Get the "Read status" for the "Other".

Returns
true The file/folder/... is readable
false The file/folder/... is NOT readable

§ isOtherRunable()

bool etk::FSNodeRight::isOtherRunable ( ) const

Get the "execute status" for the "Other".

Returns
true The file/folder/... is executable
false The file/folder/... is NOT executable

§ isOtherWritable()

bool etk::FSNodeRight::isOtherWritable ( ) const

Get the "Write status" for the "Other".

Returns
true The file/folder/... is writable
false The file/folder/... is NOT writable

§ isUserReadable()

bool etk::FSNodeRight::isUserReadable ( ) const

Get the "Read status" for the "User".

Returns
true The file/folder/... is readable
false The file/folder/... is NOT readable

§ isUserRunable()

bool etk::FSNodeRight::isUserRunable ( ) const

Get the "execute status" for the "User".

Returns
true The file/folder/... is executable
false The file/folder/... is NOT executable

§ isUserWritable()

bool etk::FSNodeRight::isUserWritable ( ) const

Get the "Write status" for the "User".

Returns
true The file/folder/... is writable
false The file/folder/... is NOT writable

§ operator=() [1/2]

etk::FSNodeRight& etk::FSNodeRight::operator= ( const etk::FSNodeRight _obj)

Copy asignement operator (operator=)

Parameters
[in]_objObject to copy
Returns
Local reference on the object

§ operator=() [2/2]

etk::FSNodeRight& etk::FSNodeRight::operator= ( const int32_t  _newVal)

Asignement operator (operator=)

Parameters
[in]_newValValue to set on the right
Returns
Local reference on the object

§ setGroupReadable()

void etk::FSNodeRight::setGroupReadable ( bool  _newStatus)

Set the "Read status" for the "Group".

Parameters
[in]_newStatusNew value to set on the file/folder/...

§ setGroupRunable()

void etk::FSNodeRight::setGroupRunable ( bool  _newStatus)

Set the "Execute status" for the "Group".

Parameters
[in]_newStatusNew value to set on the file/folder/...

§ setGroupWritable()

void etk::FSNodeRight::setGroupWritable ( bool  _newStatus)

Set the "Write status" for the "Group".

Parameters
[in]_newStatusNew value to set on the file/folder/...

§ setOtherReadable()

void etk::FSNodeRight::setOtherReadable ( bool  _newStatus)

Set the "Read status" for the "Other".

Parameters
[in]_newStatusNew value to set on the file/folder/...

§ setOtherRunable()

void etk::FSNodeRight::setOtherRunable ( bool  _newStatus)

Set the "Execute status" for the "Other".

Parameters
[in]_newStatusNew value to set on the file/folder/...

§ setOtherWritable()

void etk::FSNodeRight::setOtherWritable ( bool  _newStatus)

Set the "Write status" for the "Other".

Parameters
[in]_newStatusNew value to set on the file/folder/...

§ setUserReadable()

void etk::FSNodeRight::setUserReadable ( bool  _newStatus)

Set the "Read status" for the "User".

Parameters
[in]_newStatusNew value to set on the file/folder/...

§ setUserRunable()

void etk::FSNodeRight::setUserRunable ( bool  _newStatus)

Set the "execute status" for the "User".

Parameters
[in]_newStatusNew value to set on the file/folder/...

§ setUserWritable()

void etk::FSNodeRight::setUserWritable ( bool  _newStatus)

Set the "Write status" for the "User".

Parameters
[in]_newStatusNew value to set on the file/folder/...

The documentation for this class was generated from the following file: