[go: up one dir, main page]

File: toQValue.html

package info (click to toggle)
tora 1.3.21-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 14,252 kB
  • ctags: 10,397
  • sloc: cpp: 108,822; sh: 10,861; makefile: 766; xml: 69; perl: 6
file content (187 lines) | stat: -rw-r--r-- 13,329 bytes parent folder | download | duplicates (3)
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
<HTML>
<HEAD>
<TITLE>class toQValue</TITLE>

<META NAME="Generator" CONTENT="KDOC ">
</HEAD>
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
<TABLE WIDTH="100%" BORDER="0">
<TR>
<TD>
	<TABLE BORDER="0">
		<TR><TD valign="top" align="left" cellspacing="10">
		<h1>class toQValue</h1>
		</TD>
		<TD valign="top" align="right" colspan="1"> This function is used to represent values that are passed to and from queries
  <small><A HREF="#longdesc">More...</A></small></TD></TR>
	</TABLE>
	<HR>
	<TABLE BORDER="0">
		<TR><TH>Definition</TH><TD><code>#include &lt;<A HREF="toqvalue_h.html">toqvalue.h</A>&gt;</code></TD></TR>
<TR><TH><A HREF="full-list-toQValue.html">List of all Methods</A></TH></TR>
	</TABLE>
	</TD>
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR>
<TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR>
<TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR>
<TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR>
<TR><TD><small><A HREF="index.html">Index</A></small></TD></TR>
</TABLE></TD></TR></TABLE>
<h4>Public Methods</h4><ul><LI>&nbsp;<b><A HREF="#ref3">toQValue</A></b> (void) 
</LI>
<LI>&nbsp;<b><A HREF="#ref4">toQValue</A></b> (int i) 
</LI>
<LI>&nbsp;<b><A HREF="#ref5">toQValue</A></b> (const <A HREF="/usr/lib/qt3/doc/html/qstring.html">QString</A> &str) 
</LI>
<LI>&nbsp;<b><A HREF="#ref6">toQValue</A></b> (double d) 
</LI>
<LI>&nbsp;<b><A HREF="#ref7">~toQValue</A></b> () 
</LI>
<LI>&nbsp;<b><A HREF="#ref8">toQValue</A></b> (const <A HREF="toQValue.html">toQValue</A> &copy) 
</LI>
<LI>const <A HREF="toQValue.html">toQValue</A> &&nbsp;<b><A HREF="#ref9">operator = </A></b> (const <A HREF="toQValue.html">toQValue</A> &copy) 
</LI>
<LI>bool &nbsp;<b><A HREF="#ref10">operator == </A></b> (const <A HREF="toQValue.html">toQValue</A> &)  const
</LI>
<LI>bool &nbsp;<b><A HREF="#ref11">isInt</A></b> (void)  const
</LI>
<LI>bool &nbsp;<b><A HREF="#ref12">isDouble</A></b> (void)  const
</LI>
<LI>bool &nbsp;<b><A HREF="#ref13">isString</A></b> (void)  const
</LI>
<LI>bool &nbsp;<b><A HREF="#ref14">isNull</A></b> (void)  const
</LI>
<LI>bool &nbsp;<b><A HREF="#ref15">isBinary</A></b> (void)  const
</LI>
<LI><A HREF="/usr/lib/qt3/doc/html/qcstring.html">QCString</A> &nbsp;<b><A HREF="#ref16">utf8</A></b> (void)  const
</LI>
<LI>int &nbsp;<b><A HREF="#ref17">toInt</A></b> (void)  const
</LI>
<LI>double &nbsp;<b><A HREF="#ref18">toDouble</A></b> (void)  const
</LI>
<LI>const <A HREF="/usr/lib/qt3/doc/html/qbytearray.html">QByteArray</A> &&nbsp;<b><A HREF="#ref19">toByteArray</A></b> (void)  const
</LI>
<LI>operator &nbsp;<b><A HREF="#ref20">QString</A></b> ()  const
</LI>
<LI><A HREF="/usr/lib/qt3/doc/html/qstring.html">QString</A> &nbsp;<b><A HREF="#ref21">toString</A></b> ()  const
</LI>
</ul><h4>Public Static Methods</h4><ul><LI>static  void &nbsp;<b><A HREF="#ref22">setNumberFormat</A></b> (int format,int decimals) 
</LI>
<LI>static  <A HREF="/usr/lib/qt3/doc/html/qstring.html">QString</A> &nbsp;<b><A HREF="#ref23">formatNumber</A></b> (double number) 
</LI>
<LI>static  int &nbsp;<b><A HREF="#ref24">numberFormat</A></b> (void) 
</LI>
<LI>static  int &nbsp;<b><A HREF="#ref25">numberDecimals</A></b> (void) 
</LI>
<LI>static  <A HREF="toQValue.html">toQValue</A> &nbsp;<b><A HREF="#ref26">createBinary</A></b> (const <A HREF="/usr/lib/qt3/doc/html/qbytearray.html">QByteArray</A> &arr) 
</LI>
<LI>static  <A HREF="toQValue.html">toQValue</A> &nbsp;<b><A HREF="#ref27">createFromHex</A></b> (const <A HREF="/usr/lib/qt3/doc/html/qstring.html">QString</A> &hex) 
</LI>
<LI>static  <A HREF="toQValue.html">toQValue</A> &nbsp;<b><A HREF="#ref28">createFromHex</A></b> (const <A HREF="/usr/lib/qt3/doc/html/qcstring.html">QCString</A> &hex) 
</LI>
</ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p> This function is used to represent values that are passed to and from queries
 </p>
