diff -r f497542af8e4 -r 538db54a451d userlibandfileserver/fileserver/fs_utils/filesystem_utils.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/userlibandfileserver/fileserver/fs_utils/filesystem_utils.h Mon Jan 18 21:31:10 2010 +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__ + + + + + + + + + + + +