| Code::Blocks
    SVN r11506
    | 
#include <compilerXML.h>
| Public Member Functions | |
| CompilerXML (const wxString &name, const wxString &ID, const wxString &file) | |
| virtual | ~CompilerXML () | 
| virtual AutoDetectResult | AutoDetectInstallationDir () | 
| Try to auto-detect the compiler's installation directory.  More... | |
|  Public Member Functions inherited from Compiler | |
| Compiler (const wxString &name, const wxString &ID, const wxString &parentID=wxEmptyString, int weight=50) | |
| ~Compiler () override | |
| virtual bool | IsValid () | 
| Check if the compiler is actually valid (installed).  More... | |
| virtual CompilerLineType | CheckForWarningsAndErrors (const wxString &line) | 
| Check if the supplied string is a compiler warning/error.  More... | |
| virtual wxString | GetLastErrorFilename () | 
| Returns warning/error filename.  More... | |
| virtual wxString | GetLastErrorLine () | 
| Returns warning/error line number (as a string).  More... | |
| virtual wxString | GetLastError () | 
| Returns warning/error actual string.  More... | |
| virtual const wxString & | GetName () const | 
| Get the compiler's name.  More... | |
| virtual const wxString & | GetMasterPath () const | 
| Get the compiler's master path (must contain "bin", "include" and "lib")  More... | |
| virtual const wxArrayString & | GetExtraPaths () const | 
| Get the compiler's extra paths.  More... | |
| virtual const CompilerPrograms & | GetPrograms () const | 
| Get the compiler's programs.  More... | |
| virtual const CompilerSwitches & | GetSwitches () const | 
| Get the compiler's generic switches.  More... | |
| virtual const CompilerOptions & | GetOptions () const | 
| Get the compiler's options.  More... | |
| virtual const wxString & | GetCommand (CommandType ct, const wxString &fileExtension=wxEmptyString) const | 
| Get a command based on CommandType.  More... | |
| virtual const CompilerTool * | GetCompilerTool (CommandType ct, const wxString &fileExtension=wxEmptyString) const | 
| Get a compiler tool based on CommandType.  More... | |
| virtual CompilerToolsVector & | GetCommandToolsVector (CommandType ct) | 
| Get a command tool vector based on CommandType (used by advanced compiler dialog)  More... | |
| virtual const RegExArray & | GetRegExArray () | 
| Get the array of regexes used in errors/warnings recognition.  More... | |
| virtual void | LoadDefaultRegExArray (bool globalPrecedence=false) | 
| Load the default (preset) array of regexes used in errors/warnings recognition.  More... | |
| virtual void | SetName (const wxString &name) | 
| Set the compiler's name.  More... | |
| virtual void | SetMasterPath (const wxString &path) | 
| Set the compiler's master path (must contain "bin", "include" and "lib")  More... | |
| virtual void | SetExtraPaths (const wxArrayString &paths) | 
| Set the compiler's extra paths.  More... | |
| virtual void | SetPrograms (const CompilerPrograms &programs) | 
| Set the compiler's programs.  More... | |
| virtual void | SetSwitches (const CompilerSwitches &switches) | 
| Set the compiler's generic switches.  More... | |
| virtual void | SetOptions (const CompilerOptions &options) | 
| Set the compiler's options.  More... | |
| virtual void | SetRegExArray (const RegExArray ®exes) | 
| Set the array of regexes used in errors/warnings recognition.  More... | |
| virtual void | SaveSettings (const wxString &baseKey) | 
| Save settings.  More... | |
| virtual void | LoadSettings (const wxString &baseKey) | 
| Load settings.  More... | |
| virtual void | Reset () | 
| Reset settings to defaults.  More... | |
| virtual void | ReloadOptions () | 
| Reload option flags (for copied compilers).  More... | |
| const wxString & | GetID () const | 
| Get this compiler's unique ID.  More... | |
| const wxString & | GetParentID () const | 
| Get this compiler's parent's unique ID.  More... | |
| virtual void | SetVersionString () | 
| Set the compiler version string.  More... | |
| const wxString | GetVersionString () const | 
| Get the compiler version string.  More... | |
| virtual CompilerCommandGenerator * | GetCommandGenerator (cbProject *project) | 
| This is to be overridden, if compiler needs to alter the default command line generation.  More... | |
| void | SetCOnlyFlags (const wxString &flags) | 
| void | SetCPPOnlyFlags (const wxString &flags) | 
| const wxString & | GetCOnlyFlags () | 
| const wxString & | GetCPPOnlyFlags () | 
| bool | WithMultiLineMsg () | 
| Do compiler writes multi-line messages?  More... | |
| wxString | MakeInvalidCompilerMessages () const | 
| Returns messages which might be useful to the use for debugging why the compiler is invalid.  More... | |
|  Public Member Functions inherited from CompileOptionsBase | |
| 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 wxArrayString & | GetLinkerOptions () 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 wxArrayString & | GetLinkLibs () 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 wxArrayString & | GetCompilerOptions () 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 wxArrayString & | GetResourceCompilerOptions () 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 wxArrayString & | GetIncludeDirs () 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 wxArrayString & | GetResourceIncludeDirs () 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 wxArrayString & | GetLibDirs () 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 wxArrayString & | GetCommandsBeforeBuild () const | 
| virtual void | AddCommandsBeforeBuild (const wxString &command) | 
| virtual void | RemoveCommandsBeforeBuild (const wxString &command) | 
| virtual void | SetCommandsAfterBuild (const wxArrayString &commands) | 
| virtual const wxArrayString & | GetCommandsAfterBuild () const | 
| virtual void | AddCommandsAfterBuild (const wxString &command) | 
| virtual void | RemoveCommandsAfterBuild (const wxString &command) | 
| virtual void | SetBuildScripts (const wxArrayString &scripts) | 
| virtual const wxArrayString & | GetBuildScripts () 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 wxString & | GetVar (const wxString &key) const | 
| virtual const StringHash & | GetAllVars () const | 
| Protected Member Functions | |
| virtual Compiler * | CreateCopy () | 
| Implement this in new compilers, to return a new copy.  More... | |
|  Protected Member Functions inherited from Compiler | |
| Compiler (const Compiler &other) | |
| bool | IsUniqueID (const wxString &ID) | 
| void | MakeValidID () | 
| void | LoadDefaultOptions (const wxString &name, int recursion=0) | 
| void | LoadRegExArray (const wxString &name, bool globalPrecedence=false, int recursion=0) | 
| bool | EvalXMLCondition (const wxXmlNode *node) | 
| wxString | GetExecName (const wxString &name) | 
| void | MirrorCurrentSettings () | 
| Private Types | |
| enum | SearchMode { master, extra, include, resource, lib, none } | 
| Private Member Functions | |
| bool | AddPath (const wxString &pth, SearchMode sm, int rmDirs=0) | 
| Private Attributes | |
| wxString | m_fileName | 
Definition at line 8 of file compilerXML.h.
| 
 | private | 
