Code::Blocks  SVN r11506
Public Member Functions | Protected Attributes | List of all members
CompileOptionsBase Class Reference

This is a base class for all classes needing compilation parameters. More...

#include <compileoptionsbase.h>

Inheritance diagram for CompileOptionsBase:
Collaboration diagram for CompileOptionsBase:

Public Member Functions

 CompileOptionsBase ()
 
virtual ~CompileOptionsBase ()
 
virtual void AddPlatform (int platform)
 
virtual void RemovePlatform (int platform)
 
virtual void SetPlatforms (int platforms)
 
virtual int GetPlatforms () const
 
virtual bool SupportsCurrentPlatform () const
 
virtual void SetLinkerOptions (const wxArrayString &linkerOpts)
 
virtual const wxArrayStringGetLinkerOptions () const
 
virtual void AddLinkerOption (const wxString &option)
 
virtual void ReplaceLinkerOption (const wxString &option, const wxString &new_option)
 
virtual void RemoveLinkerOption (const wxString &option)
 
virtual void SetLinkLibs (const wxArrayString &linkLibs)
 
virtual const wxArrayStringGetLinkLibs () const
 
virtual void AddLinkLib (const wxString &option)
 
virtual void ReplaceLinkLib (const wxString &option, const wxString &new_option)
 
virtual void RemoveLinkLib (const wxString &option)
 
virtual void SetCompilerOptions (const wxArrayString &compilerOpts)
 
virtual const wxArrayStringGetCompilerOptions () const
 
virtual void AddCompilerOption (const wxString &option)
 
virtual void ReplaceCompilerOption (const wxString &option, const wxString &new_option)
 
virtual void RemoveCompilerOption (const wxString &option)
 
virtual void SetResourceCompilerOptions (const wxArrayString &resourceCompilerOpts)
 
virtual const wxArrayStringGetResourceCompilerOptions () const
 
virtual void AddResourceCompilerOption (const wxString &option)
 
virtual void ReplaceResourceCompilerOption (const wxString &option, const wxString &new_option)
 
virtual void RemoveResourceCompilerOption (const wxString &option)
 
virtual void SetIncludeDirs (const wxArrayString &includeDirs)
 
virtual const wxArrayStringGetIncludeDirs () const
 
virtual void AddIncludeDir (const wxString &option)
 
virtual void ReplaceIncludeDir (const wxString &option, const wxString &new_option)
 
virtual void RemoveIncludeDir (const wxString &option)
 
virtual void SetResourceIncludeDirs (const wxArrayString &resIncludeDirs)
 
virtual const wxArrayStringGetResourceIncludeDirs () const
 
virtual void AddResourceIncludeDir (const wxString &option)
 
virtual void ReplaceResourceIncludeDir (const wxString &option, const wxString &new_option)
 
virtual void RemoveResourceIncludeDir (const wxString &option)
 
virtual void SetLibDirs (const wxArrayString &libDirs)
 
virtual const wxArrayStringGetLibDirs () const
 
virtual void AddLibDir (const wxString &option)
 
virtual void ReplaceLibDir (const wxString &option, const wxString &new_option)
 
virtual void RemoveLibDir (const wxString &option)
 
virtual void SetCommandsBeforeBuild (const wxArrayString &commands)
 
virtual const wxArrayStringGetCommandsBeforeBuild () const
 
virtual void AddCommandsBeforeBuild (const wxString &command)
 
virtual void RemoveCommandsBeforeBuild (const wxString &command)
 
virtual void SetCommandsAfterBuild (const wxArrayString &commands)
 
virtual const wxArrayStringGetCommandsAfterBuild () const
 
virtual void AddCommandsAfterBuild (const wxString &command)
 
virtual void RemoveCommandsAfterBuild (const wxString &command)
 
virtual void SetBuildScripts (const wxArrayString &scripts)
 
virtual const wxArrayStringGetBuildScripts () const
 
virtual void AddBuildScript (const wxString &script)
 
virtual void RemoveBuildScript (const wxString &script)
 
virtual bool GetModified () const
 
virtual void SetModified (bool modified)
 
virtual bool GetAlwaysRunPostBuildSteps () const
 
virtual void SetAlwaysRunPostBuildSteps (bool always)
 
virtual bool SetVar (const wxString &key, const wxString &value, bool onlyIfExists=false)
 
virtual bool UnsetVar (const wxString &key)
 
virtual void UnsetAllVars ()
 
virtual bool HasVar (const wxString &key) const
 
virtual const wxStringGetVar (const wxString &key) const
 
virtual const StringHash & GetAllVars () const
 

Protected Attributes

int m_Platform
 
wxArrayString m_LinkerOptions
 
wxArrayString m_LinkLibs
 
wxArrayString m_CompilerOptions
 
wxArrayString m_ResourceCompilerOptions
 
