Zen
A cross-platform functional programming language

Unit Struct Reference

Unit class represents a single compilation unit in a project. More...

#include <Build.hpp>

List of all members.

Public Member Functions

 Unit ()
 Constructor for abstract base class.
UnitsetFileName (const z::string &val)
 Set file name.
const z::stringgetFileName () const
 Get file name.
UnitsetMoc (const bool &val)
 Set MOC flag.
const bool & getMoc () const
 Get MOC flag.
UnitsetCopyTo (const z::string &val)
 Set copy destination.
const z::stringgetCopyTo () const
 Get copy location.
UnitaddDep (const z::string &val)
 Add dependency unit.
const z::stringlistgetDepList () const
 Get dependency list.

Private Attributes

z::string _fileName
 The filename.
bool _moc
 Whether it should be MOC compiled.
z::string _copyTo
 Locton to copy it to, if at all.
z::stringlist _depList
 List of dependent units.

Detailed Description

Unit class represents a single compilation unit in a project.


Member Function Documentation

Unit& addDep ( const z::string val) [inline]

Add dependency unit.

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

Get copy location.

Returns:
The copy destination, if any.
const z::stringlist& getDepList ( ) const [inline]

Get dependency list.

Returns:
Reference to dependency list
const z::string& getFileName ( ) const [inline]

Get file name.

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

Get MOC flag.

Returns:
True if MOC should be invoked, else false
Unit& setCopyTo ( const z::string val) [inline]

Set copy destination.

Parameters:
valThe destination to copy to.
Returns:
Self-reference
Unit& setFileName ( const z::string val) [inline]

Set file name.

Parameters:
valThe file name to set
Returns:
Self-reference
Unit& setMoc ( const bool &  val) [inline]

Set MOC flag.

Parameters:
valTrue if MOC should be invoked
Returns:
Self-reference

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