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