wxArrayString m_IncludeDirs
 
wxArrayString m_ResIncludeDirs
 
wxArrayString m_LibDirs
 
wxArrayString m_CmdsBefore
 
wxArrayString m_CmdsAfter
 
wxArrayString m_Scripts
 
bool m_Modified
 
bool m_AlwaysRunPostCmds
 
StringHash m_Vars
 

Detailed Description

This is a base class for all classes needing compilation parameters.

It offers functions to get/set the following:

Definition at line 28 of file compileoptionsbase.h.

Constructor & Destructor Documentation

◆ CompileOptionsBase()

CompileOptionsBase::CompileOptionsBase ( )

Definition at line 21 of file compileoptionsbase.cpp.

◆ ~CompileOptionsBase()

CompileOptionsBase::~CompileOptionsBase ( )
virtual

Definition at line 29 of file compileoptionsbase.cpp.

Member Function Documentation

◆ AddBuildScript()

void CompileOptionsBase::AddBuildScript ( const wxString script)
virtual

◆ AddCommandsAfterBuild()

void CompileOptionsBase::AddCommandsAfterBuild ( const wxString command)
virtual

◆ AddCommandsBeforeBuild()

void CompileOptionsBase::AddCommandsBeforeBuild ( const wxString command)
virtual

◆ AddCompilerOption()

void CompileOptionsBase::AddCompilerOption ( const wxString option)
virtual

◆ AddIncludeDir()

void CompileOptionsBase::AddIncludeDir ( const wxString option)
virtual

◆ AddLibDir()

void CompileOptionsBase::AddLibDir ( const wxString option)
virtual

◆ AddLinkerOption()

void CompileOptionsBase::AddLinkerOption ( const wxString option)
virtual

◆ AddLinkLib()

void CompileOptionsBase::AddLinkLib ( const wxString option)
virtual

◆ AddPlatform()

void CompileOptionsBase::AddPlatform ( int  platform)
virtual

Definition at line 34 of file compileoptionsbase.cpp.

References m_Platform, and SetModified().

Referenced by ScriptBindings::RegisterBindings().

◆ AddResourceCompilerOption()

void CompileOptionsBase::AddResourceCompilerOption ( const wxString option)
virtual

◆ AddResourceIncludeDir()

void CompileOptionsBase::AddResourceIncludeDir ( const wxString option)
virtual

◆ GetAllVars()

const StringHash & CompileOptionsBase::GetAllVars ( ) const
virtual

◆ GetAlwaysRunPostBuildSteps()

bool CompileOptionsBase::GetAlwaysRunPostBuildSteps ( ) const
virtual

◆ GetBuildScripts()

const wxArrayString & CompileOptionsBase::GetBuildScripts ( ) const
virtual

◆ GetCommandsAfterBuild()

const wxArrayString & CompileOptionsBase::GetCommandsAfterBuild ( ) const
virtual

◆ GetCommandsBeforeBuild()

const wxArrayString & CompileOptionsBase::GetCommandsBeforeBuild ( ) const
virtual

◆ GetCompilerOptions()

const wxArrayString & CompileOptionsBase::GetCompilerOptions ( ) const
virtual

◆ GetIncludeDirs()

const wxArrayString & CompileOptionsBase::GetIncludeDirs ( ) const
virtual

◆ GetLibDirs()

const wxArrayString & CompileOptionsBase::GetLibDirs ( ) const
virtual

◆ GetLinkerOptions()

const wxArrayString & CompileOptionsBase::GetLinkerOptions ( ) const
virtual

◆ GetLinkLibs()

const wxArrayString & CompileOptionsBase::GetLinkLibs ( ) const
virtual

◆ GetModified()

bool CompileOptionsBase::GetModified ( ) const
virtual

Reimplemented in cbProject.

Definition at line 258 of file compileoptionsbase.cpp.

References m_Modified.

Referenced by cbProject::GetModified(), cbProject::IsLoaded(), and ScriptBindings::RegisterBindings().

◆ GetPlatforms()

int CompileOptionsBase::GetPlatforms ( ) const
virtual

◆ GetResourceCompilerOptions()

const wxArrayString & CompileOptionsBase::GetResourceCompilerOptions ( ) const
virtual

◆ GetResourceIncludeDirs()

const wxArrayString & CompileOptionsBase::GetResourceIncludeDirs ( ) const
virtual

◆ GetVar()

const wxString & CompileOptionsBase::GetVar ( const wxString key) const
virtual

Definition at line 564 of file compileoptionsbase.cpp.

References m_Vars, and wxEmptyString.

Referenced by ScriptBindings::RegisterBindings().

◆ HasVar()

bool CompileOptionsBase::HasVar ( const wxString key) const
virtual

Definition at line 555 of file compileoptionsbase.cpp.

References m_Vars.

◆ RemoveBuildScript()

