![]() |
Zen
A cross-platform functional programming language
|
Unit class represents a single compilation unit in a project. More...
#include <Build.hpp>
Public Member Functions | |
| Unit () | |
| Constructor for abstract base class. | |
| Unit & | setFileName (const z::string &val) |
| Set file name. | |
| const z::string & | getFileName () const |
| Get file name. | |
| Unit & | setMoc (const bool &val) |
| Set MOC flag. | |
| const bool & | getMoc () const |
| Get MOC flag. | |
| Unit & | setCopyTo (const z::string &val) |
| Set copy destination. | |
| const z::string & | getCopyTo () const |
| Get copy location. | |
| Unit & | addDep (const z::string &val) |
| Add dependency unit. | |
| const z::stringlist & | getDepList () 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. | |
Unit class represents a single compilation unit in a project.
Add dependency unit.
| val | The unit |
| const z::string& getCopyTo | ( | ) | const [inline] |
Get copy location.
| const z::stringlist& getDepList | ( | ) | const [inline] |
Get dependency list.
| const z::string& getFileName | ( | ) | const [inline] |
Get file name.
| const bool& getMoc | ( | ) | const [inline] |
Get MOC flag.
Set copy destination.
| val | The destination to copy to. |
Set file name.
| val | The file name to set |
| Unit& setMoc | ( | const bool & | val | ) | [inline] |
Set MOC flag.
| val | True if MOC should be invoked |