Java structure holding multiple variables that can be written and read as an integer? -


i sure exists, , believe did similar in c quite while bit fields, cannot think of how should this.

basically have series of options can either on or off. these options describe operations application can perform on file e.g.

structure {   execute   read   write } 

if structure bit field able set structure value represents both read , write not execute (e.g. 3). if read structure give me 3 know given value execute should denied. bit field solution may not best solution in case though.

definitely enumset 'zapl' recommended (check here)

or have list of enum, latter makes more sense.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -