sofs19  0.1
FUSE based file system
BinSelection

The bin selection toolkit. More...

Functions

void soBinSetIDs (uint32_t lower, uint32_t upper)
 Set bin configuration map. More...
 
void soBinAddIDs (uint32_t lower, uint32_t upper)
 Add bin ID range to the current bin configuration map. More...
 
void soBinRemoveIDs (uint32_t lower, uint32_t upper)
 Remove bin ID range from the current bin configuration map. More...
 
bool soBinSelected (uint32_t id)
 Check if given ID is activated. More...
 

Detailed Description

The bin selection toolkit.

This toolkit allows to choose the binary functions to be used. Every function in the sofs19 API has a unique ID. Every function to be implemented has 3 versions, with prefixes so, bin, and grp, corresponding to the main version, the binary version, and the group version, respectively. The main version calls either the binary version or the group version depending on the current bin configuration map. If the function ID is included in the bin configuration mao, the binary version is called; otherwise, the group version is called.

Function Documentation

◆ soBinSetIDs()

void sofs19::soBinSetIDs ( uint32_t  lower,
uint32_t  upper 
)

Set bin configuration map.

Resets the current bin configuration and sets the given range as the new bin configuration map.

Parameters
lowerleft margin of the range to be activated
upperright margin of the range to be activated

◆ soBinAddIDs()

void sofs19::soBinAddIDs ( uint32_t  lower,
uint32_t  upper 
)

Add bin ID range to the current bin configuration map.

Parameters
lowerleft margin of the range to be added
upperright margin of the range to be added

◆ soBinRemoveIDs()

void sofs19::soBinRemoveIDs ( uint32_t  lower,
uint32_t  upper 
)

Remove bin ID range from the current bin configuration map.

Parameters
lowerleft margin of the range to be deactivated
upperright margin of the range to be deactivated

◆ soBinSelected()

bool sofs19::soBinSelected ( uint32_t  id)

Check if given ID is activated.

IDs covered by the current configuration represent binary functions to be used.

Parameters
idID of the function to be checked
Returns
true if the given ID is included in the current configuration map and false otherwise.