| Enumerator | |
|---|---|
| master | |
| extra | |
| include | |
| resource | |
| lib | |
| none | |
Definition at line 21 of file compilerXML.h.
Definition at line 17 of file compilerXML.cpp.
References _T, wxXmlNode::GetAttribute(), wxXmlDocument::GetRoot(), wxXmlDocument::Load(), m_fileName, Compiler::m_MultiLineMessages, Compiler::m_Weight, Compiler::Reset(), wxAtoi(), and wxT.
Referenced by CreateCopy().
| 
 | virtual | 
Definition at line 27 of file compilerXML.cpp.
| 
 | private | 
Definition at line 263 of file compilerXML.cpp.
References wxArrayString::Add(), CompileOptionsBase::AddIncludeDir(), CompileOptionsBase::AddLibDir(), CompileOptionsBase::AddResourceIncludeDir(), wxString::AfterLast(), wxString::BeforeLast(), extra, wxFileName::GetPath(), include, wxArrayString::Index(), lib, Compiler::m_ExtraPaths, Compiler::m_MasterPath, master, none, wxFileName::Normalize(), wxFileName::RemoveLastDir(), resource, wxNOT_FOUND, wxPATH_NORM_DOTS, wxPATH_NORM_ENV_VARS, and wxT.
Referenced by AutoDetectInstallationDir().
| 
 | virtual | 
Try to auto-detect the compiler's installation directory.
Implements Compiler.
Definition at line 36 of file compilerXML.cpp.
References CompileOptionsBase::AddCompilerOption(), CompileOptionsBase::AddLinkerOption(), CompileOptionsBase::AddLinkLib(), AddPath(), adrDetected, adrGuessed, CompilerPrograms::C, wxString::Clear(), wxRegKey::Close(), Compiler::EvalXMLCondition(), wxRegKey::Exists(), extra, GetArrayFromString(), wxXmlNode::GetAttribute(), wxXmlNode::GetChildren(), wxXmlNode::GetContent(), wxArrayString::GetCount(), Compiler::GetExecName(), Compiler::GetID(), wxTextFile::GetLine(), wxTextFile::GetLineCount(), wxXmlNode::GetName(), wxXmlNode::GetNext(), wxXmlNode::GetParent(), wxXmlDocument::GetRoot(), wxXmlNode::GetType(), include, wxString::IsEmpty(), wxArrayString::IsEmpty(), lib, wxXmlDocument::Load(), Compiler::m_ExtraPaths, m_fileName, CompileOptionsBase::m_IncludeDirs, CompileOptionsBase::m_LibDirs, Compiler::m_MasterPath, Compiler::m_Programs, CompileOptionsBase::m_ResIncludeDirs, master, none, wxRegKey::Open(), wxRegKey::QueryValue(), wxRegKey::Read, resource, wxRegKey::SetName(), wxString::Trim(), wxAtoi(), wxDirExists(), wxEmptyString, wxFileExists(), wxFindFirstFile(), wxGetEnv(), wxIsWild(), wxSetEnv(), wxT, wxXML_CDATA_SECTION_NODE, and wxXML_TEXT_NODE.
| 
 | protectedvirtual | 
Implement this in new compilers, to return a new copy.
Implements Compiler.
Definition at line 31 of file compilerXML.cpp.
References CompilerXML().
| 
 | private | 
Definition at line 33 of file compilerXML.h.
Referenced by AutoDetectInstallationDir(), and CompilerXML().
 1.8.13
 1.8.13