aboutsummaryrefslogtreecommitdiff
path: root/vendor/voclient/libsamp/doc/latex/sampMap_8c.tex
blob: 70208745453d5ad572c842d36632d623fc8b6f07 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
hypertarget{sampMap_8c}{
\section{sampMap.c File Reference}
\label{sampMap_8c}\index{sampMap.c@{sampMap.c}}
}
(Internal) Interface to support the Map structure  


{\tt \#include $<$stdlib.h$>$}\par
{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$unistd.h$>$}\par
{\tt \#include $<$string.h$>$}\par
{\tt \#include \char`\"{}samp.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
handle\_\-t \hyperlink{sampMap_8c_9985b96289047cafc24f2adbfeed977f}{samp\_\-newMap} ()
\begin{CompactList}\small\item\em Create a new Map object. \item\end{CompactList}\item 
void \hyperlink{sampMap_8c_fe80438de542c6657d623993360b37d1}{samp\_\-freeMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map)
\begin{CompactList}\small\item\em Free the given Map object. \item\end{CompactList}\item 
\hypertarget{sampMap_8c_1c99f7146ad3acd3e381a02d5df1234f}{
int \textbf{samp\_\-getMapSize} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map)}
\label{sampMap_8c_1c99f7146ad3acd3e381a02d5df1234f}

\item 
\hypertarget{sampMap_8c_4c8a1b402743b52f2837e97cf41e9e34}{
char $\ast$ \textbf{samp\_\-getMapKey} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, int index)}
\label{sampMap_8c_4c8a1b402743b52f2837e97cf41e9e34}

\item 
\hypertarget{sampMap_8c_7dcdf07dd7f3252f3bf2dd5002c62251}{
char $\ast$ \textbf{samp\_\-getMapVal} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, int index)}
\label{sampMap_8c_7dcdf07dd7f3252f3bf2dd5002c62251}

\item 
void \hyperlink{sampMap_8c_b9b2157de89369eb5cd95bfe804eb89a}{samp\_\-setStringInMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key, char $\ast$value)
\begin{CompactList}\small\item\em Set a string in a Map (append). \item\end{CompactList}\item 
void \hyperlink{sampMap_8c_f102490efe1b92d99b67f244dc498c7b}{samp\_\-setMapInMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map1, char $\ast$key, \hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map2)
\begin{CompactList}\small\item\em Set a Map in a Map (append). \item\end{CompactList}\item 
void \hyperlink{sampMap_8c_362c2f670c98dd6a3ef69debd1871604}{samp\_\-setListInMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key, \hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} list)
\begin{CompactList}\small\item\em Set a List in a Map (append). \item\end{CompactList}\item 
void \hyperlink{sampMap_8c_c22ec42dbf9a01c9b4e00cf011e7eb9d}{samp\_\-setIntInMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key, int value)
\begin{CompactList}\small\item\em Set a Int in a Map (append). \item\end{CompactList}\item 
void \hyperlink{sampMap_8c_0f07ae542f5b317311b3799bd96a88fd}{samp\_\-setFloatInMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key, float value)
\begin{CompactList}\small\item\em Set a string in a Map (append). \item\end{CompactList}\item 
char $\ast$ \hyperlink{sampMap_8c_96ca606e0e7da659c3dc0a30846bcd66}{samp\_\-getStringFromMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key)
\begin{CompactList}\small\item\em Get a string from the Map. \item\end{CompactList}\item 
\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} \hyperlink{sampMap_8c_525e8ffdfa32867f392f2c1340215453}{samp\_\-getMapFromMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key)
\begin{CompactList}\small\item\em Get a Map from the Map. \item\end{CompactList}\item 
\hyperlink{sampDecl_8h_39f9d235896a8fd920f319105eb82791}{List} \hyperlink{sampMap_8c_31ddb90cf2184ae0151b9e7ec8c1a51f}{samp\_\-getListFromMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key)
\begin{CompactList}\small\item\em Get a LIST from the Map. \item\end{CompactList}\item 
int \hyperlink{sampMap_8c_210fc0eba30abddf1bdc2e780d58072c}{samp\_\-getIntFromMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key)
\begin{CompactList}\small\item\em Get a integer from the Map. \item\end{CompactList}\item 
float \hyperlink{sampMap_8c_b0d3768990294554a298c4057b3b315d}{samp\_\-getFloatFromMap} (\hyperlink{sampDecl_8h_39a90bc041db57e1a6ba736ba91eee30}{Map} map, char $\ast$key)
\begin{CompactList}\small\item\em Get a float from the Map. \item\end{CompactList}\end{CompactItemize}


