2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
23 @file MetaContainer.inl
27 #ifndef __METACONTAINER_INL__
28 #define __METACONTAINER_INL__
33 template<class ELEMENT>
34 RMetaDataContainer<ELEMENT>* RMetaDataContainer<ELEMENT>::LoadL(TPtrC8& aDes)
36 * This function instantiates a container of meta objects and loads its content
40 RMetaDataContainer<ELEMENT>* cont = new (ELeave) RMetaDataContainer<ELEMENT>;
41 User::LeaveIfError(cont->Load(aDes));
45 template<class ELEMENT>
46 inline RMetaDataContainer<ELEMENT>::RMetaDataContainer()
53 template<class ELEMENT>
54 SMetaData* RMetaDataContainer<ELEMENT>::LoadElementL(TPtrC8& aDes)
56 * This helper function instantiates a single meta object (element) and loads
57 * its content from a descriptor.
60 return ELEMENT::LoadL(aDes);
64 #endif // __METACONTAINER_INL__