userlibandfileserver/fileserver/sfat32/sl_fatcache.h
changeset 8 538db54a451d
parent 6 0173bcd7697c
equal deleted inserted replaced
7:f497542af8e4 8:538db54a451d
    26 #define SL_FAT_CACHE_H
    26 #define SL_FAT_CACHE_H
    27 
    27 
    28 
    28 
    29 //-----------------------------------------------------------------------------
    29 //-----------------------------------------------------------------------------
    30 
    30 
    31 /**
       
    32     A simple abstraction of the 32 bit flags
       
    33 */
       
    34 class T32Bits
       
    35 {
       
    36  public:
       
    37     T32Bits() : iData(0) {}
       
    38 
       
    39     inline void  Clear();
       
    40     inline TBool HasBitsSet() const;
       
    41     inline void SetBit(TUint32 aIndex);
       
    42     inline TBool operator[](TUint32 aIndex) const;
       
    43 
       
    44  private:
       
    45     TUint32 iData; ///< 32 bits data
       
    46 };
       
    47 
       
    48 //-----------------------------------------------------------------------------
       
    49 
       
    50 class CFatBitCache;
    31 class CFatBitCache;
    51 
    32 
    52 /**
    33 /**
    53     An abstract base class for all types of FAT caches.
    34     An abstract base class for all types of FAT caches.
    54     Provides user interface and some common for all types of FAT caches functionality.
    35     Provides user interface and some common for all types of FAT caches functionality.