hk_interpreter Class Reference

basic class for script handling More...

#include <hk_interpreter.h>

Inheritance diagram for hk_interpreter:

Inheritance graph
[legend]
Collaboration diagram for hk_interpreter:

Collaboration graph
[legend]
List of all members.

Public Types

enum  enum_action {
  a_before_row_change, a_after_row_change, a_click, a_doubleclick,
  a_on_open, a_on_close, a_on_getfocus, a_on_loosefocus,
  a_on_key, a_before_update, a_after_update, a_before_delete,
  a_after_delete, a_before_insert, a_after_insert, a_on_print_data,
  a_on_print_new_page, a_on_select, a_on_valuechanged
}

Public Member Functions

 hk_interpreter (hk_presentation *p)
virtual void init ()
virtual bool on_click (hk_visible *)=0
virtual bool on_doubleclick (hk_visible *)=0
virtual bool before_row_change (hk_dsvisible *)=0
virtual bool after_row_change (hk_dsvisible *)=0
virtual bool before_update (hk_dsvisible *)=0
virtual bool after_update (hk_dsvisible *)=0
virtual bool before_delete (hk_dsvisible *)=0
virtual bool after_delete (hk_dsvisible *)=0
virtual bool before_insert (hk_dsvisible *)=0
virtual bool after_insert (hk_dsvisible *)=0
virtual bool on_close (hk_visible *)=0
virtual bool on_open (hk_visible *)=0
virtual bool on_getfocus (hk_visible *)=0
virtual bool on_loosefocus (hk_visible *)=0
virtual bool on_key (hk_visible *)=0
virtual bool on_valuechanged (hk_dsdatavisible *)=0
virtual bool on_print_data (hk_reportdata *)=0
virtual bool on_print_new_page (hk_report *)=0
virtual bool on_select (hk_dscombobox *)=0
virtual bool on_select (hk_dsgridcolumn *)=0
bool scripterror (void)
hk_string errormessage (void)
int error_rownumber (void)
virtual hk_string interpretername (void) const

Protected Attributes

hk_presentationp_presentation
bool p_error_occured
hk_string p_errormessage
int p_error_rownumber

Detailed Description

basic class for script handling

hk_interpreter is the basic class for script handling

Version:
Revision
1.23
Author:
Horst Knorr (hk_classes@knoda.org)


Member Function Documentation

virtual bool hk_interpreter::after_delete hk_dsvisible  )  [pure virtual]
 

executes the after_delete action

Implemented in hk_no_interpreter.

virtual bool hk_interpreter::after_insert hk_dsvisible  )  [pure virtual]
 

executes the after_insert action

Implemented in hk_no_interpreter.

virtual bool hk_interpreter::after_row_change hk_dsvisible  )  [pure virtual]
 

executes the after_row_change action

Implemented in hk_no_interpreter.

virtual bool hk_interpreter::after_update hk_dsvisible  )  [pure virtual]
 

executes the after_update action

Implemented in hk_no_interpreter.

virtual bool hk_interpreter::before_delete hk_dsvisible  )  [pure virtual]
 

executes the before_delete action

Implemented in hk_no_interpreter.

virtual bool hk_interpreter::before_insert hk_dsvisible  )  [pure virtual]
 

executes the before_insert action

Implemented in hk_no_interpreter.

virtual bool hk_interpreter::before_row_change hk_dsvisible  )  [pure virtual]
 

executes the before_row_change action

Implemented in hk_no_interpreter.

virtual bool hk_interpreter::before_update hk_dsvisible  )  [pure virtual]
 

executes the before_update action

Implemented in hk_no_interpreter.

int hk_interpreter::error_rownumber void   )  [inline]
 

Returns:
the row number of the script in which the error occured

hk_string hk_interpreter::errormessage void   )  [inline]
 

Returns:
the script language specific errormessage

virtual hk_string hk_interpreter::interpretername void   )  const [inline, virtual]
 

Returns:
the name of the scripting language

virtual bool hk_interpreter::on_click hk_visible  )  [pure virtual]
 

executes the on_click action

Implemented in hk_no_interpreter.

virtual bool hk_interpreter::on_close hk_visible  )  [pure virtual]
 

executes the on_close action

Implemented in hk_no_interpreter.

virtual bool hk_interpreter::on_doubleclick hk_visible  )  [pure virtual]
 

executes the on_doubleclick action

Implemented in hk_no_interpreter.

virtual bool hk_interpreter::on_getfocus hk_visible  )  [pure virtual]
 

executes the on_getfocus action

Implemented in hk_no_interpreter.

virtual bool hk_interpreter::on_key hk_visible  )  [pure virtual]
 

executes the on_key action

Implemented in hk_no_interpreter.

virtual bool hk_interpreter::on_loosefocus hk_visible  )  [pure virtual]
 

executes the on_loosefocus action

Implemented in hk_no_interpreter.

virtual bool hk_interpreter::on_open hk_visible  )  [pure virtual]
 

executes the on_open action

Implemented in hk_no_interpreter.

virtual bool hk_interpreter::on_print_data hk_reportdata  )  [pure virtual]
 

executes the on_print_data action

Implemented in hk_no_interpreter.

virtual bool hk_interpreter::on_print_new_page hk_report  )  [pure virtual]
 

executes the on_print_new_page action

Implemented in hk_no_interpreter.

virtual bool hk_interpreter::on_valuechanged hk_dsdatavisible  )  [pure virtual]
 

executes the on_valuechanged action

Implemented in hk_no_interpreter.

bool hk_interpreter::scripterror void   )  [inline]
 

Returns:
true if the last executed script failed due to an error


The documentation for this class was generated from the following files:
Generated on Tue May 2 09:15:48 2006 for Databaseconnectionclasses by  doxygen 1.4.6