<A NAME="toQValue"></A><A NAME="ref3"></A><table width="100%"><tr bgcolor="#eeeeee"><td>&nbsp;<strong>toQValue</strong> (void)
<br></td><td align="right"><h3><strong>toQValue</strong></h3></td></tr></table><p></p><p> Create null value.
   </p>
<A NAME="toQValue"></A><A NAME="ref4"></A><table width="100%"><tr bgcolor="#eeeeee"><td>&nbsp;<strong>toQValue</strong> (int i)
<br></td><td align="right"><h3><strong>toQValue</strong></h3></td></tr></table><p></p><p> Create integer value.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>i</i></TD><TD align="left" valign="top">Value.
   </TD></TR>
</TABLE></P>
<A NAME="toQValue"></A><A NAME="ref5"></A><table width="100%"><tr bgcolor="#eeeeee"><td>&nbsp;<strong>toQValue</strong> (const <A HREF="/usr/lib/qt3/doc/html/qstring.html">QString</A> &str)
<br></td><td align="right"><h3><strong>toQValue</strong></h3></td></tr></table><p></p><p> Create string value.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>str</i></TD><TD align="left" valign="top">Value.
   </TD></TR>
</TABLE></P>
<A NAME="toQValue"></A><A NAME="ref6"></A><table width="100%"><tr bgcolor="#eeeeee"><td>&nbsp;<strong>toQValue</strong> (double d)
<br></td><td align="right"><h3><strong>toQValue</strong></h3></td></tr></table><p></p><p> Create double value.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>d</i></TD><TD align="left" valign="top">Value.
   </TD></TR>
</TABLE></P>
<A NAME="~toQValue"></A><A NAME="ref7"></A><table width="100%"><tr bgcolor="#eeeeee"><td>&nbsp;<strong>~toQValue</strong> ()
<br></td><td align="right"><h3><strong>~toQValue</strong></h3></td></tr></table><p></p><p> Destruct query.
   </p>
<A NAME="toQValue"></A><A NAME="ref8"></A><table width="100%"><tr bgcolor="#eeeeee"><td>&nbsp;<strong>toQValue</strong> (const <A HREF="toQValue.html">toQValue</A> &copy)
<br></td><td align="right"><h3><strong>toQValue</strong></h3></td></tr></table><p></p><p> Create a copy of a value.
   </p>
<A NAME="operator%20=%20"></A><A NAME="ref9"></A><table width="100%"><tr bgcolor="#eeeeee"><td>const <A HREF="toQValue.html">toQValue</A> &&nbsp;<strong>operator = </strong> (const <A HREF="toQValue.html">toQValue</A> &copy)
<br></td><td align="right"><h3><strong>operator = </strong></h3></td></tr></table><p></p><p> Assign this value from another value.
   </p>
<A NAME="operator%20==%20"></A><A NAME="ref10"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool &nbsp;<strong>operator == </strong> (const <A HREF="toQValue.html">toQValue</A> &)
<br></td><td align="right"><h3><strong>operator == </strong></h3></td></tr></table><p> <small>[const]</small></p><p> Check a value for equality. Requires same type and same value. NULL is equal to other NULL values.
   </p>
<A NAME="isInt"></A><A NAME="ref11"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool &nbsp;<strong>isInt</strong> (void)
<br></td><td align="right"><h3><strong>isInt</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Check if this is an int value.
   </p>
<A NAME="isDouble"></A><A NAME="ref12"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool &nbsp;<strong>isDouble</strong> (void)
<br></td><td align="right"><h3><strong>isDouble</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Check if this is a double value.
   </p>
<A NAME="isString"></A><A NAME="ref13"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool &nbsp;<strong>isString</strong> (void)
<br></td><td align="right"><h3><strong>isString</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Check if this is a string value.
   </p>
<A NAME="isNull"></A><A NAME="ref14"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool &nbsp;<strong>isNull</strong> (void)
<br></td><td align="right"><h3><strong>isNull</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Check if this value is null.
   </p>
<A NAME="isBinary"></A><A NAME="ref15"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool &nbsp;<strong>isBinary</strong> (void)
<br></td><td align="right"><h3><strong>isBinary</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Check if this value is binary.
   </p>
<A NAME="utf8"></A><A NAME="ref16"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="/usr/lib/qt3/doc/html/qcstring.html">QCString</A> &nbsp;<strong>utf8</strong> (void)
<br></td><td align="right"><h3><strong>utf8</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Get utf8 format of this value.
   </p>
