netmsgs  1.2.2
RoadNarrows Robotics Network Messaging Package
nmexample.doxy
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////////////
2 //
3 // Package: netmsgs
4 //
5 // File: nmexample.doxy
6 //
7 // Description:
8 // This file contains the doxygen directives to generate the RoadNarrows
9 // nmExample information.
10 //
11 ////////////////////////////////////////////////////////////////////////////////
12 
13 /*! \file */
14 
15 /*!
16  * \defgroup man_nmexample nmExample Man Page
17  * \{
18  *
19 
20 \par Name:
21 nmExample - Simple example program to pack, unpack, and validate NetMsgs
22 messages.
23 
24 \par Synopsis:
25 <tt>
26 nmExample [OPTIONS]\n
27 \n
28 netmsgsgen --version\n
29 netmsgsgen --help
30 </tt>
31 
32 \par Description:
33 The example program <b>nmExample</b> under the examples/ package subdirectory
34 is a simple packing and unpacking test application.
35 Both pre-packed and post-unpacked messages are
36 compared for consistency. Tracing is also available.\n
37 \n
38 No messages are actually transmitted and received. So message validation
39 accross disparate architectures is not performed.\n
40 \n
41 The message encoding and byte ordering can be define with make arguments.
42 Defaults are <em>itv</em> encoding and <em>big</em> endian.\n
43 \code
44 $ make [encoding=<val>] [endian=<val>] ...
45 \endcode
46 \n
47 AstroMsgs.xml provides the NetMsgs XML message specification for
48 <b>nmExample</b>.
49 
50 \par Options:
51 Mandatory arguments to long options are also mandatory for short options.
52 \htmlonly
53 <table class="rnr-opts">
54 <tr><td class="rnr-opts-grp">Trace</td></tr>
55 
56 <tr><td class="rnr-opts-opt">
57  -t, --trace
58 </td></tr>
59 <tr><td>
60 Do [not] enable tracing of packing and unpacking operations. If enabled,
61 tracing is printed to stderr.\n
62 Default: false
63 </td></tr>
64 
65 <tr><td class="rnr-opts-grp">Logging</td></tr>
66 <tr><td class="rnr-opts-opt">
67  -l <em>level</em>, --log=<em>level</em>
68 </td></tr>
69 <tr><td>
70  Set logging threshold level. All logging events
71  with priority &le; <em>level</em> will be logged. All
72  others will be ignored. Error events are
73  always logged. The <em>level</em> is one of:<br>
74  <table class="rnr-opts" style="text-align:left">
75  <tr>
76  <td>'off' or 0</td>
77  <td>Disable all logging.</td>
78  </tr>
79  <tr>
80  <td>'error' or 1</td>
81  <td>Enable error logging.</td>
82  </tr>
83  <tr>
84  <td>'diag1' or 2</td>
85  <td>Enable diagnostics 1 logging.</td>
86  </tr>
87  <tr>
88  <td>'diag2' or 3</td>
89  <td>Enable diagnostics 2 logging.</td>
90  </tr>
91  <tr>
92  <td>'diag3' or 4</td>
93  <td>Enable diagnostics 3 logging.<br>
94  The libSkewlZone library logs at this level</td>
95  </tr>
96  <tr>
97  <td>'diag4' or 5</td>
98  <td>Enable diagnostics 4 logging.</td>
99  </tr>
100  <tr>
101  <td>'diag5' or 6</td>
102  <td>Enable diagnostics 5 logging.</td>
103  </tr>
104  <tr>
105  <td>&gt;6</td>
106  <td>Enable user-defined logging.</td>
107  </tr>
108  </table>
109  DEFAULT: off
110 </td></tr>
111 <tr><td class="rnr-opts-opt">
112  --logfile=<em>file</em>
113 </td></tr>
114 <tr><td>
115  Set log output file to <em>file</em>.
116  Special <em>file</em> names are:
117  <table class="rnr-opts" style="text-align:left">
118  <tr>
119  <td>'stderr'</td>
120  <td>log to standard error.</td>
121  </tr>
122  <tr>
123  <td>'stdout'</td>
124  <td>log to standard output.</td>
125  </tr>
126  </table>
127  DEFAULT: stderr
128 </td></tr>
129 
130 <tr><td class="rnr-opts-grp">Information</td></tr>
131 <tr><td class="rnr-opts-opt">
132  --help
133 </td></tr>
134 <tr><td>
135  Display command help and exit.
136 </td></tr>
137 <tr><td class="rnr-opts-opt">
138  --version
139 </td></tr>
140 <tr><td>
141  Output version information and exit.
142 </td></tr>
143 </table>
144 \endhtmlonly
145 
146 \par Examples:
147 \htmlonly
148 <pre class="fragment"><div class="fragment"><span
149 class="comment"># Example 1
150 # Run with tracing
151 $
152 $ nmExample --trace --log=diag1
153 
154 <em>beaucoup output here</em>
155 
156 $
157 </div></pre>
158 \endhtmlonly
159 
160 \} */