\label{_details}
\hypertarget{_details}{}
\subsection{Detailed Description}
(Internal) Interface to support the Map structure 

SAMPMAP.C -- (Internal) Interface to support the Map structure

map = samp\_\-newMap () samp\_\-freeMap (Map map)

nelem = samp\_\-getMapSize (Map map) key = samp\_\-getMapKey (Map map, int index) val = samp\_\-getMapVal (Map map, int index)

samp\_\-setStringInMap (Map map, char $\ast$value) samp\_\-setMapInMap (Map map1, Map map2) samp\_\-setListInMap (Map map, List list) samp\_\-setIntInMap (Map map, int ival) samp\_\-setFloatInMap (Map map, float rval)

str = samp\_\-getStringFromMap (Map map, char $\ast$key) map = samp\_\-getMapFromMap (Map map, char $\ast$key) list = samp\_\-getListFromMap (Map map, char $\ast$key) ival = samp\_\-getIntFromMap (Map map, char $\ast$key) rval = samp\_\-getFloatFromMap (Map map, char $\ast$key)

\begin{Desc}
\item[Author:]Mike Fitzpatrick \end{Desc}
\begin{Desc}
\item[Date:]7/10/09 \end{Desc}


\subsection{Function Documentation}
\hypertarget{sampMap_8c_fe80438de542c6657d623993360b37d1}{
\index{sampMap.c@{sampMap.c}!samp\_\-freeMap@{samp\_\-freeMap}}
\index{samp\_\-freeMap@{samp\_\-freeMap}!sampMap.c@{sampMap.c}}
\subsubsection[{samp\_\-freeMap}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-freeMap ({\bf Map} {\em map})}}
\label{sampMap_8c_fe80438de542c6657d623993360b37d1}


Free the given Map object. 

SAMP\_\-FREEMAP -- Free the given Map object

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em map}]Map object to free \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]nothing \end{Desc}


Referenced by samp\_\-envGetHandler(), samp\_\-hubDeclareSubscriptions(), samp\_\-paramGetHandler(), and samp\_\-Ping().\hypertarget{sampMap_8c_b0d3768990294554a298c4057b3b315d}{
\index{sampMap.c@{sampMap.c}!samp\_\-getFloatFromMap@{samp\_\-getFloatFromMap}}
\index{samp\_\-getFloatFromMap@{samp\_\-getFloatFromMap}!sampMap.c@{sampMap.c}}
\subsubsection[{samp\_\-getFloatFromMap}]{\setlength{\rightskip}{0pt plus 5cm}float samp\_\-getFloatFromMap ({\bf Map} {\em map}, \/  char $\ast$ {\em key})}}
\label{sampMap_8c_b0d3768990294554a298c4057b3b315d}


Get a float from the Map. 

SAMP\_\-GETFLOATFROMMAP -- Get a float from the Map

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em map}]handle to Map object \item[{\em key}]Map key \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]floating point value \end{Desc}


Referenced by samp\_\-execUserHandler(), and samp\_\-pointAtHandler().\hypertarget{sampMap_8c_210fc0eba30abddf1bdc2e780d58072c}{
\index{sampMap.c@{sampMap.c}!samp\_\-getIntFromMap@{samp\_\-getIntFromMap}}
\index{samp\_\-getIntFromMap@{samp\_\-getIntFromMap}!sampMap.c@{sampMap.c}}
\subsubsection[{samp\_\-getIntFromMap}]{\setlength{\rightskip}{0pt plus 5cm}int samp\_\-getIntFromMap ({\bf Map} {\em map}, \/  char $\ast$ {\em key})}}
\label{sampMap_8c_210fc0eba30abddf1bdc2e780d58072c}


Get a integer from the Map. 

SAMP\_\-GETINTFROMMAP -- Get a integer from the Map

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em map}]handle to Map object \item[{\em key}]Map key \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]integer value \end{Desc}


Referenced by samp\_\-execUserHandler(), and samp\_\-tbHighlightHandler().\hypertarget{sampMap_8c_31ddb90cf2184ae0151b9e7ec8c1a51f}{
\index{sampMap.c@{sampMap.c}!samp\_\-getListFromMap@{samp\_\-getListFromMap}}
\index{samp\_\-getListFromMap@{samp\_\-getListFromMap}!sampMap.c@{sampMap.c}}
\subsubsection[{samp\_\-getListFromMap}]{\setlength{\rightskip}{0pt plus 5cm}{\bf List} samp\_\-getListFromMap ({\bf Map} {\em map}, \/  char $\ast$ {\em key})}}
\label{sampMap_8c_31ddb90cf2184ae0151b9e7ec8c1a51f}


