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-F9605837-2209-500D-AB62-48A433489C5E" xml:lang="en"><title>Resource |
|
13 file definition</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
|
14 <p>A source file consists of any number of statements:</p> |
|
15 <codeblock xml:space="preserve"><source-file> |
|
16 <b>source-file ::</b>= |
|
17 <statement-list> <statement> |
|
18 <b>statement ::</b>= |
|
19 <uid2-statement> | <uid3-statement> | <character_set-statement> | <enum-statement> | <name-statement> | <resource-statement> | <struct-statement></codeblock> |
|
20 <p>A summary of the keywords that are used for these statement types respectively |
|
21 is given below:</p> |
|
22 <table id="GUID-0138D798-2FA4-5940-89F5-D7D6BC07E9AF"> |
|
23 <tgroup cols="2"><colspec colname="col0"/><colspec colname="col1"/> |
|
24 <tbody> |
|
25 <row> |
|
26 <entry><p><xref href="GUID-383A617C-474B-509D-BA37-3515BCC5F1D1.dita">CHARACTER_SET</xref> </p> </entry> |
|
27 <entry><p>Defines the character set to be used</p> </entry> |
|
28 </row> |
|
29 <row> |
|
30 <entry><p><xref href="GUID-11BF98BD-814A-5CB8-B83E-6D14F38F1783.dita">ENUM</xref> </p> </entry> |
|
31 <entry><p>Defines a set of integer values</p> </entry> |
|
32 </row> |
|
33 <row> |
|
34 <entry><p><xref href="GUID-AECDAEBF-777A-579B-92F8-560FD7FF86E7.dita">NAME</xref> </p> </entry> |
|
35 <entry><p>By default, the resource IDs in the generated header file are allocated |
|
36 from 1 in ascending sequence. The sequence can be made to begin from another |
|
37 value using this statement.</p> </entry> |
|
38 </row> |
|
39 <row> |
|
40 <entry><p><xref href="GUID-32F00078-6084-5288-9D3F-9F8D70514799.dita">RESOURCE</xref> </p> </entry> |
|
41 <entry><p>Defines an actual resource <i>instance</i> of the type defined in |
|
42 a struct, gives it a resource id, and causes it to be generated in the resource |
|
43 file. </p> </entry> |
|
44 </row> |
|
45 <row> |
|
46 <entry><p><xref href="GUID-E932B20C-5155-530F-9669-6F5BB1F1AD41.dita">STRUCT</xref> </p> </entry> |
|
47 <entry><p>Defines a <i>type</i> of resource.</p> </entry> |
|
48 </row> |
|
49 <row> |
|
50 <entry><p><xref href="GUID-914DD950-4332-5F23-B725-F4D330DB19EB.dita">UID2</xref> </p> </entry> |
|
51 <entry><p>Defines the second UID for the resource file</p> </entry> |
|
52 </row> |
|
53 <row> |
|
54 <entry><p><xref href="GUID-914DD950-4332-5F23-B725-F4D330DB19EB.dita">UID3</xref> </p> </entry> |
|
55 <entry><p>Defines the third UID for the resource file</p> </entry> |
|
56 </row> |
|
57 </tbody> |
|
58 </tgroup> |
|
59 </table> |
|
60 <p>The most usual statements are <codeph>STRUCT</codeph> and <codeph>RESOURCE</codeph>. </p> |
|
61 </conbody></concept> |
|