C++ Web Framework  3.0
Public Member Functions | List of all members
CSTLCompiler Class Reference

This class compiles view pages with CSTL (C++ Server Pages Standard Tags Library). More...

#include <cstlcompiler.h>

Public Member Functions

 CSTLCompiler (const QByteArray &str, const QString &path, QMap< QString, QObject *> &objects, bool isStrFileName=true)
 Initialize the str, objects and isStrFileName properties. More...
 
QByteArray output ()
 Returns the compiled view page. More...
 

Detailed Description

This class compiles view pages with CSTL (C++ Server Pages Standard Tags Library).

Constructor & Destructor Documentation

◆ CSTLCompiler()

CWF_BEGIN_NAMESPACE CSTLCompiler::CSTLCompiler ( const QByteArray &  str,
const QString &  path,
QMap< QString, QObject *> &  objects,
bool  isStrFileName = true 
)

Initialize the str, objects and isStrFileName properties.

Parameters
constQByteArray &str : If isStrFileName is true, it should be a file name, else, it should be the file content.
QMap<QString,QObject*> &objects : Container objects that can be compiled into the view page.
boolisStrFileName : It indicates whether str is the name of a file or its contents.

Member Function Documentation

◆ output()

QByteArray CSTLCompiler::output ( )

Returns the compiled view page.

Returns
QByteArray : Compiled page.

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