authenticationservices/authenticationserver/source/common/arrayutils.h
branchRCL_3
changeset 53 030c4fbc13d7
parent 50 d07aa956024a
child 57 e0a1505373c1
child 58 b54b58ee9d58
--- a/authenticationservices/authenticationserver/source/common/arrayutils.h	Thu Apr 01 00:24:41 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,78 +0,0 @@
-/*
-* Copyright (c) 2003-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: 
-* Utility functions for streaming arrays.
-*
-*/
-
-
-/**
- @file 
- @released
- @internalComponent 
-*/
-
-#ifndef __ARRAYUTILS_H_
-#define __ARRAYUTILS_H_
-
-#include <s32strm.h>
-
-namespace AuthServer
-{
-	
-/////////////////////////////////////////////////////////////////////
-// RPointerArray utilities
-/////////////////////////////////////////////////////////////////////
-
-template <class T>
-void ExternalizePointerArrayL(const RPointerArray<T>& aArray, RWriteStream& aStream);
-
-template <class T>
-void InternalizePointerArrayL(RPointerArray<T>& aArray, RReadStream& aStream);
-
-/////////////////////////////////////////////////////////////////////
-// RArray utilities
-/////////////////////////////////////////////////////////////////////
-
-template <class T>
-void ExternalizeArrayL(const RArray<T>& aArray, RWriteStream& aStream);
-
-template <class T>
-void InternalizeArrayL(RArray<T>& aArray, RReadStream& aStream);
-
-/////////////////////////////////////////////////////////////////////
-// Traits classes - internally required by RPointerArray functions
-/////////////////////////////////////////////////////////////////////
-
-template <class T>
-class TTraits
-	{
-public:
-	static T* ReadFromStreamLC(RReadStream& aStream) { return T::NewLC(aStream); }
-	static void WriteToStreamL(const T& aItem, RWriteStream& aStream) { aStream << aItem; }
-	};
-
-// Specialisation for HBufs
-template <>
-class TTraits<HBufC16>
-	{
-public:
-	static HBufC16* ReadFromStreamLC(RReadStream& aStream) { return HBufC16::NewLC(aStream, KMaxTInt); }
-	static void WriteToStreamL(const HBufC16& aItem, RWriteStream& aStream) { aStream << aItem; }
-	};
-
-#include "arrayutils.inl"
-} // namespace AuthServer
-
-#endif  // __ARRAYUTILS_H_