void CompileOptionsBase::RemoveBuildScript ( const wxString script)
virtual

◆ RemoveCommandsAfterBuild()

void CompileOptionsBase::RemoveCommandsAfterBuild ( const wxString command)
virtual

◆ RemoveCommandsBeforeBuild()

void CompileOptionsBase::RemoveCommandsBeforeBuild ( const wxString command)
virtual

◆ RemoveCompilerOption()

void CompileOptionsBase::RemoveCompilerOption ( const wxString option)
virtual

◆ RemoveIncludeDir()

void CompileOptionsBase::RemoveIncludeDir ( const wxString option)
virtual

◆ RemoveLibDir()

void CompileOptionsBase::RemoveLibDir ( const wxString option)
virtual

◆ RemoveLinkerOption()

void CompileOptionsBase::RemoveLinkerOption ( const wxString option)
virtual

◆ RemoveLinkLib()

void CompileOptionsBase::RemoveLinkLib ( const wxString option)
virtual

◆ RemovePlatform()

void CompileOptionsBase::RemovePlatform ( int  platform)
virtual

Definition at line 42 of file compileoptionsbase.cpp.

References m_Platform, and SetModified().

Referenced by ScriptBindings::RegisterBindings().

◆ RemoveResourceCompilerOption()

void CompileOptionsBase::RemoveResourceCompilerOption ( const wxString option)
virtual

◆ RemoveResourceIncludeDir()

void CompileOptionsBase::RemoveResourceIncludeDir ( const wxString option)
virtual

◆ ReplaceCompilerOption()

void CompileOptionsBase::ReplaceCompilerOption ( const wxString option,
const wxString new_option 
)
virtual

◆ ReplaceIncludeDir()

void CompileOptionsBase::ReplaceIncludeDir ( const wxString option,
const wxString new_option 
)
virtual

◆ ReplaceLibDir()

void CompileOptionsBase::ReplaceLibDir ( const wxString option,
const wxString new_option 
)
virtual

◆ ReplaceLinkerOption()

void CompileOptionsBase::ReplaceLinkerOption ( const wxString option,
const wxString new_option 
)
virtual

◆ ReplaceLinkLib()

void CompileOptionsBase::ReplaceLinkLib ( const wxString option,
const wxString new_option 
)
virtual

◆ ReplaceResourceCompilerOption()

void CompileOptionsBase::ReplaceResourceCompilerOption ( const wxString option,
const wxString new_option 
)
virtual

◆ ReplaceResourceIncludeDir()

void CompileOptionsBase::ReplaceResourceIncludeDir ( const wxString option,
const wxString new_option 
)
virtual

◆ SetAlwaysRunPostBuildSteps()

void CompileOptionsBase::SetAlwaysRunPostBuildSteps ( bool  always)
virtual

◆ SetBuildScripts()

void CompileOptionsBase::SetBuildScripts ( const wxArrayString scripts)
virtual

◆ SetCommandsAfterBuild()

void CompileOptionsBase::SetCommandsAfterBuild ( const wxArrayString commands)
virtual

◆ SetCommandsBeforeBuild()

void CompileOptionsBase::SetCommandsBeforeBuild ( const wxArrayString commands)
virtual

◆ SetCompilerOptions()

void CompileOptionsBase::SetCompilerOptions ( const wxArrayString compilerOpts)
virtual

◆ SetIncludeDirs()

void CompileOptionsBase::SetIncludeDirs ( const wxArrayString includeDirs)
virtual

◆ SetLibDirs()

void CompileOptionsBase::SetLibDirs ( const wxArrayString libDirs)
virtual

◆ SetLinkerOptions()

void CompileOptionsBase::SetLinkerOptions ( const wxArrayString linkerOpts)
virtual

◆ SetLinkLibs()

void CompileOptionsBase::SetLinkLibs ( const wxArrayString linkLibs)
virtual

◆ SetModified()

void CompileOptionsBase::SetModified ( bool  modified)
virtual

Reimplemented in cbProject.

Definition at line 263 of file compileoptionsbase.cpp.

References m_Modified.

