netmsgs
1.2.2
RoadNarrows Robotics Network Messaging Package
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
netmsgsgen.doxy
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////////////
2
//
3
// Package: NetMsgs
4
//
5
// File: netmsgsgen.doxy
6
//
7
// $LastChangedDate: 2012-02-14 17:00:34 -0700 (Tue, 14 Feb 2012) $
8
// $Rev: 1805 $
9
//
10
// Description:
11
// This file contains the doxygen directives to generate the standard
12
// man pages for the netmsgsgen executable python script.
13
//
14
////////////////////////////////////////////////////////////////////////////////
15
16
/*! \file */
17
18
/*!
19
* \defgroup man_netmsgsgen netmsgsgen Man Page
20
* \{
21
*
22
23
\par Name:
24
netmsgsgen - Generate source files from NetMsgs XML specification.
25
26
\par Synopsis:
27
<tt>
28
netmsgsgen [OPTIONS] --lang=c --xml=<em>xmlfile hfile cfile</em>\n
29
netmsgsgen [OPTIONS] --lang=python --xml=<em>xmlfile pyfile</em>\n
30
\n
31
netmsgsgen --version\n
32
netmsgsgen --help
33
</tt>
34
35
\par Description:
36
The <b>netmsgsgen</b> executable Python scrip generates source files from
37
a NetMsgs XML specfication.
38
Output languages supported are:\n
39
\li C
40
\li python
41
42
\par Options:
43
Mandatory arguments to long options are also mandatory for short options.
44
\htmlonly
45
<table class="rnr-opts">
46
<tr><td class="rnr-opts-grp">Generate</td></tr>
47
48
<tr><td class="rnr-opts-opt">
49
-d, --debug=<em>level</em>
50
</td></tr>
51
<tr><td>
52
Print debugging information while parsing the XML file and generating source
53
output.<br>
54
Debug <em>level</em> is one of: 0 1 2 3.<br>
55
Default: 0 (off).
56
</td></tr>
57
58
<tr><td class="rnr-opts-opt">
59
-i, --incprefix=<em>path</em>
60
</td></tr>
61
<tr><td>
62
Include prefix for '#include' in .c source file for generated .h header
63
file.<br>
64
Default: ''
65
</td></tr>
66
67
<tr><td class="rnr-opts-opt">
68
-l, --lang=<em>lang</em>
69
</td></tr>
70
<tr><td>
71
Output language generations.<br>
72
One of: c python.
73
</td></tr>
74
75
<tr><td class="rnr-opts-opt">
76
-o, --overrides=<em>list</em>
77
</td></tr>
78
<tr><td>
79
XML overrides. <em>List</em> in form of: name=value[,...]<br>
80
Supported overrides: encoding, endian, ns, brief
81
</td></tr>
82
83
<tr><td class="rnr-opts-opt">
84
-x, --xml=<em>xmlfile</em>
85
</td></tr>
86
<tr><td>
87
Input NetMsgs XML file relative or absolute path name.
88
</tr>
89
</td></tr>
90
91
<tr><td class="rnr-opts-grp">Information</td></tr>
92
<tr><td class="rnr-opts-opt">
93
--help
94
</td></tr>
95
<tr><td>
96
Display command help and exit.
97
</td></tr>
98
<tr><td class="rnr-opts-opt">
99
--version
100
</td></tr>
101
<tr><td>
102
Output version information and exit.
103
</td></tr>
104
</table>
105
\endhtmlonly
106
107
\par Arguments:
108
\htmlonly
109
<table class="rnr-opts">
110
<tr>
111
<td class="rnr-opts-opt"><em>hfile</em></td>
112
<td>Generated output C .h file relative or absolute path name.</td>
113
</tr>
114
<tr>
115
<td class="rnr-opts-opt"><em>cfile</em></td>
116
<td>Generated output C .c file relative or absolute path name.</td>
117
</tr>
118
<tr>
119
<td class="rnr-opts-opt"><em>pyfile</em></td>
120
<td>Generated output Python .py file relative or absolute path name.</td>
121
</tr>
122
</table>
123
\endhtmlonly
124
125
\par Notes:
126
The <b>netmsgsgen</b> script uses the NetMsgs python package. This package
127
must be installed and the python path environment must point to the installed
128
location.
129
130
\par Examples:
131
\htmlonly
132
<pre class="fragment"><div class="fragment"><span
133
class="comment"># Example 1
134
# Generate C source files relative to current working directory.
135
$
136
$ netmsgsgen --lang=c --xml=AstroMsgs.xml include/AstroMsgs.h AstroMsgs.c
137
$
138
</div></pre>
139
\endhtmlonly
140
\n
141
\htmlonly
142
<pre class="fragment"><div class="fragment"><span
143
class="comment"># Example 2
144
# Generate Python source file overriding message encoding and namespace.
145
$
146
$ netmsgsgen --overrides="encoding=flat,ns=Cosmo" --lang=python \
147
--xml=/myprj/AstroMsgs.xml /myprj/modules/Cosmo/ComosMsgs.py
148
$
149
</div></pre>
150
\endhtmlonly
151
152
\} */
/* end of man_netmsgsgen */
docs
doxy
netmsgsgen.doxy
Generated on Fri Aug 10 2018 13:54:11 for netmsgs by
1.8.11
©2018 RoadNarrows LLC
www.roadnarrows.com