<A NAME="toInt"></A><A NAME="ref17"></A><table width="100%"><tr bgcolor="#eeeeee"><td>int &nbsp;<strong>toInt</strong> (void)
<br></td><td align="right"><h3><strong>toInt</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Get integer representation of this value.
   </p>
<A NAME="toDouble"></A><A NAME="ref18"></A><table width="100%"><tr bgcolor="#eeeeee"><td>double &nbsp;<strong>toDouble</strong> (void)
<br></td><td align="right"><h3><strong>toDouble</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Get double representation of this value.
   </p>
<A NAME="toByteArray"></A><A NAME="ref19"></A><table width="100%"><tr bgcolor="#eeeeee"><td>const <A HREF="/usr/lib/qt3/doc/html/qbytearray.html">QByteArray</A> &&nbsp;<strong>toByteArray</strong> (void)
<br></td><td align="right"><h3><strong>toByteArray</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Get binary representation of value. Can only be called when the data is actually binary.
   </p>
<A NAME="QString"></A><A NAME="ref20"></A><table width="100%"><tr bgcolor="#eeeeee"><td>operator &nbsp;<strong>QString</strong> ()
<br></td><td align="right"><h3><strong>QString</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Convert value to a string. If binary convert to hex.
   </p>
<A NAME="toString"></A><A NAME="ref21"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="/usr/lib/qt3/doc/html/qstring.html">QString</A> &nbsp;<strong>toString</strong> ()
<br></td><td align="right"><h3><strong>toString</strong></h3></td></tr></table><p> <small>[const]</small></p><p> Convert value to a string. If binary convert to hex.
   </p>
<A NAME="setNumberFormat"></A><A NAME="ref22"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>setNumberFormat</strong> (int format,int decimals)
<br></td><td align="right"><h3><strong>setNumberFormat</strong></h3></td></tr></table><p> <small>[static]</small></p><p> Set numberformat.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>format</i></TD><TD align="left" valign="top">0 = Default, 1 = Scientific, 2 = Fixed Decimals
</TD></TR>
<TR><TD align="left" valign="top"><i>decimals</i></TD><TD align="left" valign="top">Number on decimals for fixed decimals.
   </TD></TR>
</TABLE></P>
<A NAME="formatNumber"></A><A NAME="ref23"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="/usr/lib/qt3/doc/html/qstring.html">QString</A> &nbsp;<strong>formatNumber</strong> (double number)
<br></td><td align="right"><h3><strong>formatNumber</strong></h3></td></tr></table><p> <small>[static]</small></p><p> Format a number according to current settings.
   </p>
<A NAME="numberFormat"></A><A NAME="ref24"></A><table width="100%"><tr bgcolor="#eeeeee"><td> int &nbsp;<strong>numberFormat</strong> (void)
<br></td><td align="right"><h3><strong>numberFormat</strong></h3></td></tr></table><p> <small>[static]</small></p><p> Get number format.
</p>
<p><b>Returns</b>: Format 0 = Default, 1 = Scientific, 2 = Fixed Decimals
   </p>
<A NAME="numberDecimals"></A><A NAME="ref25"></A><table width="100%"><tr bgcolor="#eeeeee"><td> int &nbsp;<strong>numberDecimals</strong> (void)
<br></td><td align="right"><h3><strong>numberDecimals</strong></h3></td></tr></table><p> <small>[static]</small></p><p> Get decimals if fixed decimals.
   </p>
<A NAME="createBinary"></A><A NAME="ref26"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="toQValue.html">toQValue</A> &nbsp;<strong>createBinary</strong> (const <A HREF="/usr/lib/qt3/doc/html/qbytearray.html">QByteArray</A> &arr)
<br></td><td align="right"><h3><strong>createBinary</strong></h3></td></tr></table><p> <small>[static]</small></p><p> Create a binary value
   </p>
<A NAME="createFromHex"></A><A NAME="ref27"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="toQValue.html">toQValue</A> &nbsp;<strong>createFromHex</strong> (const <A HREF="/usr/lib/qt3/doc/html/qstring.html">QString</A> &hex)
<br></td><td align="right"><h3><strong>createFromHex</strong></h3></td></tr></table><p> <small>[static]</small></p><p> Create a binary value from it's hex representation.
   </p>
<A NAME="createFromHex"></A><A NAME="ref28"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="toQValue.html">toQValue</A> &nbsp;<strong>createFromHex</strong> (const <A HREF="/usr/lib/qt3/doc/html/qcstring.html">QCString</A> &hex)
<br></td><td align="right"><h3><strong>createFromHex</strong></h3></td></tr></table><p> <small>[static]</small></p><p> Create a binary value from it's hex representation.
   </p>
<HR>
	<table>
	<tr><td><small>Generated by: nneul on skyhawk on Wed Feb 23 19:49:58 2005, using kdoc 2.0a54.</small></td></tr>
	</table>
</BODY>
</HTML>