userlibandfileserver/fileserver/sfat32/sl_fatcache.h
changeset 11 329ab0095843
parent 10 36bfc973b146
equal deleted inserted replaced
10:36bfc973b146 11:329ab0095843
    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.