Get a LIST from the Map. 

SAMP\_\-GETLISTFROMMAP -- Get a LIST from the Map

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em map}]handle to Map object \item[{\em key}]Map key \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]handle to List value \end{Desc}


Referenced by samp\_\-execUserHandler(), and samp\_\-tbSelectHandler().\hypertarget{sampMap_8c_525e8ffdfa32867f392f2c1340215453}{
\index{sampMap.c@{sampMap.c}!samp\_\-getMapFromMap@{samp\_\-getMapFromMap}}
\index{samp\_\-getMapFromMap@{samp\_\-getMapFromMap}!sampMap.c@{sampMap.c}}
\subsubsection[{samp\_\-getMapFromMap}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Map} samp\_\-getMapFromMap ({\bf Map} {\em map}, \/  char $\ast$ {\em key})}}
\label{sampMap_8c_525e8ffdfa32867f392f2c1340215453}


Get a Map from the Map. 

SAMP\_\-GETMAPFROMMAP -- Get a Map from the Map

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em map}]handle to Map object \item[{\em key}]Map key \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]handle to Map value \end{Desc}


Referenced by samp\_\-execUserHandler(), samp\_\-resConeHandler(), samp\_\-resLoadHandler(), samp\_\-resSiapHandler(), samp\_\-resSsapHandler(), samp\_\-resTapHandler(), samp\_\-resVOSpaceHandler(), samp\_\-specLoadHandler(), and samp\_\-specSSAHandler().\hypertarget{sampMap_8c_96ca606e0e7da659c3dc0a30846bcd66}{
\index{sampMap.c@{sampMap.c}!samp\_\-getStringFromMap@{samp\_\-getStringFromMap}}
\index{samp\_\-getStringFromMap@{samp\_\-getStringFromMap}!sampMap.c@{sampMap.c}}
\subsubsection[{samp\_\-getStringFromMap}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ samp\_\-getStringFromMap ({\bf Map} {\em map}, \/  char $\ast$ {\em key})}}
\label{sampMap_8c_96ca606e0e7da659c3dc0a30846bcd66}


Get a string from the Map. 

SAMP\_\-GETSTRINGFROMMAP -- Get a string from the Map

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em map}]handle to Map object \item[{\em key}]Map key \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]string value from Map \end{Desc}


Referenced by samp\_\-bibcodeHandler(), samp\_\-cmdExecHandler(), samp\_\-envGetHandler(), samp\_\-envSetHandler(), samp\_\-execUserHandler(), samp\_\-imLoadHandler(), samp\_\-paramGetHandler(), samp\_\-paramSetHandler(), samp\_\-resConeHandler(), samp\_\-resLoadHandler(), samp\_\-resSiapHandler(), samp\_\-resSsapHandler(), samp\_\-resTapHandler(), samp\_\-resVOSpaceHandler(), samp\_\-specLoadHandler(), samp\_\-specSSAHandler(), samp\_\-tbHighlightHandler(), samp\_\-tbLoadFITSHandler(), samp\_\-tbLoadHandler(), samp\_\-tbLoadVOTHandler(), and samp\_\-tbSelectHandler().\hypertarget{sampMap_8c_9985b96289047cafc24f2adbfeed977f}{
\index{sampMap.c@{sampMap.c}!samp\_\-newMap@{samp\_\-newMap}}
\index{samp\_\-newMap@{samp\_\-newMap}!sampMap.c@{sampMap.c}}
\subsubsection[{samp\_\-newMap}]{\setlength{\rightskip}{0pt plus 5cm}handle\_\-t samp\_\-newMap (void)}}
\label{sampMap_8c_9985b96289047cafc24f2adbfeed977f}


Create a new Map object. 

SAMP\_\-NEWMAP -- Create a new Map object

\begin{Desc}
\item[Returns:]handle to new Map \end{Desc}


