# Source: hk_classes/hk_classes/hk_definitions.h

Annotated List
Files
Globals
Hierarchy
Index

    // ****************************************************************************
    // copyright (c) 2000,2001 Horst Knorr <hk_classes@knorrnet.de>
    // 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_DEFINITIONS
    #define HK_DEFINITIONS
    #include <hk_string.h>
    //#include <deque>
    #include <stdlib.h>
    #include <stdio.h>
    //#include <iostream.h>
    using namespace std;

    #define  HK_DEBUG
    #define HK_VERSION 054
    /**
    *@version $Revision: 1.23 $
    */
    enum filetype{ft_query,ft_form,ft_report,ft_table,ft_index} ;

    enum enum_support{
    supports_autoinc=1,
    supports_boolfield=2,
    supports_datefield=4,
    supports_timefield=8,
    supports_datetimefield=16,
    supports_binaryfield=32,
    supports_memofield=64,

    supports_sql=128,
    supports_transactions=256,
    supports_referentialintegrity=512
    }      ;

    enum enum_need{
    needs_host=1,
    needs_username=2,
    needs_password=4,
    needs_sqldelimiter=8,
    needs_port=16,
    needs_databasename=32
    };

    /**
    * used as entry to the raw data
    */

    typedef class struct_raw_data
    	{
    	public:
    	struct_raw_data(){length=0;data=NULL;}
    	unsigned long 	length;
    	const char*	data;

    	} ;

    typedef class struct_connectionfields
    	{
    	public:
    	struct_connectionfields(){cancel=false;save=false;};
    	hk_string host;
    	hk_string user;
    	hk_string password;
    	hk_string sql_delimiter;
    	hk_string port;
    	bool cancel;
    	bool save;
    	} ;
    int hk_random(int min,int max);

    class hk_column;
    /**
    *returns true if the columntype (not the data) is numeric, either integer or real.
    */
    bool is_numerictype(hk_column*);
    /**
    *returns true if the columntype (not the data) integer.
    */
    bool is_integertype(hk_column*);
    /**
    *returns true if the columntype (not the data) floating point type.
    */
    bool is_realtype(hk_column*);

    //the following functions and datatypes are all needed for hk_report
    class hk_report;
    class hk_reportdata;
    class hk_reportsection;

    typedef hk_string  	recodefunctiontype(const hk_string&,hk_report*);
    typedef hk_string	data_replacefunctiontype(hk_reportdata*,const hk_string&);
    typedef bool report_configurefunction(hk_report*,int);
    typedef bool reporttypefunction(hk_report*,bool);
    typedef unsigned long reportsectioncounttype(hk_reportsection*);
    typedef unsigned long reportdatacounttype(hk_reportdata*);
    typedef void 	data_configurefunctiontype(hk_reportdata*);

    union number
    {
     long integer;
     double real;
    };

    union longnumber
    {
     long long integer;
     long double real;
    };

    #endif

Generated by: horst on notebookhorst on Wed Aug 21 10:29:48 2002, using kdoc 2.0a54.