Zen
A cross-platform functional programming language

ProjectReader::Impl Class Reference

Implementation class for ProjectReader. More...

List of all members.

Classes

struct  StringListType
 Type of string list to read into. More...

Public Member Functions

 Impl (Build::Project &project)
 Default constructor.
void read (const z::string &filename)
 Read the specified file.

Private Member Functions

z::string getString (const Ast::Expr &expr) const
 Convert the expression to a string value.
int getInt (const Ast::Expr &expr) const
 Convert the expression to a int value.
bool getBool (const Ast::Expr &expr) const
 Convert the expression to a boolean value.
void readStringList (const Ast::Expr &expr, Build::Config &cfg, const StringListType::T &type)
 Read expression as a string list.
void readDepList (const Ast::Expr &expr, Build::Unit &unit)
 Read expression as a dependency list.
void readFileList (const Ast::Expr &expr)
 Read expression as a file list.
void readConfigList (const Ast::Expr &expr)
 Read expression as a configuration list.

Private Attributes

Build::Project_project
 The project definition being read.

Detailed Description

Implementation class for ProjectReader.


Constructor & Destructor Documentation

Impl ( Build::Project project) [inline]

Default constructor.

Parameters:
projectThe project definition to read into

Member Function Documentation

bool getBool ( const Ast::Expr expr) const [inline, private]

Convert the expression to a boolean value.

Parameters:
exprThe expression to convert
Returns:
The read value
int getInt ( const Ast::Expr expr) const [inline, private]

Convert the expression to a int value.

Parameters:
exprThe expression to convert
Returns:
The read value
z::string getString ( const Ast::Expr expr) const [inline, private]

Convert the expression to a string value.

Parameters:
exprThe expression to convert
Returns:
The read value
void read ( const z::string filename) [inline]

Read the specified file.

Parameters:
filenameThe project file to read
void readConfigList ( const Ast::Expr expr) [inline, private]

Read expression as a configuration list.

Parameters:
exprThe expression to read and convert
void readDepList ( const Ast::Expr expr,
Build::Unit unit 
) [inline, private]

Read expression as a dependency list.

Parameters:
exprThe expression to read and convert
unitThe unit (source file) to read into
void readFileList ( const Ast::Expr expr) [inline, private]

Read expression as a file list.

Parameters:
exprThe expression to read and convert
void readStringList ( const Ast::Expr expr,
Build::Config cfg,
const StringListType::T type 
) [inline, private]

Read expression as a string list.

Parameters:
exprThe expression to read and convert
cfgThe project configuration to read into
typeThe string list in the config to read into

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