classdbcomponent.html
来自「一个功能强大的内存数据库源代码,c++编写,有详细的注释」· HTML 代码 · 共 42 行
HTML
42 行
<!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>dbComponent class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.15 --><center><a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> </center><hr><h1>dbComponent Class Reference</h1><code>#include <<a class="el" href="query_8h-source.html">query.h</a>></code><p><a href="classdbComponent-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0><tr><td colspan=2><br><h2>Public Methods</h2></td></tr><tr><td nowrap align=right valign=top><a name="dbComponenta0" doxytag="dbComponent::dbComponent"></a> </td><td valign=bottom><b>dbComponent</b> (char const *s, char const *f=NULL)</td></tr><tr><td colspan=2><br><h2>Public Attributes</h2></td></tr><tr><td nowrap align=right valign=top><a name="dbComponentm0" doxytag="dbComponent::structure"></a>char const * </td><td valign=bottom><b>structure</b></td></tr><tr><td nowrap align=right valign=top><a name="dbComponentm1" doxytag="dbComponent::field"></a>char const * </td><td valign=bottom><b>field</b></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>This class represents component of the structure. It is mostly needed for implementation of application specific database types. For example, look at <code>dbDate</code> class. It contains <code>int4 jday</code> component which stores time in seconds sinse 1970. This class defines its own comparison methods: <pre> <a class="el" href="classdbQueryExpression.html">dbQueryExpression</a> operator==(char const *field) { <a class="el" href="classdbQueryExpression.html">dbQueryExpression</a> expr; expr = dbComponent(field,"jday"),"=",jday; return expr; } </pre> Making it possible to sepcify queries like this (assume that record has column "released" with type dbDate: <pre> <a class="el" href="classdbQuery.html">dbQuery</a> q; dbDate date; q = date == "released"; </pre> <p><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="query_8h-source.html">query.h</a></ul><hr><address align="right"><small>Generated on Fri Nov 15 21:06:29 2002 for FastDB by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.15 </small></address></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?