Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages | Examples

ScriptData Class Reference

This class is used as a "data source" object.ccScript data source module. More...

#include <bayonnescript.h>

Inheritance diagram for ScriptData:

Script Trunk::Database List of all members.

Protected Member Functions

virtual bool isId (const char *id)=0
 See if the id is one we accept.
virtual bool fetch (ScriptInterp *interp, unsigned row)=0
 Fetch a row of data, the row being the for "index".
void setSource (ScriptInterp *interp)
 Connect a scriptdata module.

Friends

class __EXPORT ScriptInterp

Detailed Description

This class is used as a "data source" object.ccScript data source module.

Data sources may be used in "for.xxx" to process data in a loop from a named data source attached to the script. This is typically used in SQL drivers.

Author:
David Sugar <dyfet@ostel.com>


Member Function Documentation

virtual bool ScriptData::fetch ScriptInterp interp,
unsigned  row
[protected, pure virtual]
 

Fetch a row of data, the row being the for "index".

Returns:
true if there is data for this row.
Parameters:
trunk object to parse and store results to.
row number (for index) to use.

virtual bool ScriptData::isId const char *  id  )  [protected, pure virtual]
 

See if the id is one we accept.

Returns:
true if a name we sink data under.
Parameters:
name to check.

Implemented in Trunk::Database.

void ScriptData::setSource ScriptInterp interp  )  [inline, protected]
 

Connect a scriptdata module.


Friends And Related Function Documentation

friend class __EXPORT ScriptInterp [friend]
 


The documentation for this class was generated from the following file:
Generated on Tue Sep 13 02:19:09 2005 for Bayonne by  doxygen 1.4.4