cbp2make
Makefile generation tool for Code::Blocks IDE
Public Member Functions | Private Attributes | Friends | List of all members
CBuildUnit Class Reference

Build unit description. More...

#include <cbpunit.h>

Public Member Functions

CString FileName (void) const
 
CString Extension (void) const
 
bool BelongToTarget (const CString &TargetName)
 
CString CompilerVariable (void) const
 
bool DoCompile (void) const
 
bool DoLink (void) const
 
int Weight (void) const
 
void Clear (void)
 Resets the build unit to the initial state. More...
 
void Read (const TiXmlElement *UnitRoot)
 Reads the build unit settings from an XML document. More...
 
void Show (void)
 Prints the build unit contents to standard output. More...
 
 CBuildUnit (void)
 Creates build unit. More...
 
 ~CBuildUnit (void)
 Destroys build unit. More...
 

Private Attributes

CString m_FileName
 File name of the build unit. More...
 
CStringList m_Targets
 List of build target names to which this build unit belong. More...
 
CString m_CompilerVariable
 
bool m_DoCompile
 Allows compilation of the build unit. More...
 
bool m_DoLink
 Allows linking of the build unit. More...
 
int m_Weight
 Weight (priority) of the build unit. More...
 
CString m_ObjectFileName
 File name of the object file (a result of compilation) of this build unit. More...
 

Friends

class CUnitWeightComparison
 

Detailed Description

Build unit description.

Contains properties of a build unit.

Constructor & Destructor Documentation

◆ CBuildUnit()

CBuildUnit::CBuildUnit ( void  )

Creates build unit.

◆ ~CBuildUnit()

CBuildUnit::~CBuildUnit ( void  )

Destroys build unit.

Member Function Documentation

◆ BelongToTarget()

bool CBuildUnit::BelongToTarget ( const CString TargetName)

◆ Clear()

CBuildUnit::Clear ( void  )

Resets the build unit to the initial state.

◆ CompilerVariable()

CString CBuildUnit::CompilerVariable ( void  ) const
inline

◆ DoCompile()

bool CBuildUnit::DoCompile ( void  ) const
inline

◆ DoLink()

bool CBuildUnit::DoLink ( void  ) const
inline

◆ Extension()

CString CBuildUnit::Extension ( void  ) const

◆ FileName()

CString CBuildUnit::FileName ( void  ) const
inline

◆ Read()

CBuildUnit::Read ( const TiXmlElement *  UnitRoot)

Reads the build unit settings from an XML document.

Parameters
UnitRootan element of an XML document.

◆ Show()

CBuildUnit::Show ( void  )

Prints the build unit contents to standard output.

◆ Weight()

int CBuildUnit::Weight ( void  ) const
inline

Friends And Related Function Documentation

◆ CUnitWeightComparison

friend class CUnitWeightComparison
friend

Member Data Documentation

◆ m_CompilerVariable

CString CBuildUnit::m_CompilerVariable
private

◆ m_DoCompile

CBuildUnit::m_DoCompile
private

Allows compilation of the build unit.

◆ m_DoLink

CBuildUnit::m_DoLink
private

Allows linking of the build unit.

◆ m_FileName

CBuildUnit::m_FileName
private

File name of the build unit.

◆ m_ObjectFileName

CBuildUnit::m_ObjectFileName
private

File name of the object file (a result of compilation) of this build unit.

◆ m_Targets

CBuildUnit::m_Targets
private

List of build target names to which this build unit belong.

◆ m_Weight

CBuildUnit::m_Weight
private

Weight (priority) of the build unit.

Normally build unit weights range from 0 to 100. Lower weight means higher priority and vice versa. Build units with lower weights are compiled and linked first.


The documentation for this class was generated from the following files: