亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? bpa.htm

?? The goal of this library is to make ODBC recordsets look just like an STL container. As a user, you
?? HTM
字號:
<html>


<head>
<style>
CODE {COLOR: #990000;}
.code{COLOR: #990000}
.codeComment{COLOR: #008000}
.codeHighlight{BACKGROUND-COLOR: #FFFF00}
.codeFileName{FONT-WEIGHT: bold;}
</style>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="Author" content="Mike Gradman">
<meta name="KeyWords"
content="DTL, Oracle, ODBC, database API, C++, Template Library">
<meta name="GENERATOR" content="Microsoft FrontPage Express 2.0">
<!--
  -- Copyright 2000
  -- Michael Gradman & Corwin Joy
  --
  -- Permission to use, copy, modify, distribute and sell this software
  -- and its documentation for any purpose is hereby granted without fee,
  -- provided that the above copyright notice appears in all copies and
  -- that both that copyright notice and this permission notice appear
  -- in supporting documentation.  Corwin Joy & Michael Gradman make no
  -- representations about the suitability of this software for any
  -- purpose.  It is provided "as is" without express or implied warranty.
  --
  --
  -- Copyright (c) 1996-1999
  -- Silicon Graphics Computer Systems, Inc.
  --
  -- Permission to use, copy, modify, distribute and sell this software
  -- and its documentation for any purpose is hereby granted without fee,
  -- provided that the above copyright notice appears in all copies and
  -- that both that copyright notice and this permission notice appear
  -- in supporting documentation.  Silicon Graphics makes no
  -- representations about the suitability of this software for any
  -- purpose.  It is provided "as is" without express or implied warranty.
  --
  -- Copyright (c) 1994
  -- Hewlett-Packard Company
  --
  -- Permission to use, copy, modify, distribute and sell this software
  -- and its documentation for any purpose is hereby granted without fee,
  -- provided that the above copyright notice appears in all copies and
  -- that both that copyright notice and this permission notice appear
  -- in supporting documentation.  Hewlett-Packard Company makes no
  -- representations about the suitability of this software for any
  -- purpose.  It is provided "as is" without express or implied warranty.
  --
  -->
<!-- Generated by htmldoc -->
<title>BPA</title>
</head>

<body bgcolor="#FFFFFF" text="#000000" link="#0000EE"
vlink="#551A8B" alink="#FF0000">

<p><font size="6" face="Bookman Old Style"><em><strong><u>dtl</u></strong></em></font></p>

<p><img src="stat.gif" width="6" height="6"> <!--end header--> <br>
</p>
<h1>BPA</h1>


















<table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
        <td><img src="functors.gif" width="194" height="38"></td>
        <td align="right"><img src="concept.gif" width="194"
        height="39"></td>
    </tr>
    <tr>
        <td valign="top"><b>Category</b>: functors</td>
        <td align="right" valign="top"><b>Component type</b>:
        concept</td>
    </tr>
</table>
<h3>Description</h3>

<p>A <font size="2" face="Courier New">BPA</font> is a function object (this can be a wrapped 
function pointer if you use 
<a href="cb_ptr_fun.htm"> <font size="2" face="Courier New">cb_ptr_fun()</font></a>) 
that is called to create an association between the parameters in a SQL statement and the
fields in a user defined parameter object that is used to hold
individual values to pass to the query.</p>

<h3>Refinement of</h3>

<p>None.</p>

<h3>Associated types</h3>

<p><a href="BoundIO.htm"><font size="2" face="Courier New">BoundIOs</font></a>.</p>

<h3>Example 1:</h3>
<pre><code><span class="codeComment">//BPA Functor to bind SQL parameters to a data object</span>

<span class="codeComment">// &quot;Example&quot; class to hold rows from our database table</span>
class Example
{
  public:                                <span class="codeComment">// tablename.columnname:</span>
	int exampleInt;                 <span class="codeComment">// DB_EXAMPLE.INT_VALUE</span>
	string exampleStr;              <span class="codeComment">// DB_EXAMPLE.STRING_VALUE</span>
	double exampleDouble;           <span class="codeComment">// DB_EXAMPLE.DOUBLE_VALUE</span>
	long exampleLong;               <span class="codeComment">// DB_EXAMPLE.EXAMPLE_LONG</span>
	TIMESTAMP_STRUCT exampleDate;   <span class="codeComment">// DB_EXAMPLE.EXAMPLE_DATE</span>

	Example(int exInt, const string &amp;exStr, double exDouble, long exLong,
		const TIMESTAMP_STRUCT &amp;exDate) :
	   exampleInt(exInt), exampleStr(exStr), exampleDouble(exDouble), exampleLong(exLong),
	   exampleDate(exDate)
	{ }

};

<span class="codeComment">// Create an association between table columns and fields in our object</span>
class BCAExampleObj
{
public:
	void operator()(BoundIOs &amp;cols, Example &amp;rowbuf)
    	{
	   cols[&quot;INT_VALUE&quot;] == rowbuf.exampleInt;
	   cols[&quot;STRING_VALUE&quot;] == rowbuf.exampleStr;
	   cols[&quot;DOUBLE_VALUE&quot;] == rowbuf.exampleDouble;
	   cols[&quot;EXAMPLE_LONG&quot;] == rowbuf.exampleLong;
	   cols[&quot;EXAMPLE_DATE&quot;] == rowbuf.exampleDate;
	}
}

class ExampleParamObj
{
    public:
       	int lowIntValue;
	int highIntValue;
	string strValue;
	TIMESTAMP_STRUCT dateValue;
};

class BPAParamObj
{
public:
	void operator()(BoundIOs &amp;boundIOs, ExampleParamObj &amp;paramObj)
	{
	  boundIOs[0] == paramObj.lowIntValue;
	  boundIOs[1] == paramObj.highIntValue;
	  boundIOs[2] == paramObj.strValue;
	  boundIOs[3] == paramObj.dateValue;
	}

};

<span class="codeComment">// read some Example objects from the database and return a vector of</span>
<span class="codeComment">// the results, use BPA to set join parameters</span>
vector&lt;Example&gt; ReadData()
{
	vector&lt;Example&gt; results;

	<span class="codeComment">// construct view</span>
	
	DBView&lt;Example, ExampleParamObj&gt;
		view(&quot;DB_EXAMPLE&quot;, BCAExampleObj(),
		&quot;WHERE INT_VALUE BETWEEN (?) AND (?) AND &quot;
		&quot;STRING_VALUE = (?) OR EXAMPLE_DATE &lt; (?) ORDER BY EXAMPLE_LONG&quot;,
		BPAParamObj());

	<span class="codeComment">// loop through query results and add them to our vector</span>
	<span class="codeComment">// in this loop, read_it.GetLastCount() records read from DB</span>

	DBView&lt;Example, ExampleParamObj&gt;::select_iterator read_it = view.begin();

	<span class="codeComment">// set parameter values for the WHERE clause in our SQL query</span>
	read_it.Params().lowIntValue = 2;
	read_it.Params().highIntValue = 8;
	read_it.Params().strValue = &quot;Example&quot;;
	
	TIMESTAMP_STRUCT paramDate = {2000, 1, 1, 0, 0, 0, 0};
	read_it.Params().dateValue = paramDate;

	for ( ; read_it != view.end();  read_it++)
	{
		cout &lt;&lt; &quot;Reading element #&quot; &lt;&lt; read_it.GetLastCount() &lt;&lt; endl;
		results.push_back(*read_it);

		cout &lt;&lt; &quot;read_it-&gt;exampleInt = &quot; &lt;&lt; read_it-&gt;exampleInt &lt;&lt; endl;
		cout &lt;&lt; &quot;read_it-&gt;exampleStr = &quot; &lt;&lt; read_it-&gt;exampleStr &lt;&lt; endl;
		
	}
	
	return results;
}
</code></pre>
<p>&nbsp;</p>

<h3>Example 2:</h3>
<pre><code><span class="codeComment">//Function object to bind SQL parameters to a data object</span>

class BPAExampleObj
{
public:
	void operator()(BoundIOs &amp;boundIOs, ParamObjExample &amp;paramObj)
	{
	  boundIOs[0] == paramObj.lowIntValue;
	  boundIOs[1] == paramObj.highIntValue;
	  boundIOs[2] == paramObj.strValue;
	  boundIOs[3] == paramObj.dateValue;
	}

};
</code></pre>
<h3>Notation</h3>

<table border="0">
    <tr>
        <td valign="top"><tt>X</tt> </td>
        <td valign="top">A type that is a model of <font size="2"
        face="Courier New">BPA</font></td>
    </tr>
    <tr>
        <td valign="top"><tt>a</tt> </td>
        <td valign="top">Object of type <tt>X</tt> </td>
    </tr>
</table>

<h3>Expression semantics</h3>

<table border="1">
    <tr>
        <th>Name </th>
        <th>Expression </th>
        <th>Precondition </th>
        <th>Semantics </th>
        <th>Postcondition </th>
    </tr>
    <tr>
        <td valign="top">Default constructor </td>
        <td valign="top"><pre>X a()</pre>
        </td>
        <td valign="top">&nbsp; </td>
        <td valign="top">Construct the function object.</td>
        <td valign="top">&nbsp;</td>
    </tr>
    <tr>
        <td valign="top">Copy constructor </td>
        <td valign="top"><pre>X a(constX &amp;b)</pre>
        </td>
        <td valign="top">&nbsp; </td>
        <td valign="top">Copy construct the <font size="2"
        face="Courier New">BPA</font>.</td>
        <td valign="top">&nbsp;</td>
    </tr>
    <tr>
        <td valign="top">Assignment operator</td>
        <td valign="top"><pre>X&amp; operator=(const X&amp;b)</pre>
        </td>
        <td valign="top">&nbsp; </td>
        <td valign="top">Assignment copy</td>
        <td valign="top">&nbsp;</td>
    </tr>
    <tr>
        <td valign="top">Bind columns operator</td>
        <td valign="top"><pre>void operator()(BoundIOs &amp;boundIOs, ParamObj &amp;parambuf)</pre>
        </td>
        <td valign="top">&nbsp; </td>
        <td valign="top">This operator takes a <font size="2"
        face="Courier New">BoundIOs</font> object and a reference
        to a <font size="2" face="Courier New">parambuf </font>holding
        a user defined parameter object. The job of the bind
        parameters operator is to create an association between
        parameters in a SQL view as designated by a <font
        size="2" face="Courier New">&quot;(?)&quot; </font>and
        fields in a user defined parameter object. This
        association is usually created by invoking the following
        cantrip:<p><font size="2" face="Courier New">boundIOs[SQL
        Parameter Number] == parambuf.FieldName </font></p>
        <p>for each parameter in the SQL query. For details on
        this syntax see <a href="BoundIO.htm"><font size="2"
        face="Courier New">BoundIOs</font></a><font size="2"
        face="Courier New">. </font>The parameters to be bound
        must be statically allocated members of the <font
        size="2" face="Courier New">ParamObj</font> (there are
        some exceptions - see<font size="2" face="Courier New"> </font><a
        href="BoundIO.htm"><font size="2" face="Courier New">BoundIOs</font></a><font
        size="2" face="Courier New"> </font>for details). At the
        end of the operation, all parameters to be bound in the
        SQL query must be in the <a href="BoundIO.htm"><font
        size="2" face="Courier New">BoundIOs</font></a><font
        size="2" face="Courier New"> </font>container. When <font
        size="2" face="Courier New">operator()</font> is called,
        the <font size="2" face="Courier New">BoundIOs </font>container
        <strong>will not </strong>be empty, but will typically
        contain any previously bound fields from the <a
        href="BCA.htm"><font size="2" face="Courier New">BCA</font></a><font
        size="2" face="Courier New">.</font></p>
        </td>
        <td valign="top"><a href="BoundIO.htm"><font size="2"
        face="Courier New">BoundIOs</font></a> contains a
        complete list of parameter in the SQL query which are
        bound to the <font size="2" face="Courier New">ParamObj</font>.</td>
    </tr>
</table>

<p>&nbsp;</p>

<h3>Notes</h3>

<p>None.</p>

<h3>See also</h3>

<p><a href="BCA.htm"><font size="2" face="Courier New">BCA</font></a><font
size="2" face="Courier New">, </font><a href="BoundIO.htm"><font
size="2" face="Courier New">BoundIOs</font></a><font size="2"
face="Courier New">, </font><a href="DBView.htm"><font
size="2" face="Courier New">DBView</font></a><font size="2"
face="Courier New">, </font><a
href="IndexedDBView.htm"><font size="2"
face="Courier New">IndexedDBView</font><font size="2"><!--start footer--></font></a></p>


<hr>

<p><a href="index.htm"><img src="dtl_home.gif" alt="[DTL Home]"
width="54" height="54"></a> <br>
</p>

<p>Copyright 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品va天堂亚洲国产| 亚洲色图色小说| 91麻豆国产在线观看| 另类成人小视频在线| 亚洲四区在线观看| 国产欧美精品一区二区色综合| 欧美在线观看视频一区二区三区| 国产经典欧美精品| 日本强好片久久久久久aaa| 亚洲精品国产一区二区精华液| 亚洲精品一区二区三区香蕉| 亚洲美女偷拍久久| 国产欧美精品一区aⅴ影院| 欧美不卡在线视频| 91精品国产色综合久久不卡电影 | 日韩黄色片在线观看| 亚洲日韩欧美一区二区在线| 久久久久久综合| 日韩欧美一区在线观看| 精品视频一区三区九区| 一本色道久久综合亚洲91 | 色噜噜狠狠一区二区三区果冻| 国产精品一区二区视频| 国内精品伊人久久久久影院对白| 亚洲丶国产丶欧美一区二区三区| 亚洲日本电影在线| 国产精品传媒视频| 国产精品你懂的| 国产欧美日韩一区二区三区在线观看| 久久亚洲一区二区三区明星换脸| 欧美一区二区三区免费| 欧美一级欧美三级在线观看| 欧美日韩视频专区在线播放| 欧美在线短视频| 欧美日韩精品一区二区| 欧美性生活大片视频| 欧美性videosxxxxx| 欧美性一级生活| 欧美日韩一区二区三区高清| 欧美在线三级电影| 亚洲男人天堂一区| 一个色妞综合视频在线观看| 亚洲狠狠丁香婷婷综合久久久| 亚洲精品国产成人久久av盗摄| 亚洲美女视频在线观看| 亚洲一二三四区| 视频一区二区中文字幕| 免费观看在线综合| 国产一区二区剧情av在线| 国产麻豆精品一区二区| 不卡区在线中文字幕| 色一情一伦一子一伦一区| 欧美系列在线观看| 日韩一区二区免费在线观看| 久久尤物电影视频在线观看| 欧美极品xxx| 亚洲欧洲精品一区二区三区 | 国产麻豆91精品| 成人综合婷婷国产精品久久免费| jlzzjlzz亚洲日本少妇| 一本在线高清不卡dvd| 欧美日韩一区视频| 精品久久一二三区| 亚洲欧美在线视频观看| 亚洲.国产.中文慕字在线| 久久精品99国产精品| 国产999精品久久久久久绿帽| 99久久免费国产| 欧美日韩一区二区三区高清 | 91在线国产福利| 欧美日韩久久久久久| 精品久久久久一区二区国产| 中文一区二区在线观看| 亚洲国产成人tv| 国产一区二区三区国产| 欧美在线一二三| 久久亚洲影视婷婷| 亚洲最大成人网4388xx| 国产一区二区伦理片| 在线观看视频欧美| 久久精品网站免费观看| 亚洲成人7777| 波多野洁衣一区| 欧美一区二区三区日韩| 中文字幕亚洲一区二区va在线| 日韩中文字幕1| 91丝袜国产在线播放| 精品国内二区三区| 亚洲一级在线观看| 大桥未久av一区二区三区中文| 在线影视一区二区三区| 久久久电影一区二区三区| 亚洲小说春色综合另类电影| 岛国av在线一区| 欧美电影免费观看高清完整版| 亚洲美女偷拍久久| 丁香婷婷综合网| 日韩美一区二区三区| 亚洲愉拍自拍另类高清精品| 国产成人aaa| 日韩久久久精品| 亚洲第一狼人社区| 91色婷婷久久久久合中文| 国产香蕉久久精品综合网| 日日夜夜一区二区| 欧美影片第一页| 国产精品久久久久影院| 国产麻豆视频一区| 日韩女同互慰一区二区| 日韩精品一级中文字幕精品视频免费观看 | 日韩欧美激情一区| 亚洲国产精品一区二区久久| 成人av在线电影| 久久久久久久久久电影| 久久疯狂做爰流白浆xx| 7777精品伊人久久久大香线蕉超级流畅 | 精品综合免费视频观看| 欧美二区在线观看| 亚洲国产色一区| 欧美综合色免费| 亚洲欧美福利一区二区| 99免费精品视频| 欧美激情在线看| 成人性视频免费网站| 久久精品人人做人人综合| 久久99国产精品久久99| 日韩亚洲欧美综合| 蜜臀av性久久久久蜜臀av麻豆| 欧美嫩在线观看| 日韩高清欧美激情| 欧美视频日韩视频在线观看| 一区二区三区国产| 欧美亚洲精品一区| 亚洲国产精品久久久久婷婷884| 在线欧美一区二区| 亚洲主播在线观看| 欧美情侣在线播放| 欧美久久一二区| 午夜欧美大尺度福利影院在线看| 欧美日韩一区二区三区视频| 无吗不卡中文字幕| 精品美女一区二区三区| 国产精品一区二区三区乱码| 国产欧美日韩在线视频| 成人99免费视频| 亚洲综合久久久| 在线电影院国产精品| 久久精品久久99精品久久| 精品99久久久久久| 成人精品国产一区二区4080| 亚洲丝袜美腿综合| 欧美日韩国产精选| 久久精品国产精品亚洲综合| 国产亚洲污的网站| 成人开心网精品视频| 一区二区三区在线高清| 欧美日韩国产欧美日美国产精品| 免费欧美在线视频| 国产拍欧美日韩视频二区| 91原创在线视频| 亚洲国产精品视频| 日韩欧美一级二级三级久久久| 国产一区二区福利| 一区二区三区在线视频观看| 在线观看91av| 国产suv精品一区二区三区| 国产精品不卡在线| 欧美精品一二三| 国产 欧美在线| 亚洲香蕉伊在人在线观| 精品国产亚洲一区二区三区在线观看| 成人免费毛片片v| 亚洲超碰精品一区二区| 久久久久国产精品厨房| 91成人免费在线| 国产一区在线观看麻豆| 亚洲一区二区三区四区五区黄| 日韩精品中文字幕在线不卡尤物| 懂色av一区二区夜夜嗨| 天堂蜜桃91精品| 国产精品免费看片| 91精品在线观看入口| 91在线视频官网| 久久国产婷婷国产香蕉| 亚洲视频狠狠干| 精品国产污污免费网站入口| 色综合天天综合狠狠| 韩国一区二区在线观看| 亚洲成人av免费| 自拍视频在线观看一区二区| 欧美精品久久一区二区三区| 成人午夜电影网站| 麻豆国产一区二区| 亚洲va欧美va人人爽午夜| 中文无字幕一区二区三区| 日韩欧美视频在线| 欧美日韩视频在线第一区 | 欧美日韩一区二区三区四区五区| 高潮精品一区videoshd| 青青草原综合久久大伊人精品优势 |