Referenced by AddBuildScript(), AddCommandsAfterBuild(), AddCommandsBeforeBuild(), AddCompilerOption(), AddIncludeDir(), AddLibDir(), AddLinkerOption(), AddLinkLib(), AddPlatform(), AddResourceCompilerOption(), AddResourceIncludeDir(), cbProject::IsLoaded(), ScriptBindings::RegisterBindings(), RemoveBuildScript(), RemoveCommandsAfterBuild(), RemoveCommandsBeforeBuild(), RemoveCompilerOption(), RemoveIncludeDir(), RemoveLibDir(), RemoveLinkerOption(), RemoveLinkLib(), RemovePlatform(), RemoveResourceCompilerOption(), RemoveResourceIncludeDir(), ReplaceCompilerOption(), ReplaceIncludeDir(), ReplaceLibDir(), ReplaceLinkerOption(), ReplaceLinkLib(), ReplaceResourceCompilerOption(), ReplaceResourceIncludeDir(), ProjectBuildTarget::SetAdditionalOutputFiles(), SetAlwaysRunPostBuildSteps(), SetBuildScripts(), SetCommandsAfterBuild(), SetCommandsBeforeBuild(), CompileTargetBase::SetCompilerID(), SetCompilerOptions(), ProjectBuildTarget::SetCreateDefFile(), ProjectBuildTarget::SetCreateStaticLib(), CompileTargetBase::SetDefinitionFileFilename(), CompileTargetBase::SetDepsOutput(), CompileTargetBase::SetExecutionParameters(), ProjectBuildTarget::SetExternalDeps(), CompileTargetBase::SetHostApplication(), CompileTargetBase::SetImportLibraryFilename(), SetIncludeDirs(), ProjectBuildTarget::SetIncludeInTargetAll(), SetLibDirs(), SetLinkerOptions(), SetLinkLibs(), CompileTargetBase::SetMakeCommandFor(), cbProject::SetMakefile(), cbProject::SetModeForPCH(), cbProject::SetModified(), CompileTargetBase::SetObjectOutput(), CompileTargetBase::SetOptionRelation(), CompileTargetBase::SetOutputFilename(), SetPlatforms(), SetResourceCompilerOptions(), SetResourceIncludeDirs(), CompileTargetBase::SetRunHostApplicationInTerminal(), CompileTargetBase::SetTargetFilenameGenerationPolicy(), CompileTargetBase::SetTargetType(), CompileTargetBase::SetTitle(), ProjectBuildTarget::SetUseConsoleRunner(), SetVar(), CompileTargetBase::SetWorkingDir(), and UnsetVar().

◆ SetPlatforms()

void CompileOptionsBase::SetPlatforms ( int  platforms)
virtual

◆ SetResourceCompilerOptions()

void CompileOptionsBase::SetResourceCompilerOptions ( const wxArrayString resourceCompilerOpts)
virtual

◆ SetResourceIncludeDirs()

void CompileOptionsBase::SetResourceIncludeDirs ( const wxArrayString resIncludeDirs)
virtual

◆ SetVar()

bool CompileOptionsBase::SetVar ( const wxString key,
const wxString value,
bool  onlyIfExists = false 
)
virtual

◆ SupportsCurrentPlatform()

bool CompileOptionsBase::SupportsCurrentPlatform ( ) const
virtual

◆ UnsetAllVars()

void CompileOptionsBase::UnsetAllVars ( )
virtual

Definition at line 550 of file compileoptionsbase.cpp.

References m_Vars.

Referenced by Compiler::LoadSettings(), and ScriptBindings::RegisterBindings().

◆ UnsetVar()

bool CompileOptionsBase::UnsetVar ( const wxString key)
virtual

Member Data Documentation

◆ m_AlwaysRunPostCmds

bool CompileOptionsBase::m_AlwaysRunPostCmds
protected

Definition at line 122 of file compileoptionsbase.h.

Referenced by GetAlwaysRunPostBuildSteps(), and SetAlwaysRunPostBuildSteps().

◆ m_CmdsAfter

wxArrayString CompileOptionsBase::m_CmdsAfter
protected

◆ m_CmdsBefore

wxArrayString CompileOptionsBase::m_CmdsBefore
protected

◆ m_CompilerOptions

wxArrayString CompileOptionsBase::m_CompilerOptions
protected

◆ m_IncludeDirs

wxArrayString CompileOptionsBase::m_IncludeDirs
protected

◆ m_LibDirs

wxArrayString CompileOptionsBase::m_LibDirs
protected

◆ m_LinkerOptions

wxArrayString CompileOptionsBase::m_LinkerOptions
protected

◆ m_LinkLibs

wxArrayString CompileOptionsBase::m_LinkLibs
protected

◆ m_Modified

bool CompileOptionsBase::m_Modified
protected

Definition at line 121 of file compileoptionsbase.h.

Referenced by GetModified(), and SetModified().

◆ m_Platform

int CompileOptionsBase::m_Platform
protected

◆ m_ResIncludeDirs

wxArrayString CompileOptionsBase::m_ResIncludeDirs
protected

◆ m_ResourceCompilerOptions

wxArrayString CompileOptionsBase::m_ResourceCompilerOptions
protected

◆ m_Scripts

wxArrayString CompileOptionsBase::m_Scripts
protected

◆ m_Vars

StringHash CompileOptionsBase::m_Vars
protected

Definition at line 123 of file compileoptionsbase.h.

Referenced by GetAllVars(), GetVar(), HasVar(), SetVar(), UnsetAllVars(), and UnsetVar().


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