Sync with 5.4.0
[deliverable/titan.core.git] / help / info / objid.html
CommitLineData
970ed795 1<!--
3abe9331 2 Copyright (c) 2000-2015 Ericsson Telecom AB
970ed795
EL
3
4 All rights reserved. This program and the accompanying materials
5 are made available under the terms of the Eclipse Public License v1.0
6 which accompanies this distribution, and is available at
7 http://www.eclipse.org/legal/epl-v10.html
8 -->
9<html>
10<head>
11<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
12<meta http-equiv="Content-Language" content="en-us">
13<title>objid</title>
14</head>
15<body bgcolor="#DAD3C5" vlink="#0094D2" link="#003258">
16<table align="left" border="0" cellspacing="0" cellpadding="0" valign=top>
17 <tr>
18 <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>
19 </tr>
20</table>
21<table border="0" align="right" cellpadding="0" cellspacing="0">
22 <tr>
23 <td><a href="../titan_main.html" alt="contents"><img border="0" src="../images/ao.jpg" width="53" height="40"></a></td>
24 <td><a href="../titan_index.html" alt="index"><img border="0" src="../images/up.jpg" width="53" height="40"></a></td>
25 <td><a href="null.html" alt="previous"><img border="0" src="../images/left.jpg" width="53" height="40"></a></td>
26 <td><a href="oct2bit.html" alt="next"><img border="0" src="../images/right.jpg" width="53" height="40"></a></td>
27 </tr>
28</table>
29<p><br clear="all">
30</p>
31<hr>
32<h1>objid</h1>
33<p>The keyword bears multiple meanings:
34<ol>
35 <li>Provides unique identification for TTCN-3 modules
36 <li>Denotes the TTCN-3 predefined type for object identifier
37</ol>
38<hr align="left" width="50%">
39<h3>1. Identification of TTCN-3 modules</h3>
40<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.
41<p>This object identifier value may then be used in import statement to uniquely address the desired module.
42<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"
43 size="4">import</font></b></a> for further details!
44<hr align="left" width="50%">
45<p>Related keywords:</p>
46<ul>
47 <li><a href="import.html"><b><font face="Courier New" color="#003258" size="4">import</font></b></a></li>
48 <li><a href="module.html"><b><font face="Courier New" color="#003258" size="4">module</font></b></a></li>
49</ul>
50<hr align="left" width="50%">
51<div align="center">
52<center>
53<table border="0" width="90%" bgcolor="#FFB599" cellpadding="4">
54 <tr>
55 <td width="100%">
56 <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"
57 size="5"><b>}</b></font></h3>
58 </td>
59 </tr>
60</table>
61</center>
62</div>
63<ul>
64 <li>The modulename refers to a valid TTCN-3 or ASN.1 module.
65</ul>
66<hr align="left" width="75%">
67<h3>2. The <code>objid</code> predefined type</h3>
68<p>TTCN-3 offers the built-in object identifer type for storing object identifier values.
69<hr align="left" width="50%">
70<p>Related keywords: none</p>
71<hr align="left" width="50%">
72<div align="center">
73<center>
74<table border="0" width="90%" bgcolor="#FFB599" cellpadding="4">
75 <tr>
76 <td width="100%">
77 <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>
78 </td>
79 </tr>
80</table>
81</center>
82</div>
83<ul>
84 <li>The <code>objid</code> can be used to type constants, module parameters, variables and templates.
85 <li>The object identifier value itself starts with the <code>objid</code> keyword followed by the elements of the object identifier in curly braces.
86 <li>Inside object identifier elements all formats (name, number and name-number form) are accepted.
87</ul>
88<hr align="left" width="25%">
89<p>Example:
90<p><code> const objid c_etsiIN := objid { itu_t identified_organization etsi(0) inDomain(1) }<br>
91var objid v_etsiInIso := objid { iso identified_organization dod(6) internet(1) private(4) enterprise(1) etsi(13019) }<br>
92</code>
93<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
94mixed use of elements.
95<hr align="left" width="25%">
96<p><a HREF="BNF.html#objectidentifiervalue">BNF definition</a> of <font face="Courier New">objid</font></p>
97</body>
98</html>
This page took 0.041524 seconds and 5 git commands to generate.