File: classGnome_1_1Gda_1_1DataHandler.html

package info (click to toggle)
libgdamm3.0 3.0.0-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 13,804 kB
  • ctags: 6,365
  • sloc: xml: 14,451; sh: 8,913; cpp: 1,473; makefile: 138; perl: 108
file content (483 lines) | stat: -rw-r--r-- 31,824 bytes parent folder | download
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
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>libgdamm: Gnome::Gda::DataHandler Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#ffffff">
<table border="0" width="100%">
<tr>
    <td>libgdamm Reference Documentation</td>
</tr>
</table>
<center>
  <a class="qindex" href="../../../../../libgnomedbmm-3.0/docs/index.html">Main Page</a> &nbsp;
  <a class="qindex" href="namespaces.html"> Namespaces</a> &nbsp;
  <a href="../../../../../libgnomedbmm-3.0/docs/tutorial/html/index.html"> Book</a> &nbsp;
</center>
<hr width="100%"/>

<!-- Generated by Doxygen 1.5.1 -->
<div class="nav">
<a class="el" href="namespaceGnome.html">Gnome</a>::<a class="el" href="namespaceGnome_1_1Gda.html">Gda</a>::<a class="el" href="classGnome_1_1Gda_1_1DataHandler.html">DataHandler</a></div>
<h1>Gnome::Gda::DataHandler Class Reference<br>
<small>
[<a class="el" href="group__DataHandlers.html">Data Handlers</a>]</small>
</h1><!-- doxytag: class="Gnome::Gda::DataHandler" --><!-- doxytag: inherits="Glib::Interface" -->Base class which provides data handling capabilities.  
<a href="#_details">More...</a>
<p>
Inheritance diagram for Gnome::Gda::DataHandler:<p><center><img src="classGnome_1_1Gda_1_1DataHandler__inherit__graph.png" border="0" usemap="#Gnome_1_1Gda_1_1DataHandler__inherit__map" alt="Inheritance graph"></center>
<map name="Gnome_1_1Gda_1_1DataHandler__inherit__map">
<area href="classGnome_1_1Gda_1_1HandlerBin.html" shape="rect" coords="427,6,605,32" alt="">
<area href="classGnome_1_1Gda_1_1HandlerBoolean.html" shape="rect" coords="411,56,621,83" alt="">
<area href="classGnome_1_1Gda_1_1HandlerNumerical.html" shape="rect" coords="404,107,628,134" alt="">
<area href="classGnome_1_1Gda_1_1HandlerString.html" shape="rect" coords="417,158,615,184" alt="">
<area href="classGnome_1_1Gda_1_1HandlerTime.html" shape="rect" coords="420,208,612,235" alt="">
<area href="classGnome_1_1Gda_1_1HandlerType.html" shape="rect" coords="421,259,611,286" alt="">
<area doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1Interface.html" shape="rect" coords="5,132,115,159" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classGnome_1_1Gda_1_1DataHandler-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataHandler.html#6c515a064a579c22bed466e3f1083057">accepts_g_type</a> (GType type) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Checks wether the GdaDataHandler is able to handle the gda type given as argument.  <a href="#6c515a064a579c22bed466e3f1083057"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataHandler.html#3c6f01c27fc29bca37372f78093cf962">get_descr</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get a short description of the GdaDataHandler.  <a href="#3c6f01c27fc29bca37372f78093cf962"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">GType&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataHandler.html#da74e42c2451bd9785cbf0fd2057c639">get_g_type_index</a> (guint index) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the GType handled by the GdaDataHandler, at the given position (starting at zero).  <a href="#da74e42c2451bd9785cbf0fd2057c639"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataHandler.html#c4fb129f9a958ebc420ceb3f6f50380c">get_nb_g_types</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the number of GType types the GdaDataHandler can handle correctly.  <a href="#c4fb129f9a958ebc420ceb3f6f50380c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataHandler.html#fc225318abde617b5bb319b50eb76814">get_sane_init_value</a> (GType type) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a new <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a> which holds a sane initial value to be used if no value is specifically provided.  <a href="#fc225318abde617b5bb319b50eb76814"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataHandler.html#bd84ccac78ee07739d1f324d1664efce">get_sql_from_value</a> (const <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a>&amp; value) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a new string which is an SQL representation of the given value.  <a href="#bd84ccac78ee07739d1f324d1664efce"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataHandler.html#0c835b6259c867ce827fd166ab04261e">get_str_from_value</a> (const <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a>&amp; value) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a new string which is a "user friendly" representation of the given value (in the users's locale, specially for the dates).  <a href="#0c835b6259c867ce827fd166ab04261e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataHandler.html#9195fc8219fb932bb01d093ae3e92369">get_value_from_sql</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; sql, GType type) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a new <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a> which represents the SQL value given as argument.  <a href="#9195fc8219fb932bb01d093ae3e92369"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataHandler.html#ebe404e1b44a892a0b9f7ee56694dd0f">get_value_from_str</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; str, GType type) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a new <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a> which represents the STR value given as argument.  <a href="#ebe404e1b44a892a0b9f7ee56694dd0f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const GdaDataHandler*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataHandler.html#8b67bf45a6978a0341538de4f55530c3">gobj</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Provides access to the underlying C GObject.  <a href="#8b67bf45a6978a0341538de4f55530c3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">GdaDataHandler*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataHandler.html#98baf23b4d37b52a2742f4f579bdf9f2">gobj</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Provides access to the underlying C GObject.  <a href="#98baf23b4d37b52a2742f4f579bdf9f2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataHandler.html#50696eaaca747b9f265a08d113550cc6">~DataHandler</a> ()</td></tr>

