equal
deleted
inserted
replaced
|
1 /** |
|
2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
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". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 /** |
|
23 @file MetaContainer.inl |
|
24 @internalTechnology |
|
25 */ |
|
26 |
|
27 #ifndef __METACONTAINER_INL__ |
|
28 #define __METACONTAINER_INL__ |
|
29 |
|
30 namespace Meta |
|
31 { |
|
32 |
|
33 template<class ELEMENT> |
|
34 RMetaDataContainer<ELEMENT>* RMetaDataContainer<ELEMENT>::LoadL(TPtrC8& aDes) |
|
35 /** |
|
36 * This function instantiates a container of meta objects and loads its content |
|
37 * from a descriptor. |
|
38 */ |
|
39 { |
|
40 RMetaDataContainer<ELEMENT>* cont = new (ELeave) RMetaDataContainer<ELEMENT>; |
|
41 User::LeaveIfError(cont->Load(aDes)); |
|
42 return cont; |
|
43 } |
|
44 |
|
45 template<class ELEMENT> |
|
46 inline RMetaDataContainer<ELEMENT>::RMetaDataContainer() |
|
47 /** |
|
48 * Constructor |
|
49 */ |
|
50 { |
|
51 } |
|
52 |
|
53 template<class ELEMENT> |
|
54 SMetaData* RMetaDataContainer<ELEMENT>::LoadElementL(TPtrC8& aDes) |
|
55 /** |
|
56 * This helper function instantiates a single meta object (element) and loads |
|
57 * its content from a descriptor. |
|
58 */ |
|
59 { |
|
60 return ELEMENT::LoadL(aDes); |
|
61 } |
|
62 |
|
63 } // namespace Meta |
|
64 #endif // __METACONTAINER_INL__ |