|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --> |
|
3 <!-- This component and the accompanying materials are made available under the terms of the License |
|
4 "Eclipse Public License v1.0" which accompanies this distribution, |
|
5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
6 <!-- Initial Contributors: |
|
7 Nokia Corporation - initial contribution. |
|
8 Contributors: |
|
9 --> |
|
10 <!DOCTYPE concept |
|
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
|
12 <concept id="GUID-9372CB71-2C75-5B3D-81EA-B4257C3162C7" xml:lang="en"><title>Store |
|
13 streams example code</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
|
14 <section id="GUID-CFC06048-6EAF-563E-A7BC-7CB4C99AA4C7"><title>WriteToMany: |
|
15 externalizing to more than one stream/deferred loading</title> <p><b>Description</b> </p> <p>This |
|
16 example shows how a network of objects can be written to more than one stream |
|
17 in a direct file store, and how the loading of an object from the store into |
|
18 memory may be deferred. </p> <p><b>Download</b> </p> <p>Download the example: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/zips/guid-3b74b037-3596-4387-b60c-30f55daa1cdf.zip" scope="external">WriteToMany.zip</xref>.</p><p>Download some additional files |
|
19 required by the example: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/zips/guid-89fa6105-e749-4e5f-a233-a000e3b9390b.zip" scope="external">CommonFramework.zip</xref>.</p><p>View the source code: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/guid-3b74b037-3596-4387-b60c-30f55daa1cdf.html" scope="peer">browse</xref>. View the additional files: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/guid-89fa6105-e749-4e5f-a233-a000e3b9390b.html" scope="peer">browse</xref>.</p> <p><b>Class summary</b></p><ul> |
|
20 <li><p><xref href="GUID-346D4908-15C7-3F15-945F-D561E774022D.dita"><apiname>RStoreWriteStream</apiname></xref> -Supports the writing of a stream |
|
21 to a store.</p></li> |
|
22 <li><p><xref href="GUID-4FA6EE6C-5B4E-39E0-B888-ABDE19985976.dita"><apiname>RStoreReadStream</apiname></xref> - Supports the opening and manipulation |
|
23 of an existing stream in a store.</p></li> |
|
24 <li><p><xref href="GUID-8B713854-7858-3E02-8A1C-B3E6C1C9EA85.dita"><apiname>CDirectFileStore</apiname></xref> - Direct file store.</p></li> |
|
25 <li><p><xref href="GUID-1C4D4AFD-85E2-3D5D-B704-D1FA0E5E7DA2.dita"><apiname>TStreamId</apiname></xref> - Provides unique identification for stream |
|
26 within a store.</p></li> |
|
27 <li><p><xref href="GUID-D10FA32F-32F7-3488-9AAC-CB95270EA006.dita"><apiname>TSwizzle</apiname></xref> - Maintains a dual representation for an |
|
28 object. </p></li> |
|
29 </ul> </section> |
|
30 <section id="GUID-8E522D0B-C74C-5B14-9483-827DC79DEF46"><title>WriteToEmbedded: |
|
31 using an embedded store</title> <p><b>Description</b> </p> <p>This example |
|
32 shows how an object can be externalized to a store embedded within a permanent |
|
33 file store. </p> <p><b>Download</b> </p> <p>Download the example: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/zips/guid-2e15aa67-747d-4457-8f6a-3fe2a423861a.zip" scope="external">WriteToEmbedded.zip</xref>.</p><p>Download some additional |
|
34 files required by the example: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/zips/guid-89fa6105-e749-4e5f-a233-a000e3b9390b.zip" scope="external">CommonFramework.zip</xref>.</p><p>View the source code: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/guid-2e15aa67-747d-4457-8f6a-3fe2a423861a.html" scope="peer">browse</xref>. View the additional files: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/guid-89fa6105-e749-4e5f-a233-a000e3b9390b.html" scope="peer">browse</xref></p> <p><b>Class summary</b></p><ul> |
|
35 <li><p><xref href="GUID-346D4908-15C7-3F15-945F-D561E774022D.dita"><apiname>RStoreWriteStream</apiname></xref> - Supports the writing of a stream |
|
36 to a store.</p></li> |
|
37 <li><p><xref href="GUID-4FA6EE6C-5B4E-39E0-B888-ABDE19985976.dita"><apiname>RStoreReadStream</apiname></xref> - Supports the opening and manipulation |
|
38 of an existing stream in a store.</p></li> |
|
39 <li><p><xref href="GUID-A61CA45C-B19A-33FC-8233-76530DCDF03C.dita"><apiname>CPermanentFileStore</apiname></xref> - Permanent file store.</p></li> |
|
40 <li><p><xref href="GUID-1C4D4AFD-85E2-3D5D-B704-D1FA0E5E7DA2.dita"><apiname>TStreamId</apiname></xref> - Provides unique identification for stream |
|
41 within a store.</p></li> |
|
42 <li><p><xref href="GUID-F2EC3A9D-5F4B-3C98-98DC-44394C54B6DE.dita"><apiname>CEmbeddedStore</apiname></xref> - Encapsulates an embedded store.</p></li> |
|
43 <li><p><xref href="GUID-21637329-EC49-39AD-8986-A22289D8CFE8.dita"><apiname>CPersistentStore</apiname></xref> - Persistent store abstract base |
|
44 class. It provides the behaviour for setting and retrieving the root stream |
|
45 id.</p></li> |
|
46 </ul> </section> |
|
47 <section id="GUID-4C25485D-7FE0-5699-86E7-F92BEE6BFADA"><title>StoreMap: using |
|
48 a store map</title> <p><b>Description</b> </p> <p>This example demonstrates |
|
49 the streaming of a compound object to multiple streams with deferred loading. |
|
50 It also illustrates the use of a store map (<codeph>CStoreMap</codeph>). </p><p><b>Related |
|
51 APIs</b></p><ul> |
|
52 <li><p><xref href="GUID-D3E27885-46A1-35C1-97E5-17E4EDF72E56.dita"><apiname>CStoreMap</apiname></xref> - Store map used when externalising swizzled |
|
53 in-memory objects.</p></li> |
|
54 </ul> <p><b>Download</b> </p> <p>Download the example: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/zips/guid-901ebb49-18f8-4c15-81d9-79b22e2beb87.zip" scope="external">StoreMap.zip</xref>.</p><p>Download some additional files |
|
55 required by the example: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/zips/guid-89fa6105-e749-4e5f-a233-a000e3b9390b.zip" scope="external">CommonFramework.zip</xref>.</p><p>View the source code: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/guid-901ebb49-18f8-4c15-81d9-79b22e2beb87.html" scope="peer">browse</xref>. View the additional files: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/guid-89fa6105-e749-4e5f-a233-a000e3b9390b.html" scope="peer">browse</xref>.</p> <p><b>Class summary</b></p><ul> |
|
56 <li><p><xref href="GUID-346D4908-15C7-3F15-945F-D561E774022D.dita"><apiname>RStoreWriteStream</apiname></xref></p></li> |
|
57 <li><p><xref href="GUID-4FA6EE6C-5B4E-39E0-B888-ABDE19985976.dita"><apiname>RStoreReadStream</apiname></xref></p></li> |
|
58 <li><p><xref href="GUID-A61CA45C-B19A-33FC-8233-76530DCDF03C.dita"><apiname>CPermanentFileStore</apiname></xref></p></li> |
|
59 <li><p><xref href="GUID-D3E27885-46A1-35C1-97E5-17E4EDF72E56.dita"><apiname>CStoreMap</apiname></xref></p></li> |
|
60 <li><p><xref href="GUID-D10FA32F-32F7-3488-9AAC-CB95270EA006.dita"><apiname>TSwizzle</apiname></xref></p></li> |
|
61 </ul> </section> |
|
62 </conbody></concept> |