ADTF  3.18.2
cFileAttributes

File attribute class. More...

Public Types

enum  FileAttributeFlag {
  ATTRIBUTE_READONLY = 1 , ATTRIBUTE_FOLDER = 2 , ATTRIBUTE_HIDDEN = 4 , ATTRIBUTE_SYSTEM = 8 ,
  ATTRIBUTE_ARCHIVE = 16 , ATTRIBUTE_COMPRESSED = 32 , ATTRIBUTE_ENCRYPTED = 64 , ATTRIBUTE_OFFLINE = 128 ,
  ATTRIBUTE_SYMLINK = 256 , ATTRIBUTE_PIPE = 512 , ATTRIBUTE_BLOCKDEVICE = 1024 , ATTRIBUTE_CHARDEVICE = 2048 ,
  ATTRIBUTE_INVALID = 0xFFFFFFFF
}
 Enumeration of file attributes.
 

Public Member Functions

 cFileAttributes ()
 Default constructor. More...
 
 cFileAttributes (tUInt32 nAttributes)
 Constructor for settings attributes through a bitmask. More...
 
tBool Set (tUInt32 nAttributes)
 Set attributes through a bitmask. More...
 
tUInt32 GetAttributes (tUInt32 &nAttributes) const
 Returns the attributes as a bitmask. More...
 

Public Attributes

tBool bValid
 
tBool bReadOnly
 Is readonly.
 
tBool bFolder
 Is a folder.
 
tBool bHidden
 is a hidden file/directory,...
 
tBool bSystem
 is a system file/directory,...
 
tBool bArchive
 is archived
 
tBool bCompressed
 is compressed
 
tBool bEncrypted
 is encrypted
 
tBool bOffline
 
tBool bSymLink
 is a symbolic link
 
tBool bPipe
 is a pipe
 
tBool bBlockDevice
 is a block device
 
tBool bCharDevice
 is a character device
 

Private Member Functions

void Init ()
 

Detailed Description

Constructor & Destructor Documentation

◆ cFileAttributes() [1/2]

cFileAttributes ( )
inline

Default constructor.

This method is real-time safe.\nSee @ref page_real_time_safe.\n

Definition at line 69 of file builds/digitalwerk/solutions/adtf_content/adtf_base/adtf_core/src/libraries/a_utils/include/a_utils/core/filesystem.h.

◆ cFileAttributes() [2/2]

cFileAttributes ( tUInt32  nAttributes)
inline

Constructor for settings attributes through a bitmask.

Parameters
nAttributes[in] The attributes.
This method is real-time safe.\nSee @ref page_real_time_safe.\n

Definition at line 79 of file builds/digitalwerk/solutions/adtf_content/adtf_base/adtf_core/src/libraries/a_utils/include/a_utils/core/filesystem.h.

Member Function Documentation

◆ GetAttributes()

tUInt32 GetAttributes ( tUInt32 nAttributes) const
inline

Returns the attributes as a bitmask.

Parameters
nAttributes[out] This parameter will be filled with the bitmask.
Returns
A bitmask of all attributes.
This method is real-time safe.\nSee @ref page_real_time_safe.\n

Definition at line 132 of file builds/digitalwerk/solutions/adtf_content/adtf_base/adtf_core/src/libraries/a_utils/include/a_utils/core/filesystem.h.

◆ Set()

tBool Set ( tUInt32  nAttributes)
inline

Set attributes through a bitmask.

Parameters
nAttributes[in] The attributes.
Returns
tTrue if successfull, otherwise false.
This method is real-time safe.\nSee @ref page_real_time_safe.\n

Definition at line 94 of file builds/digitalwerk/solutions/adtf_content/adtf_base/adtf_core/src/libraries/a_utils/include/a_utils/core/filesystem.h.

Member Data Documentation

◆ bOffline

◆ bValid