1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN">
4 <meta http-equiv=
"Content-Type" content=
"text/html;charset=iso-8859-1">
5 <title>File Index
</title>
6 <link href=
"doxygen.css" rel=
"stylesheet" type=
"text/css">
9 <!-- Generated by Doxygen 1.3.4 -->
10 <div class=
"qindex"><a class=
"qindex" href=
"main.html">Main
Page
</a> |
<a class=
"qindex" href=
"classes.html">Alphabetical
List
</a> |
<a class=
"qindex" href=
"annotated.html">Data
Structures
</a> |
<a class=
"qindex" href=
"files.html">File
List
</a> |
<a class=
"qindex" href=
"functions.html">Data
Fields
</a> |
<a class=
"qindex" href=
"globals.html">Globals
</a></div>
11 <h1>dmxarg.c File Reference
</h1><code>#include
"<a class="el
" href="dmx_8h-source.html
">dmx.h</a>"</code><br>
12 <code>#include
"<a class="el
" href="dmxarg_8h-source.html
">dmxarg.h</a>"</code><br>
13 <code>#include
<stdio.h
></code><br>
14 <code>#include
<string.h
></code><br>
15 <table border=
0 cellpadding=
0 cellspacing=
0>
17 <tr><td colspan=
2><br><h2>Data Structures
</h2></td></tr>
18 <tr><td class=
"memItemLeft" nowrap align=right valign=top
>struct
</td><td class=
"memItemRight" valign=bottom
><a class=
"el" href=
"struct__dmxArg.html">_dmxArg
</a></td></tr>
20 <tr><td colspan=
2><br><h2>Functions
</h2></td></tr>
21 <tr><td class=
"memItemLeft" nowrap align=right valign=top
><a class=
"el" href=
"struct__dmxArg.html">dmxArg
</a> </td><td class=
"memItemRight" valign=bottom
><a class=
"el" href=
"dmxarg_8c.html#a1">dmxArgCreate
</a> (void)
</td></tr>
23 <tr><td class=
"memItemLeft" nowrap align=right valign=top
>void
</td><td class=
"memItemRight" valign=bottom
><a class=
"el" href=
"dmxarg_8c.html#a2">dmxArgFree
</a> (
<a class=
"el" href=
"struct__dmxArg.html">dmxArg
</a> a)
</td></tr>
25 <tr><td class=
"memItemLeft" nowrap align=right valign=top
>void
</td><td class=
"memItemRight" valign=bottom
><a class=
"el" href=
"dmxarg_8c.html#a3">dmxArgAdd
</a> (
<a class=
"el" href=
"struct__dmxArg.html">dmxArg
</a> a, const char *string)
</td></tr>
27 <tr><td class=
"memItemLeft" nowrap align=right valign=top
>const char *
</td><td class=
"memItemRight" valign=bottom
><a class=
"el" href=
"dmxarg_8c.html#a4">dmxArgV
</a> (
<a class=
"el" href=
"struct__dmxArg.html">dmxArg
</a> a, int item)
</td></tr>
29 <tr><td class=
"memItemLeft" nowrap align=right valign=top
>int
</td><td class=
"memItemRight" valign=bottom
><a class=
"el" href=
"dmxarg_8c.html#a5">dmxArgC
</a> (
<a class=
"el" href=
"struct__dmxArg.html">dmxArg
</a> a)
</td></tr>
31 <tr><td class=
"memItemLeft" nowrap align=right valign=top
><a class=
"el" href=
"struct__dmxArg.html">dmxArg
</a> </td><td class=
"memItemRight" valign=bottom
><a class=
"el" href=
"dmxarg_8c.html#a6">dmxArgParse
</a> (const char *string)
</td></tr>
34 <hr><a name=
"_details"></a><h2>Detailed Description
</h2>
35 Generic comma-delimited argument processing.
<hr><h2>Function Documentation
</h2>
36 <a class=
"anchor" name=
"a3" doxytag=
"dmxarg.c::dmxArgAdd" ></a><p>
37 <table class=
"mdTable" width=
"100%" cellpadding=
"2" cellspacing=
"0">
40 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
42 <td class=
"md" nowrap
valign=
"top"> void dmxArgAdd
</td>
43 <td class=
"md" valign=
"top">(
</td>
44 <td class=
"md" nowrap
valign=
"top"><a class=
"el" href=
"struct__dmxArg.html">dmxArg
</a> </td>
45 <td class=
"mdname" nowrap
> <em>a
</em>,
</td>
50 <td class=
"md" nowrap
>const char *
</td>
51 <td class=
"mdname" nowrap
> <em>string
</em></td>
55 <td class=
"md">)
</td>
56 <td class=
"md" colspan=
"2"></td>
63 <table cellspacing=
5 cellpadding=
0 border=
0>
71 Add the
<em>string
</em> as the next argument in the
<em>dmxArg
</em> object.
</td>
74 <a class=
"anchor" name=
"a5" doxytag=
"dmxarg.c::dmxArgC" ></a><p>
75 <table class=
"mdTable" width=
"100%" cellpadding=
"2" cellspacing=
"0">
78 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
80 <td class=
"md" nowrap
valign=
"top"> int dmxArgC
</td>
81 <td class=
"md" valign=
"top">(
</td>
82 <td class=
"md" nowrap
valign=
"top"><a class=
"el" href=
"struct__dmxArg.html">dmxArg
</a> </td>
83 <td class=
"mdname1" valign=
"top" nowrap
> <em>a
</em> </td>
84 <td class=
"md" valign=
"top"> )
</td>
85 <td class=
"md" nowrap
></td>
92 <table cellspacing=
5 cellpadding=
0 border=
0>
100 Return the number of arguments in the
<em>dmxArg
</em> object.
</td>
103 <a class=
"anchor" name=
"a1" doxytag=
"dmxarg.c::dmxArgCreate" ></a><p>
104 <table class=
"mdTable" width=
"100%" cellpadding=
"2" cellspacing=
"0">
107 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
109 <td class=
"md" nowrap
valign=
"top"> <a class=
"el" href=
"struct__dmxArg.html">dmxArg
</a> dmxArgCreate
</td>
110 <td class=
"md" valign=
"top">(
</td>
111 <td class=
"md" nowrap
valign=
"top">void
</td>
112 <td class=
"mdname1" valign=
"top" nowrap
> </td>
113 <td class=
"md" valign=
"top"> )
</td>
114 <td class=
"md" nowrap
></td>
121 <table cellspacing=
5 cellpadding=
0 border=
0>
129 Create an (externally opaque)
<em>dmxArg
</em> object.
</td>
132 <a class=
"anchor" name=
"a2" doxytag=
"dmxarg.c::dmxArgFree" ></a><p>
133 <table class=
"mdTable" width=
"100%" cellpadding=
"2" cellspacing=
"0">
136 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
138 <td class=
"md" nowrap
valign=
"top"> void dmxArgFree
</td>
139 <td class=
"md" valign=
"top">(
</td>
140 <td class=
"md" nowrap
valign=
"top"><a class=
"el" href=
"struct__dmxArg.html">dmxArg
</a> </td>
141 <td class=
"mdname1" valign=
"top" nowrap
> <em>a
</em> </td>
142 <td class=
"md" valign=
"top"> )
</td>
143 <td class=
"md" nowrap
></td>
150 <table cellspacing=
5 cellpadding=
0 border=
0>
158 Free the specified
<em>dmxArg
</em> object.
</td>
161 <a class=
"anchor" name=
"a6" doxytag=
"dmxarg.c::dmxArgParse" ></a><p>
162 <table class=
"mdTable" width=
"100%" cellpadding=
"2" cellspacing=
"0">
165 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
167 <td class=
"md" nowrap
valign=
"top"> <a class=
"el" href=
"struct__dmxArg.html">dmxArg
</a> dmxArgParse
</td>
168 <td class=
"md" valign=
"top">(
</td>
169 <td class=
"md" nowrap
valign=
"top">const char *
</td>
170 <td class=
"mdname1" valign=
"top" nowrap
> <em>string
</em> </td>
171 <td class=
"md" valign=
"top"> )
</td>
172 <td class=
"md" nowrap
></td>
179 <table cellspacing=
5 cellpadding=
0 border=
0>
187 Parse a string into arguments delimited by commas. Return a new
<em>dmxArg
</em> object containing the arguments.
</td>
190 <a class=
"anchor" name=
"a4" doxytag=
"dmxarg.c::dmxArgV" ></a><p>
191 <table class=
"mdTable" width=
"100%" cellpadding=
"2" cellspacing=
"0">
194 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
196 <td class=
"md" nowrap
valign=
"top"> const char* dmxArgV
</td>
197 <td class=
"md" valign=
"top">(
</td>
198 <td class=
"md" nowrap
valign=
"top"><a class=
"el" href=
"struct__dmxArg.html">dmxArg
</a> </td>
199 <td class=
"mdname" nowrap
> <em>a
</em>,
</td>
204 <td class=
"md" nowrap
>int
</td>
205 <td class=
"mdname" nowrap
> <em>item
</em></td>
209 <td class=
"md">)
</td>
210 <td class=
"md" colspan=
"2"></td>
217 <table cellspacing=
5 cellpadding=
0 border=
0>
225 Return the argument number
<em>item
</em> in the
<em>dmxArg
</em> object. Arguments are
0 based. NULL will be returned for values less than
0 or equal to or greater than the number of arguments in the object.
</td>
231 Generated June
29,
2004 for
<a
232 href=
"http://dmx.sourceforge.net">Distributed Multihead X
</a> by
233 <a href=
"http://www.doxygen.org/index.html">doxygen
</a>