DeCaf:Net the poor mans solution to the world of the web.
The HQL Kernel main goal is to do the physical conversion of the HQL files into standard HTML files using the HQL Verbs to encode the HQL code.
The HQL Kernel is created as a COM Server Module for the following good reasons. This gives us an HQL engine that can be used in many applications down the road. It gives us the option to load and run it in the background where it can monitor Projects and other HQL files.
The HQL Kernel is using Verbs to perform its conversion. A Verb is a hqlSomething.Dll found in its home directory.
One of the more interesting features is the monitor function. The HQL Kernel will not only monitor the HQL files for newer versions (the date of the HQL file is younger than the counter part HTML file). The COM Server will also look for files used by the HQL file, and if a document file used by the HQL page is younger than the HTML file it will convert the HQL file and thereby update the HTML file with the current information.
Note: You do not need to know anything about the HQL Kernel, but we have included some technical information just for people that want to use the Engine with other projects.
The HQL Kernel COM Server Interface:
|
Name |
HQKernel.Converter |
|
|
Methods |
OpenConverter |
Needs to be run to initialize the converter |
| |
CloseConverter |
Needs to run to close down the converter |
| |
Execute |
Convert HqlFilename to HtmlFileName |
| |
OpenContact(String) |
1011
Return Contact List
1021
Return Language List
1031
Return Verb Syntax |
|
Properties |
OutputVerb = String |
Set output Verb (default = Echo) |
| |
LocalHome = String |
Set {HOME} Path |
| |
LocalRoot = String |
Set {ROOT} Path |
| |
ShowLineMsg = Integer / Boolean |
Turn on of showing conversion progress |
| |
HqlFileName = String |
Name of file to convert |
| |
HtmlFileName = String |
Name of output file |
| |
ErrorStatus = Integer |
Negative value for error condition |
| |
Script = String |
Get or Set the current script |
| |
LineCount = Integer |
Get current line count in current script |
| |
Line(index) = String |
Get or Set a line in the current script |
| |
Variables = String |
Get currently used Variables created by conversion |
| |
VerbSyntaxList = String |
Get currently loaded Syntax |
| |
Language = String |
Get currently loaded Verbs |
| |
DLLInfo = String |
Get Verbs and Syntax in HTML format |
| |
CheckTime =Integer |
Monitor interval in minutes |
| |
ContactResponse = String |
See OpenContact |