Debian Codegraph @

help/info/objid.html

raw symbols SCIP
1 <!--
2 Copyright (c) 2000-2021 Ericsson Telecom AB
3 All rights reserved. This program and the accompanying materials
4 are made available under the terms of the Eclipse Public License v2.0
5 which accompanies this distribution, and is available at
6 https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
7
8 Contributors:
9 Baji, Laszlo
10 Balasko, Jeno
11 Farkas, Laszlo
12 Forstner, Matyas
13 Gecse, Roland
14 Szabados, Kristof
15 Szabo, Janos Zoltan – initial implementation
16 -->
17 <html>
18 <head>
19 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
20 <meta http-equiv="Content-Language" content="en-us">
21 <title>objid</title>
22 </head>
23 <body bgcolor="#DAD3C5" vlink="#0094D2" link="#003258">
24 <table align="left" border="0" cellspacing="0" cellpadding="0" valign=top>
25 <tr>
26 <td width=105 height=40><a href="https://projects.eclipse.org/projects/tools.titan"><img src="../images/titan_transparent.gif" border=0 width=105 height=40 align="left" alt="Titan"></a></td>
27 </tr>
28 </table>
29 <table border="0" align="right" cellpadding="0" cellspacing="0">
30 <tr>
31 <td><a href="../titan_main.html" alt="contents"><img border="0" src="../images/ao.jpg" width="53" height="40"></a></td>
32 <td><a href="../titan_index.html" alt="index"><img border="0" src="../images/up.jpg" width="53" height="40"></a></td>
33 <td><a href="null.html" alt="previous"><img border="0" src="../images/left.jpg" width="53" height="40"></a></td>
34 <td><a href="oct2bit.html" alt="next"><img border="0" src="../images/right.jpg" width="53" height="40"></a></td>
35 </tr>
36 </table>
37 <p><br clear="all">
38 </p>
39 <hr>
40 <h1>objid</h1>
41 <p>The keyword bears multiple meanings:
42 <ol>
43 <li>Provides unique identification for TTCN-3 modules
44 <li>Denotes the TTCN-3 predefined type for object identifier
45 </ol>
46 <hr align="left" width="50%">
47 <h3>1. Identification of TTCN-3 modules</h3>
48 <p>A unique object identifier value may be assigned to each TTCN-3 module in order to distinguish e.g. different revisions of the implemented protocol specification.
49 <p>This object identifier value may then be used in import statement to uniquely address the desired module.
50 <p>Refer to keywords <a href="module.html"><b><font face="Courier New" color="#003258" size="4">module</font></b></a> and <a href="import.html"><b><font face="Courier New" color="#003258"
51 size="4">import</font></b></a> for further details!
52 <hr align="left" width="50%">
53 <p>Related keywords:</p>
54 <ul>
55 <li><a href="import.html"><b><font face="Courier New" color="#003258" size="4">import</font></b></a></li>
56 <li><a href="module.html"><b><font face="Courier New" color="#003258" size="4">module</font></b></a></li>
57 </ul>
58 <hr align="left" width="50%">
59 <div align="center">
60 <center>
61 <table border="0" width="90%" bgcolor="#FFB599" cellpadding="4">
62 <tr>
63 <td width="100%">
64 <h3 align="center"><i>modulename</i> . <font face="Courier New" color="#003258" size="5"><b>objid {</b></font> <i>object_identifier_elements</i> <font face="Courier New" color="#003258"
65 size="5"><b>}</b></font></h3>
66 </td>
67 </tr>
68 </table>
69 </center>
70 </div>
71 <ul>
72 <li>The modulename refers to a valid TTCN-3 or ASN.1 module.
73 </ul>
74 <hr align="left" width="75%">
75 <h3>2. The <code>objid</code> predefined type</h3>
76 <p>TTCN-3 offers the built-in object identifer type for storing object identifier values.
77 <hr align="left" width="50%">
78 <p>Related keywords: none</p>
79 <hr align="left" width="50%">
80 <div align="center">
81 <center>
82 <table border="0" width="90%" bgcolor="#FFB599" cellpadding="4">
83 <tr>
84 <td width="100%">
85 <h3><font face="Courier New" color="#003258" size="5"><b>objid {</b></font> <i>object_identifier_elements</i> <font face="Courier New" color="#003258" size="5"><b>}</b></font></h3>
86 </td>
87 </tr>
88 </table>
89 </center>
90 </div>
91 <ul>
92 <li>The <code>objid</code> can be used to type constants, module parameters, variables and templates.
93 <li>The object identifier value itself starts with the <code>objid</code> keyword followed by the elements of the object identifier in curly braces.
94 <li>Inside object identifier elements all formats (name, number and name-number form) are accepted.
95 </ul>
96 <hr align="left" width="25%">
97 <p>Example:
98 <p><code> const objid c_etsiIN := objid { itu_t identified_organization etsi(0) inDomain(1) }<br>
99 var objid v_etsiInIso := objid { iso identified_organization dod(6) internet(1) private(4) enterprise(1) etsi(13019) }<br>
100 </code>
101 <p>The above example defines an constant and a variable for holding an object identifier. Both are initialized with proper, reserved object identifier values. Inside the values one can observe the
102 mixed use of elements.
103 <hr align="left" width="25%">
104 <p><a HREF="BNF.html#objectidentifiervalue">BNF definition</a> of <font face="Courier New">objid</font></p>
105 </body>
106 </html>