cbp2make
Makefile generation tool for Code::Blocks IDE
|
Manages a set of toolchains. More...
#include <toolchains.h>
Public Member Functions | |
void | Lock (void) |
Locks the set of toolchains to prevent accidental modification. More... | |
void | Unlock (void) |
Unlocks the set of toolchains to allow modifications. More... | |
void | Clear (void) |
Resets the set of toolchains to the initial state. More... | |
size_t | GetCount (const CPlatform::OS_Type OS) const |
Returns the number of toolchains in the set. More... | |
CToolChain * | ToolChain (const CPlatform::OS_Type OS, const size_t Index) const |
Returns toolchain with number Index for OS platform. More... | |
CToolChain * | Find (const CPlatform::OS_Type OS, const CString &Alias) |
Searches toolchain with alias Alias for platform OS. More... | |
void | AddDefault (void) |
Initializes the default set of GNU toolchains for all known platforms. More... | |
CToolChain * | Add (const CPlatform::OS_Type OS, const CString &Alias) |
Creates new toolchain with alias Alias for platform OS. More... | |
void | Remove (const CPlatform::OS_Type OS, const CString &Alias) |
Destroys a toolchain with alias Alias for platform OS. More... | |
void | Read (const TiXmlElement *ConfigRoot) |
Reads the set of toolchains from an XML document. More... | |
void | Write (TiXmlElement *ConfigRoot) |
Writes the set of toolchains to an XML document. More... | |
void | Show (void) |
Prints contents of all toolchains to standard output. More... | |
CToolChainSet (void) | |
~CToolChainSet (void) | |
Destroys set of toolchains. More... | |
Protected Member Functions | |
void | AddToolChain (const CToolChain *AToolChain) |
Private Attributes | |
std::vector< std::vector< CToolChain * > > | m_ToolChains |
List of toolchains. More... | |
bool | m_Locked |
Indicates that the set of toolchains cannot be modified. More... | |
bool | m_HaveDefaults |
Manages a set of toolchains.
CToolChainSet::CToolChainSet | ( | void | ) |
CToolChainSet::~CToolChainSet | ( | void | ) |
Destroys set of toolchains.
CToolChain * CToolChainSet::Add | ( | const CPlatform::OS_Type | OS, |
const CString & | Alias | ||
) |
Creates new toolchain with alias Alias for platform OS.
Alias | toolchain name (alias). |
OS | platform (operating system) identifier. |
If the desired toolchain already exists, new toolchain is not created.
void CToolChainSet::AddDefault | ( | void | ) |
Initializes the default set of GNU toolchains for all known platforms.
|
protected |
void CToolChainSet::Clear | ( | void | ) |
Resets the set of toolchains to the initial state.
CToolChain * CToolChainSet::Find | ( | const CPlatform::OS_Type | OS, |
const CString & | Alias | ||
) |
Searches toolchain with alias Alias for platform OS.
Alias | toolchain name (alias). |
OS | platform (operating system) identifier. |
Returns NULL if no toolchain is found.
size_t CToolChainSet::GetCount | ( | const CPlatform::OS_Type | OS | ) | const |
Returns the number of toolchains in the set.
void CToolChainSet::Lock | ( | void | ) |
Locks the set of toolchains to prevent accidental modification.
void CToolChainSet::Read | ( | const TiXmlElement * | ConfigRoot | ) |
Reads the set of toolchains from an XML document.
ConfigRoot | an element of XML document. |
void CToolChainSet::Remove | ( | const CPlatform::OS_Type | OS, |
const CString & | Alias | ||
) |
Destroys a toolchain with alias Alias for platform OS.
Alias | toolchain name (alias). |
OS | platform (operating system) identifier. |
void CToolChainSet::Show | ( | void | ) |
Prints contents of all toolchains to standard output.
CToolChain * CToolChainSet::ToolChain | ( | const CPlatform::OS_Type | OS, |
const size_t | Index | ||
) | const |
Returns toolchain with number Index for OS platform.
Index | toolchain number. |
OS | platform type. |
Returns NULL if a toolchain with number Index does not exist.
void CToolChainSet::Unlock | ( | void | ) |
Unlocks the set of toolchains to allow modifications.
void CToolChainSet::Write | ( | TiXmlElement * | ConfigRoot | ) |
Writes the set of toolchains to an XML document.
ConfigRoot | an element of XML document. |
|
private |
|
private |
Indicates that the set of toolchains cannot be modified.
This property should be set by CToolChainSet::Lock(void) to prevent accidental modification and unset by CToolChainSet::Unlock(void) to release the lock.
|
private |
List of toolchains.
Contains pointers to CToolChain objects and owns them (i.e. objects sould be destroyed before the list is cleared).