diff -r 000000000000 -r bde4ae8d615e os/kernelhwsrv/userlibandfileserver/fileserver/fs_utils/filesystem_utils.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/os/kernelhwsrv/userlibandfileserver/fileserver/fs_utils/filesystem_utils.h Fri Jun 15 03:10:57 2012 +0200 @@ -0,0 +1,118 @@ +// Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of the License "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// +// Collection of common constants, utility functions, etc. for the file server and file systems. +// Definitions here must be filesystem-agnostic, i.e. generic enougs to be used by every file system +// +// This is the internal file and must not be exported. + +/** + @file + @internalTechnology +*/ + +#if !defined(__FILESYSTEM_UTILS_H__) +#define __FILESYSTEM_UTILS_H__ + +#if !defined(__E32BASE_H__) +#include +#endif + +//####################################################################################################################################### +//# constants definitions +//####################################################################################################################################### + +const TUint KBitsInByteLog2 = 3; +const TUint KBitsInByte = 1< "Name" + + +//####################################################################################################################################### +/** + A class representing a simple abstraction of the 32 bit flags +*/ +class T32Bits +{ + public: + T32Bits() : iData(0) {} + + inline void Clear(); + inline TBool HasBitsSet() const; + inline void SetBit(TUint32 aIndex); + inline TBool operator[](TUint32 aIndex) const; + + private: + TUint32 iData; ///< 32 bits data +}; + + + + + + +#include "filesystem_utils.inl" + + +#endif //__FILESYSTEM_UTILS_H__ + + + + + + + + + + + +