Zen
A cross-platform functional programming language
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes

WindowFileGenerator Class Reference

Class that generates a window file. More...

List of all members.

Public Member Functions

 WindowFileGenerator (const Ast::WindowImplItem &def)
 Default constructor.
void generate (const Build::Project &project, const z::fileinfo &fi)
 Generates the window file.

Static Public Member Functions

static z::string getFilename (const z::fileinfo &fi, const Ast::FunctionDef &def)
 Returns the base filename for lexer and parser.

Private Member Functions

void enterWindow (const Build::Project &project, const z::string &filename)
 Initial code for the window file.
void leaveWindow (const Build::Project &project, const z::string &filename)
 Final code for the window file. Also calls the MOC compiler.

Private Attributes

const Ast::WindowImplItem_def
 The window implementation item.
zbl::CppGen::OutFile _moc
 MOC file.

Detailed Description

Class that generates a window file.


Constructor & Destructor Documentation

WindowFileGenerator ( const Ast::WindowImplItem def) [inline]

Default constructor.

Parameters:
defThe window implementation item

Member Function Documentation

void enterWindow ( const Build::Project project,
const z::string filename 
) [inline, private]

Initial code for the window file.

Parameters:
projectThe project definition
filenameThe lexer filename
void generate ( const Build::Project project,
const z::fileinfo fi 
) [inline]

Generates the window file.

Parameters:
projectThe project definition
fiFileInfo instance
static z::string getFilename ( const z::fileinfo fi,
const Ast::FunctionDef def 
) [inline, static]

Returns the base filename for lexer and parser.

Parameters:
fiFileInfo instance
defThe function definition for this grammar
Returns:
The base filename
void leaveWindow ( const Build::Project project,
const z::string filename 
) [inline, private]

Final code for the window file. Also calls the MOC compiler.

Parameters:
projectThe project definition
filenameThe lexer filename

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines