Zen
A cross-platform functional programming language

Config Struct Reference

This class represents a configuration in a project (for example, dbg, rel, etc) More...

#include <Build.hpp>

List of all members.

Public Member Functions

 Config ()
 Constructor for abstract base class.
ConfigsetName (const z::string &val)
 Set configuration name.
const z::stringgetName () const
 Get configration name.
ConfigsetOutputType (const OutputType::T &val)
 Set output type.
const OutputType::TgetOutputType () const
 Get output type.
ConfigsetQtl (const z::string &val)
 Set Qt root directory.
const z::stringgetQtl () const
 Get Qt root directory.
ConfigsetSuffix (const z::string &val)
 Set output suffix.
const z::stringgetSuffix () const
 Get output suffix.
ConfigsetApiDir (const z::string &val)
 Set API directory.
const z::stringgetApiDir () const
 Get API directory.
ConfigsetPchName (const z::string &val)
 Set PCH name.
const z::stringgetPchName () const
 Get PCH name.
ConfigsetNoPch (const bool &val)
 Set noPch.
const bool & getNoPch () const
 Get noPch.
ConfigsetGenMain (const bool &val)
 Set whether main() should be generated.
const bool & getGenMain () const
 Get whether main() should be generated.
ConfigsetIsGui (const bool &val)
 Set if this is a GUI module.
const bool & getIsGui () const
 Get GUI value.
ConfigsetMkdir (const bool &val)
 Set whether output directories should be created.
const bool & getMkdir () const
 Get mkdir flag.
ConfigsetVerbose (const int &val)
 Set verbose.
const int & getVerbose () const
 Get verbose flag.
ConfigsetDebug (const bool &val)
 Set debug flag.
const bool & getDebug () const
 Get debug flag.
ConfigaddIncludePath (const z::string &val)
 Add include path.
const z::stringlistgetIncludePathList () const
 Get include list.
ConfigaddLibrary (const z::string &val)
 Add library file.
const z::stringlistgetLibraryList () const
 Get library list.

Private Attributes

z::string _name
 Configuration name.
OutputType::T _outputType
 Output type.
z::string _qtl
 Qt directory.
z::string _suffix
 Outut suffix.
z::string _outFile
 Output file name.
z::string _apiDir
 API directpry.
z::string _pchName
 PCH filename.
bool _noPch
 No PCH.
bool _genMain
 Generate main()
bool _isGui
 GUI flag.
bool _mkdir
 Mkdir flag.
int _verbose
 Verbose flag.
bool _debug
 Debug flag.
z::stringlist _includePathList
 Include file list.
z::stringlist _libraryList
 Library file list.

Detailed Description

This class represents a configuration in a project (for example, dbg, rel, etc)


Member Function Documentation

Config& addIncludePath ( const z::string val) [inline]

Add include path.

Parameters:
valThe path
Returns:
Self-reference
Config& addLibrary ( const z::string val) [inline]

Add library file.

Parameters:
valThe file
Returns:
Self-reference
const z::string& getApiDir ( ) const [inline]

Get API directory.

Returns:
The file name
const bool& getDebug ( ) const [inline]

Get debug flag.

Returns:
True if debug mode, else false
const bool& getGenMain ( ) const [inline]

Get whether main() should be generated.

Returns:
True if main() should be genertaed, else false
const z::stringlist& getIncludePathList ( ) const [inline]

Get include list.

Returns:
Reference to include list
const bool& getIsGui ( ) const [inline]

Get GUI value.

Returns:
True if GUI code is to be generated, else false.
const z::stringlist& getLibraryList ( ) const [inline]

Get library list.

Returns:
Reference to library list
const bool& getMkdir ( ) const [inline]

Get mkdir flag.

Returns:
True if output directories should be created, else false
const z::string& getName ( ) const [inline]

Get configration name.

Returns:
The configration name
const bool& getNoPch ( ) const [inline]

Get noPch.

Returns:
The value of noPCH
const OutputType::T& getOutputType ( ) const [inline]

Get output type.

Returns:
Output type
const z::string& getPchName ( ) const [inline]

Get PCH name.

Returns:
The file name
const z::string& getQtl ( ) const [inline]

Get Qt root directory.

Returns:
The file name
const z::string& getSuffix ( ) const [inline]

Get output suffix.

Returns:
The suffix
const int& getVerbose ( ) const [inline]

Get verbose flag.

Returns:
True if output should be verbose, else false.
Config& setApiDir ( const z::string val) [inline]

Set API directory.

Parameters:
valNew value
Returns:
Self-reference
Config& setDebug ( const bool &  val) [inline]

Set debug flag.

Parameters:
valNew value
Returns:
Self-reference
Config& setGenMain ( const bool &  val) [inline]

Set whether main() should be generated.

Parameters:
valNew value
Returns:
Self-reference
Config& setIsGui ( const bool &  val) [inline]

Set if this is a GUI module.

Parameters:
valNew value
Returns:
Self-reference
Config& setMkdir ( const bool &  val) [inline]

Set whether output directories should be created.

Parameters:
valNew value
Returns:
Self-reference
Config& setName ( const z::string val) [inline]

Set configuration name.

Parameters:
valConfiguration name
Returns:
Self-reference
Config& setNoPch ( const bool &  val) [inline]

Set noPch.

Parameters:
valNew value
Returns:
Self-reference
Config& setOutputType ( const OutputType::T val) [inline]

Set output type.

Parameters:
valNew value
Returns:
Self-reference
Config& setPchName ( const z::string val) [inline]

Set PCH name.

Parameters:
valNew value
Returns:
Self-reference
Config& setQtl ( const z::string val) [inline]

Set Qt root directory.

Parameters:
valNew value
Returns:
Self-reference
Config& setSuffix ( const z::string val) [inline]

Set output suffix.

Parameters:
valNew value
Returns:
Self-reference
Config& setVerbose ( const int &  val) [inline]

Set verbose.

Parameters:
valNew value
Returns:
Self-reference

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