<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataHandler.html#c1ee8522e84cd464cd6b83234293fec5">add_interface</a> (GType gtype_implementer)</td></tr>

<tr><td colspan="2"><br><h2>Related Functions</h2></td></tr>
<tr><td colspan="2">(Note that these are not member functions.) <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGnome_1_1Gda_1_1DataHandler.html">Gnome::Gda::DataHandler</a>&gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataHandler.html#3b1870897424b8959ef8f96c42b8953e">wrap</a> (GdaDataHandler* object, bool take_copy=false)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object.  <a href="#3b1870897424b8959ef8f96c42b8953e"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Base class which provides data handling capabilities. 
<p>
Because data types vary a lot from one DBMS to another, the <a class="el" href="classGnome_1_1Gda_1_1DataHandler.html">DataHandler</a> interface helps with designing modules which can handle very specific pieces of data through plugins. Each object which imlements the <a class="el" href="classGnome_1_1Gda_1_1DataHandler.html">DataHandler</a> interface is expected to handle a subset of the possible libgda defined data types.<p>
The <a class="el" href="classGnome_1_1Gda_1_1DataHandler.html">DataHandler</a> object can convert a <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a> to and from both SQL and 'STR'. The SQL representation of a value is the actual string which would be used in an SQL statement (for example a string's SQL representation is surrounded by quotes such as 'that a string''). The 'STR' representation is a user friendly representation of a value (and the previous example would simply be: that's a string).<p>
Only one object which implements this interface is needed for any given data type, and it mainly contains some methods to manage values (as <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a> structures). The Gnome::Db::DataEntry interface is complementary to this one since it is implemented by widgets in which the user can enter or modify some data. 
<p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="50696eaaca747b9f265a08d113550cc6"></a><!-- doxytag: member="Gnome::Gda::DataHandler::~DataHandler" ref="50696eaaca747b9f265a08d113550cc6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual Gnome::Gda::DataHandler::~DataHandler           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="6c515a064a579c22bed466e3f1083057"></a><!-- doxytag: member="Gnome::Gda::DataHandler::accepts_g_type" ref="6c515a064a579c22bed466e3f1083057" args="(GType type) const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gnome::Gda::DataHandler::accepts_g_type           </td>
          <td>(</td>
          <td class="paramtype">GType&nbsp;</td>
          <td class="paramname"> <em>type</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Checks wether the GdaDataHandler is able to handle the gda type given as argument. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the gda type can be handled. </dd></dl>

</div>
</div><p>
<a class="anchor" name="c1ee8522e84cd464cd6b83234293fec5"></a><!-- doxytag: member="Gnome::Gda::DataHandler::add_interface" ref="c1ee8522e84cd464cd6b83234293fec5" args="(GType gtype_implementer)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void Gnome::Gda::DataHandler::add_interface           </td>
          <td>(</td>
          <td class="paramtype">GType&nbsp;</td>
          <td class="paramname"> <em>gtype_implementer</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="3c6f01c27fc29bca37372f78093cf962"></a><!-- doxytag: member="Gnome::Gda::DataHandler::get_descr" ref="3c6f01c27fc29bca37372f78093cf962" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> Gnome::Gda::DataHandler::get_descr           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get a short description of the GdaDataHandler. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The description. </dd></dl>

</div>
</div><p>
<a class="anchor" name="da74e42c2451bd9785cbf0fd2057c639"></a><!-- doxytag: member="Gnome::Gda::DataHandler::get_g_type_index" ref="da74e42c2451bd9785cbf0fd2057c639" args="(guint index) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GType Gnome::Gda::DataHandler::get_g_type_index           </td>
          <td>(</td>
          <td class="paramtype">guint&nbsp;</td>
          <td class="paramname"> <em>index</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the GType handled by the GdaDataHandler, at the given position (starting at zero). 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The GType. </dd></dl>

</div>
</div><p>
<a class="anchor" name="c4fb129f9a958ebc420ceb3f6f50380c"></a><!-- doxytag: member="Gnome::Gda::DataHandler::get_nb_g_types" ref="c4fb129f9a958ebc420ceb3f6f50380c" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int Gnome::Gda::DataHandler::get_nb_g_types           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the number of GType types the GdaDataHandler can handle correctly. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The number. </dd></dl>

</div>
</div><p>
<a class="anchor" name="fc225318abde617b5bb319b50eb76814"></a><!-- doxytag: member="Gnome::Gda::DataHandler::get_sane_init_value" ref="fc225318abde617b5bb319b50eb76814" args="(GType type) const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a> Gnome::Gda::DataHandler::get_sane_init_value           </td>
          <td>(</td>
          <td class="paramtype">GType&nbsp;</td>
          <td class="paramname"> <em>type</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a new <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a> which holds a sane initial value to be used if no value is specifically provided. 
<p>
For example, for a simple string, this would return a new value containing the "" string.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>type</em>&nbsp;</td><td></td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The new <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a>. </dd></dl>

</div>
</div><p>
<a class="anchor" name="bd84ccac78ee07739d1f324d1664efce"></a><!-- doxytag: member="Gnome::Gda::DataHandler::get_sql_from_value" ref="bd84ccac78ee07739d1f324d1664efce" args="(const Value &amp;value) const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> Gnome::Gda::DataHandler::get_sql_from_value           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a>&amp;&nbsp;</td>
          <td class="paramname"> <em>value</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a new string which is an SQL representation of the given value. 
<p>
If the value is <code>0</code> or is of type GDA_TYPE_<code>0</code>, the returned string is <code>0</code>. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>The value to be converted to a string. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The new string. </dd></dl>

</div>
</div><p>
<a class="anchor" name="0c835b6259c867ce827fd166ab04261e"></a><!-- doxytag: member="Gnome::Gda::DataHandler::get_str_from_value" ref="0c835b6259c867ce827fd166ab04261e" args="(const Value &amp;value) const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> Gnome::Gda::DataHandler::get_str_from_value           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a>&amp;&nbsp;</td>
          <td class="paramname"> <em>value</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a new string which is a "user friendly" representation of the given value (in the users's locale, specially for the dates). 
<p>
If the value is <code>0</code> or is of type GDA_TYPE_<code>0</code>, the returned string is a copy of "" (empty string). <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>The value to be converted to a string. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The new string. </dd></dl>

</div>
</div><p>
<a class="anchor" name="9195fc8219fb932bb01d093ae3e92369"></a><!-- doxytag: member="Gnome::Gda::DataHandler::get_value_from_sql" ref="9195fc8219fb932bb01d093ae3e92369" args="(const Glib::ustring &amp;sql, GType type) const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a> Gnome::Gda::DataHandler::get_value_from_sql           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>sql</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GType&nbsp;</td>
          <td class="paramname"> <em>type</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a new <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a> which represents the SQL value given as argument. 
<p>
This is the opposite of the function <a class="el" href="classGnome_1_1Gda_1_1DataHandler.html#bd84ccac78ee07739d1f324d1664efce">get_sql_from_value()</a>. The type argument is used to determine the real data type requested for the returned value.<p>
If the sql string is empty, then the returned <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a> is of type TYPE_NULL. If the sql string does not correspond to a valid SQL string for the requested type, then a NULL <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a> is returned.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>sql</em>&nbsp;</td><td></td></tr>
    <tr><td valign="top"></td><td valign="top"><em>type</em>&nbsp;</td><td></td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The new <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a>. </dd></dl>

</div>
</div><p>
<a class="anchor" name="ebe404e1b44a892a0b9f7ee56694dd0f"></a><!-- doxytag: member="Gnome::Gda::DataHandler::get_value_from_str" ref="ebe404e1b44a892a0b9f7ee56694dd0f" args="(const Glib::ustring &amp;str, GType type) const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a> Gnome::Gda::DataHandler::get_value_from_str           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GType&nbsp;</td>
          <td class="paramname"> <em>type</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a new <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a> which represents the STR value given as argument. 
<p>
This is the opposite of the function <a class="el" href="classGnome_1_1Gda_1_1DataHandler.html#0c835b6259c867ce827fd166ab04261e">get_str_from_value()</a>. The type argument is used to determine the real data type requested for the returned value.<p>
If the str string is empty, then the returned <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a> is of type TYPE_NULL. If the str string does not correspond to a valid STR string for the requested type, then a NULL value is returned.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>str</em>&nbsp;</td><td></td></tr>
    <tr><td valign="top"></td><td valign="top"><em>type</em>&nbsp;</td><td></td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The new <a class="el" href="classGnome_1_1Gda_1_1Value.html">Value</a>. </dd></dl>

</div>
</div><p>
<a class="anchor" name="8b67bf45a6978a0341538de4f55530c3"></a><!-- doxytag: member="Gnome::Gda::DataHandler::gobj" ref="8b67bf45a6978a0341538de4f55530c3" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const GdaDataHandler* Gnome::Gda::DataHandler::gobj           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Provides access to the underlying C GObject. 
<p>

<p>
Reimplemented from <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1Interface.html#4737c92fa9930b4f006ab8b3c9487504">Glib::Interface</a>.
<p>
Reimplemented in <a class="el" href="classGnome_1_1Gda_1_1HandlerBin.html#c7e1da4a6a8daf8819545dca251a9a18">Gnome::Gda::HandlerBin</a>, <a class="el" href="classGnome_1_1Gda_1_1HandlerBoolean.html#15f5b1efa386fba5392de2fe90715eb5">Gnome::Gda::HandlerBoolean</a>, <a class="el" href="classGnome_1_1Gda_1_1HandlerNumerical.html#ba2eb2999baff6a3f4b649659595baaa">Gnome::Gda::HandlerNumerical</a>, <a class="el" href="classGnome_1_1Gda_1_1HandlerString.html#454978ead2b6d66f93615bcf5fb431df">Gnome::Gda::HandlerString</a>, <a class="el" href="classGnome_1_1Gda_1_1HandlerTime.html#7048c655ccbc8543c3fd2be84d2ad4e9">Gnome::Gda::HandlerTime</a>, and <a class="el" href="classGnome_1_1Gda_1_1HandlerType.html#0c395134f299deae3b4689eb80a103e3">Gnome::Gda::HandlerType</a>.
</div>
</div><p>
<a class="anchor" name="98baf23b4d37b52a2742f4f579bdf9f2"></a><!-- doxytag: member="Gnome::Gda::DataHandler::gobj" ref="98baf23b4d37b52a2742f4f579bdf9f2" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GdaDataHandler* Gnome::Gda::DataHandler::gobj           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Provides access to the underlying C GObject. 
<p>

<p>
Reimplemented from <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1Interface.html#969e9396f75132a9577428f4fa932d42">Glib::Interface</a>.
<p>
Reimplemented in <a class="el" href="classGnome_1_1Gda_1_1HandlerBin.html#c7ff1463384d556b4543f546bc8b0b32">Gnome::Gda::HandlerBin</a>, <a class="el" href="classGnome_1_1Gda_1_1HandlerBoolean.html#8e2dd51d5abe74427d29d2bd2f41309a">Gnome::Gda::HandlerBoolean</a>, <a class="el" href="classGnome_1_1Gda_1_1HandlerNumerical.html#cd1af2bd37cfa45b6ce488d78c8a62fb">Gnome::Gda::HandlerNumerical</a>, <a class="el" href="classGnome_1_1Gda_1_1HandlerString.html#3a0e24f957be707a8401436211cdc6a8">Gnome::Gda::HandlerString</a>, <a class="el" href="classGnome_1_1Gda_1_1HandlerTime.html#fde4f7437ece9851d40167611250e6af">Gnome::Gda::HandlerTime</a>, and <a class="el" href="classGnome_1_1Gda_1_1HandlerType.html#8230538e80b76bac56eeab813e0bc9e5">Gnome::Gda::HandlerType</a>.
</div>
</div><p>
<hr><h2>Friends And Related Function Documentation</h2>
<a class="anchor" name="3b1870897424b8959ef8f96c42b8953e"></a><!-- doxytag: member="Gnome::Gda::DataHandler::wrap" ref="3b1870897424b8959ef8f96c42b8953e" args="(GdaDataHandler *object, bool take_copy=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGnome_1_1Gda_1_1DataHandler.html">Gnome::Gda::DataHandler</a>&gt; wrap           </td>
          <td>(</td>
          <td class="paramtype">GdaDataHandler *&nbsp;</td>
          <td class="paramname"> <em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>take_copy</em> = <code>false</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [related]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
A <a class="elRef" doxygen="glibmm_doxygen_tags:http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/" href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>object</em>&nbsp;</td><td>The C instance. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>take_copy</em>&nbsp;</td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="datahandler_8h.html">datahandler.h</a></ul>
<hr><address><small>
Generated for libgdamm by <a href="http://www.doxygen.org/index.html">
Doxygen</a> 1.5.1 &copy;&nbsp;1997-2001</small></address>
</body>
</html>