WeScript Class Reference

Script object. More...

#include <weHtmlEntity.h>

Inheritance diagram for WeScript:

WeRefrenceObject WeHtmlDocument iweDocument WeHtmlEntity iweEntity iweEntity

List of all members.

Public Member Functions

 WeScript (iweEntity *prnt=NULL)
 Default constructor.
 WeScript (WeScript &entity)
 Copy constructor.
 ~WeScript ()
 Destructor.
virtual WeScannerToken Parse (string tagName, WeTagScanner &scanner, WeHTTP *processor=NULL)
 Parses the given stream.
bool SetEngine (void *engine=NULL)
 Sets the scripting engine.
void * Execute ()
 Executes the inherited script.


Detailed Description

Script object.

Base class to implement scripting engine operations.

Author:
A. Abramov
Date:
02.06.2009

Definition at line 231 of file weHtmlEntity.h.


Constructor & Destructor Documentation

WeScript::WeScript ( iweEntity prnt = NULL  ) 

Default constructor.

Parameters:
prnt - If non-null, the prnt.

Todo:
Implement this!

Definition at line 815 of file weHtmlEntity.cpp.

WeScript::WeScript ( WeScript entity  ) 

Copy constructor.

Parameters:
entity - the entity to make copy of.

Todo:
Implement this!

Definition at line 828 of file weHtmlEntity.cpp.

WeScript::~WeScript (  ) 

Destructor.

Todo:
Implement this!

Definition at line 838 of file weHtmlEntity.cpp.


Member Function Documentation

void * WeScript::Execute (  ) 

Executes the inherited script.

Return values:
null if it fails, cript execution results else.

Todo:
implement this

Definition at line 995 of file weHtmlEntity.cpp.

WeScannerToken WeScript::Parse ( string  tagName,
WeTagScanner scanner,
WeHTTP processor = NULL 
) [virtual]

Parses the given stream.

This is the specialisation for the parsing function to parse scripting objects.

Parameters:
tagName - name of the tag.
scanner - the scanner.
processor - WeHTTP object with processing options and network connection
Return values:
WeScannerToken that represents current scanner's state.

Todo:
process unpaired tag </script> inside the data

Todo:
decide about correct tag close - '>' or '/>'

Todo:
Implement post-process - download and others

Definition at line 856 of file weHtmlEntity.cpp.

bool WeScript::SetEngine ( void *  engine = NULL  ) 

Sets the scripting engine.

Sets or creates the scripting engine. If given parameter engine is NULL, this function tries to create the scripting engine based on the language attribute value. The default engine is the JavaScript.

Parameters:
engine - The pointer to the engine
Return values:
true if success, false otherwise

Todo:
implement this

Definition at line 982 of file weHtmlEntity.cpp.


The documentation for this class was generated from the following files:


 
©2009 Positive Technologies
 
Generated on Tue Jul 14 18:27:32 2009 for WebEngine by 
 
 
1.5.7
 
Get wpcObj at SourceForge.net. Fast, secure and Free Open Source software downloads