Sophie

Sophie

distrib > Mandriva > 10.0 > i586 > by-pkgid > a86327fd014dc28b8b792dc8f310a4d6 > files > 107

libhk_classes5-devel-0.6.2a-3mdk.i586.rpm

<HTML>
<HEAD>
<TITLE>Source: hk_classes/hk_classes/hk_data.h</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>Source: hk_classes/hk_classes/hk_data.h</h1>
		</TD>
		<TD valign="top" align="right" colspan="1"></TD></TR>
	</TABLE>
	<HR>
	<TABLE BORDER="0">
		
	</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>
<pre>
// ****************************************************************************
// copyright (c) 2000-2002 Horst Knorr <hk_classes@knoda.org>
// This file is part of the hk_classes library.
// This file may be distributed and/or modified under the terms of the
// GNU Library Public License version 2 as published by the Free Software
// Foundation and appearing in the file COPYING included in the
// packaging of this file.
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
// ****************************************************************************
#ifndef HK_DATA
#define HK_DATA
#include <hk_class.h>
using namespace std;
/**
 *@short Base class for all kind of queries
 *@version $Revision: 1.2 $
 *@author Horst Knorr (hk_classes@knoda.org)
 *@internal
 *for internal use only.
 *Base class for queries of all type
 */

class hk_data: public hk_class
{
    friend class hk_database;
    public:
/**
 *name of the Datasource. If the datasource is of type "Table","Query", this name will be used to create automatically
 *a SQL-statement : "SELECT * FROM <name>"
 */
        virtual hk_string   name(void);
        virtual void    set_name(const hk_string& n);
/**
 *Datasources can be of different types (i.e. table). You never should get in contact with ds_unkown (which would
 *be understood as a bug)
 *
 */
        enum enum_datasourcetypes {ds_table,ds_query,ds_actionquery,ds_unknown};
        virtual enum_datasourcetypes type(void);

    protected:
        hk_data();
        virtual ~hk_data();
        virtual void before_source_vanishes(void);
        virtual void before_connection_disconnects(void);
        virtual void filelist_changes(filetype t);
        virtual bool driver_specific_name(const hk_string& n);
        hk_string   p_name;

    private:
//p_already_handled is used from hk_database in bulk operations to find out if this object has been already handled.
        bool    p_already_handled;

};
#endif
</pre>
<HR>
	<table>
	<tr><td><small>Generated by: horst on horstnotebook on Wed Sep 24 10:38:50 2003, using kdoc 2.0a54.</small></td></tr>
	</table>
</BODY>
</HTML>