Referenced by samp\_\-envGetHandler(), samp\_\-getNullMap(), samp\_\-getOKMap(), samp\_\-paramGetHandler(), and sampInit().\hypertarget{sampMap_8c_0f07ae542f5b317311b3799bd96a88fd}{
\index{sampMap.c@{sampMap.c}!samp\_\-setFloatInMap@{samp\_\-setFloatInMap}}
\index{samp\_\-setFloatInMap@{samp\_\-setFloatInMap}!sampMap.c@{sampMap.c}}
\subsubsection[{samp\_\-setFloatInMap}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setFloatInMap ({\bf Map} {\em map}, \/  char $\ast$ {\em key}, \/  float {\em value})}}
\label{sampMap_8c_0f07ae542f5b317311b3799bd96a88fd}


Set a string in a Map (append). 

SAMP\_\-SETFLOATINMAP -- Set a Float in a Map (append)

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em map}]handle to Map object \item[{\em key}]Map key \item[{\em value}]value \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]nothing \end{Desc}
\hypertarget{sampMap_8c_c22ec42dbf9a01c9b4e00cf011e7eb9d}{
\index{sampMap.c@{sampMap.c}!samp\_\-setIntInMap@{samp\_\-setIntInMap}}
\index{samp\_\-setIntInMap@{samp\_\-setIntInMap}!sampMap.c@{sampMap.c}}
\subsubsection[{samp\_\-setIntInMap}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setIntInMap ({\bf Map} {\em map}, \/  char $\ast$ {\em key}, \/  int {\em value})}}
\label{sampMap_8c_c22ec42dbf9a01c9b4e00cf011e7eb9d}


Set a Int in a Map (append). 

SAMP\_\-SETINTINMAP -- Set a Int in a Map (append)

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em map}]handle to Map object \item[{\em key}]Map key \item[{\em value}]value \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]nothing \end{Desc}
\hypertarget{sampMap_8c_362c2f670c98dd6a3ef69debd1871604}{
\index{sampMap.c@{sampMap.c}!samp\_\-setListInMap@{samp\_\-setListInMap}}
\index{samp\_\-setListInMap@{samp\_\-setListInMap}!sampMap.c@{sampMap.c}}
\subsubsection[{samp\_\-setListInMap}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setListInMap ({\bf Map} {\em map}, \/  char $\ast$ {\em key}, \/  {\bf List} {\em list})}}
\label{sampMap_8c_362c2f670c98dd6a3ef69debd1871604}


Set a List in a Map (append). 

SAMP\_\-SETLISTINMAP -- Set a List in a Map (append)

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em map}]handle to Map object \item[{\em key}]Map key \item[{\em list}]handle to List object to set \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]nothing \end{Desc}
\hypertarget{sampMap_8c_f102490efe1b92d99b67f244dc498c7b}{
\index{sampMap.c@{sampMap.c}!samp\_\-setMapInMap@{samp\_\-setMapInMap}}
\index{samp\_\-setMapInMap@{samp\_\-setMapInMap}!sampMap.c@{sampMap.c}}
\subsubsection[{samp\_\-setMapInMap}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setMapInMap ({\bf Map} {\em map1}, \/  char $\ast$ {\em key}, \/  {\bf Map} {\em map2})}}
\label{sampMap_8c_f102490efe1b92d99b67f244dc498c7b}


Set a Map in a Map (append). 

SAMP\_\-SETMAPINMAP -- Set a Map in a Map (append)

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em map1}]handle to Map object \item[{\em key}]Map key \item[{\em map2}]handle to Map object to set \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]nothing \end{Desc}


Referenced by samp\_\-envGetHandler(), samp\_\-getOKMap(), samp\_\-paramGetHandler(), and sampInit().\hypertarget{sampMap_8c_b9b2157de89369eb5cd95bfe804eb89a}{
\index{sampMap.c@{sampMap.c}!samp\_\-setStringInMap@{samp\_\-setStringInMap}}
\index{samp\_\-setStringInMap@{samp\_\-setStringInMap}!sampMap.c@{sampMap.c}}
\subsubsection[{samp\_\-setStringInMap}]{\setlength{\rightskip}{0pt plus 5cm}void samp\_\-setStringInMap ({\bf Map} {\em map}, \/  char $\ast$ {\em key}, \/  char $\ast$ {\em value})}}
\label{sampMap_8c_b9b2157de89369eb5cd95bfe804eb89a}


Set a string in a Map (append). 

SAMP\_\-SETSTRINGINMAP -- Set a string in a Map (append)

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em map}]handle to Map object \item[{\em key}]Map key \item[{\em value}]Map value \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]nothing \end{Desc}


Referenced by samp\_\-envGetHandler(), samp\_\-getOKMap(), samp\_\-paramGetHandler(), and sampInit().