equal
deleted
inserted
replaced
|
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-9C6D94B2-8F03-5A4D-9AEC-7C3FEA0E1ACA" xml:lang="en"><title>Dictionary |
|
13 read streams</title><shortdesc>How to read from a stream located in a dictionary store.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody> |
|
14 <p>Applications must construct an <codeph>RDictionaryReadStream</codeph> object |
|
15 before they can read from a stream located in a dictionary store. </p> |
|
16 <p>The dictionary store in which the stream is located and the UID associated |
|
17 with that stream are specified when the <codeph>RDictionaryReadStream</codeph> is |
|
18 opened.</p> |
|
19 <p>The following code fragment is typical. <codeph>store</codeph> is a pointer |
|
20 to an opened dictionary store. <codeph>RDictionaryReadStream::OpenLC()</codeph> opens |
|
21 the stream associated with the UID <codeph>theuid</codeph>:</p> |
|
22 <codeblock id="GUID-DDAF541C-43E2-54D0-A4BD-1484F208A6F1" xml:space="preserve">... |
|
23 TUid theuid; |
|
24 CDictionaryStore* store; |
|
25 ... |
|
26 RDictionaryReadStream instream; |
|
27 instream.OpenLC(*store,theuid); |
|
28 TSomeData data; |
|
29 instream >> data; |
|
30 CleanupStack::PopAndDestroy(); |
|
31 ...</codeblock> |
|
32 </conbody></concept> |