Zen
A cross-platform functional programming language

Project::Impl Class Reference

Implementation of project loader class. More...

List of all members.

Public Member Functions

 Impl ()
 Default constructor.
int load (int argc, char *argv[])
 Load a project using command line arguments.
const Build::RunMode::TgetRunMode () const
 Get the run mode.
const z::stringgetProjectFile () const
 Get the project file name.
const Build::ProjectgetProject () const
 Get the project definition.

Private Member Functions

void initMakeCmds (zbl::CmdLine::Command &cmd)
 Initialize command line parser with make commands.
void initCommonCmds (zbl::CmdLine::Command &cmd)
 Initialize command line parser with common commands.
void initHelp (zbl::CmdLine &parser)
 Initialize command line parser with help commands.
void initInfo (zbl::CmdLine &parser)
 Initialize command line parser with info commands.
void initMake (zbl::CmdLine &parser)
 Initialize command line parser with make command.
void initBuild (zbl::CmdLine &parser)
 Initialize command line parser with build command.
void initCompile (zbl::CmdLine &parser)
 Initialize command line parser with compile command.
void validateProject ()
 validate the project
void validateConfig (Build::Config &cfg, const int &idx)
 validate configuration

Private Attributes

bool _includePathInfo
 True if include path info is required.
bool _linkPathInfo
 True if link info is required.
Build::RunMode::T _runMode
 Run mode.
Build::Project _project
 Project definition.
z::string _projectFile
 Project filename.
bool _projectX
 True if executable project.
bool _projectH
 True if shared project.
bool _projectT
 True if static project.

Detailed Description

Implementation of project loader class.


Member Function Documentation

const Build::Project& getProject ( ) const [inline]

Get the project definition.

Returns:
The project definition
const z::string& getProjectFile ( ) const [inline]

Get the project file name.

Returns:
The project file name
const Build::RunMode::T& getRunMode ( ) const [inline]

Get the run mode.

Returns:
The run mode
void initBuild ( zbl::CmdLine parser) [inline, private]

Initialize command line parser with build command.

Parameters:
parserThe parser instance
void initCommonCmds ( zbl::CmdLine::Command cmd) [inline, private]

Initialize command line parser with common commands.

Parameters:
cmdThe command instance
void initCompile ( zbl::CmdLine parser) [inline, private]

Initialize command line parser with compile command.

Parameters:
parserThe parser instance
void initHelp ( zbl::CmdLine parser) [inline, private]

Initialize command line parser with help commands.

Parameters:
parserThe parser instance
void initInfo ( zbl::CmdLine parser) [inline, private]

Initialize command line parser with info commands.

Parameters:
parserThe parser instance
void initMake ( zbl::CmdLine parser) [inline, private]

Initialize command line parser with make command.

Parameters:
parserThe parser instance
void initMakeCmds ( zbl::CmdLine::Command cmd) [inline, private]

Initialize command line parser with make commands.

Parameters:
cmdThe command instance
int load ( int  argc,
char *  argv[] 
) [inline]

Load a project using command line arguments.

Parameters:
argcArgument count
argvArgument variables
Returns:
0 on success, else error code
void validateConfig ( Build::Config cfg,
const int &  idx 
) [inline, private]

validate configuration

Parameters:
cfgThe configuration to validate
idxThe configuration index

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