openDAQ
Open data acquisition platform
PermissionMaskBuilderPtr Class Reference

Enumeration of available access permissions. More...

Inherits ObjectPtr< IPermissionMaskBuilder >.

Detailed Description

Enumeration of available access permissions.

A class which is responsible for creating a permission mask. This is a collection of Permission values which are allowed or denied for a given group id. Permission mask is defined as a 64-bit integer, where each bit corespond to a specific permission defined by Permission enum.

Public Member Functions

PermissionMaskBuilderPtr read () const
 Add read permission to the bit mask.
 
PermissionMaskBuilderPtr write () const
 Add write permission to the bit mask.
 
PermissionMaskBuilderPtr execute () const
 Add execute permission to the bit mask.
 
PermissionMaskBuilderPtr clear () const
 Removes all permissions from bit mask.
 
daq::Int build () const
 Build permission mask and return it as 64-bit integer. More...
 

Member Function Documentation

◆ build()

daq::Int build ( ) const
inline

Build permission mask and return it as 64-bit integer.

Parameters
permissionMask[out]Permission mask defined as 64-bit integer where each bit corresponds to a specific permissoin defined by Permission enum.