Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package

Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Friends

CompilerGNUTRICORE Class Reference

Inheritance diagram for CompilerGNUTRICORE:
Inheritance graph
[legend]
Collaboration diagram for CompilerGNUTRICORE:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void AddBuildScript (const wxString &script)
virtual void AddCommandsAfterBuild (const wxString &command)
virtual void AddCommandsBeforeBuild (const wxString &command)
virtual void AddCompilerOption (const wxString &option)
virtual void AddIncludeDir (const wxString &option)
virtual void AddLibDir (const wxString &option)
virtual void AddLinkerOption (const wxString &option)
virtual void AddLinkLib (const wxString &lib)
virtual void AddPlatform (int platform)
virtual void AddResourceIncludeDir (const wxString &option)
virtual AutoDetectResult AutoDetectInstallationDir ()
 Try to auto-detect the compiler's installation directory.
virtual CompilerLineType CheckForWarningsAndErrors (const wxString &line)
 Check if the supplied string is a compiler warning/error.
virtual void GenerateCommandLine (wxString &macro, ProjectBuildTarget *target, ProjectFile *pf, const wxString &file, const wxString &object, const wxString &FlatObject, const wxString &deps)
virtual const StringHash & GetAllVars () const
virtual bool GetAlwaysRunPostBuildSteps () const
virtual const wxArrayString & GetBuildScripts () const
virtual const wxString & GetCommand (CommandType ct, const wxString &fileExtension=wxEmptyString) const
 Get a command based on CommandType.
virtual const wxArrayString & GetCommandsAfterBuild () const
virtual const wxArrayString & GetCommandsBeforeBuild () const
virtual CompilerToolsVector & GetCommandToolsVector (CommandType ct)
 Get a command tool vector based on CommandType (used by advanced compiler dialog)
virtual const wxArrayString & GetCompilerOptions () const
virtual const wxArrayString & GetCompilerSearchDirs (ProjectBuildTarget *target)
 Get the full include dirs used in the actuall command line.
virtual const CompilerToolGetCompilerTool (CommandType ct, const wxString &fileExtension=wxEmptyString) const
 Get a compiler tool based on CommandType.
virtual const wxArrayString & GetExtraPaths () const
 Get the compiler's extra paths.
const wxString & GetID () const
 Get this compiler's unique ID.
virtual const wxArrayString & GetIncludeDirs () const
virtual wxString GetLastError ()
 Returns warning/error actual string. Use it after a call to CheckForWarningsAndErrors()
virtual wxString GetLastErrorFilename ()
 Returns warning/error filename. Use it after a call to CheckForWarningsAndErrors()
virtual wxString GetLastErrorLine ()
 Returns warning/error line number (as a string). Use it after a call to CheckForWarningsAndErrors()
virtual const wxArrayString & GetLibDirs () const
virtual const wxArrayString & GetLinkerOptions () const
virtual const wxArrayString & GetLinkerSearchDirs (ProjectBuildTarget *target)
 Get the full linker dirs used in the actual command line.
virtual const wxArrayString & GetLinkLibs () const
virtual const wxString & GetMasterPath () const
 Get the compiler's master path (must contain "bin", "include" and "lib")
virtual bool GetModified () const
virtual const wxString & GetName () const
 Get the compiler's name.
virtual const CompilerOptionsGetOptions () const
 Get the compiler's options.
const wxString & GetParentID () const
 Get this compiler's parent's unique ID.
virtual int GetPlatforms () const
virtual const CompilerProgramsGetPrograms () const
 Get the compiler's programs.
virtual const RegExArray & GetRegExArray ()
 Get the array of regexes used in errors/warnings recognition.
virtual const wxArrayString & GetResourceIncludeDirs () const
virtual const CompilerSwitchesGetSwitches () const
 Get the compiler's generic switches.
virtual const wxString & GetVar (const wxString &key) const
const wxString GetVersionString () const
 Get the compiler version string.
virtual void Init (cbProject *project)
virtual bool IsValid ()
 Check if the compiler is actually valid (installed).
virtual void LoadDefaultRegExArray ()
 Load the default (preset) array of regexes used in errors/warnings recognition.
virtual void LoadSettings (const wxString &baseKey)
 Load settings.
virtual void RemoveBuildScript (const wxString &script)
virtual void RemoveCommandsAfterBuild (const wxString &command)
virtual void RemoveCommandsBeforeBuild (const wxString &command)
virtual void RemoveCompilerOption (const wxString &option)
virtual void RemoveIncludeDir (const wxString &option)
virtual void RemoveLibDir (const wxString &option)
virtual void RemoveLinkerOption (const wxString &option)
virtual void RemoveLinkLib (const wxString &lib)
virtual void RemovePlatform (int platform)
virtual void RemoveResourceIncludeDir (const wxString &option)
virtual void Reset ()
 Reset settings to defaults. Put initialization code here and call this from the default constructor.
virtual void SaveSettings (const wxString &baseKey)
 Save settings.
virtual void SetAlwaysRunPostBuildSteps (bool always)
virtual void SetBuildScripts (const wxArrayString &scripts)
virtual void SetCommandsAfterBuild (const wxArrayString &commands)
virtual void SetCommandsBeforeBuild (const wxArrayString &commands)
virtual void SetCompilerOptions (const wxArrayString &compilerOpts)
virtual void SetExtraPaths (const wxArrayString &paths)
 Set the compiler's extra paths.
virtual void SetIncludeDirs (const wxArrayString &includeDirs)
virtual void SetLibDirs (const wxArrayString &libDirs)
virtual void SetLinkerOptions (const wxArrayString &linkerOpts)
virtual void SetLinkLibs (const wxArrayString &linkLibs)
virtual void SetMasterPath (const wxString &path)
 Set the compiler's master path (must contain "bin", "include" and "lib")
virtual void SetModified (bool modified)
virtual void SetName (const wxString &name)
 Set the compiler's name.
virtual void SetOptions (const CompilerOptions &options)
 Set the compiler's options.
virtual void SetPlatforms (int platforms)
virtual void SetPrograms (const CompilerPrograms &programs)
 Set the compiler's programs.
virtual void SetRegExArray (const RegExArray &regexes)
 Set the array of regexes used in errors/warnings recognition.
virtual void SetResourceIncludeDirs (const wxArrayString &resIncludeDirs)
virtual void SetSwitches (const CompilerSwitches &switches)
 Set the compiler's generic switches.
virtual bool SetVar (const wxString &key, const wxString &value, bool onlyIfExists=false)
virtual void SetVersionString ()
 Set the compiler version string. Please override this virtual function with your own compiler-version detection code if you want to use this.
virtual bool SupportsCurrentPlatform () const
virtual void UnsetAllVars ()
virtual bool UnsetVar (const wxString &key)

Static Public Attributes

static wxString CommandTypeDescriptions [ctCount]
 Get the command type descriptions (used in advanced compiler options)
static const wxString FilePathWithSpaces = _T("[][{}() \t#%$~A-Za-z0-9_:+/\\.-]+")

Protected Member Functions

virtual CompilerCreateCopy ()
 Implement this in new compilers, to return a new copy.
virtual CompilerCommandGeneratorGetCommandGenerator ()
bool IsUniqueID (const wxString &ID)
void MakeValidID ()
void MirrorCurrentSettings ()

Protected Attributes

bool m_AlwaysRunPostCmds
wxArrayString m_CmdsAfter
wxArrayString m_CmdsBefore
CompilerToolsVector m_Commands [ctCount]
wxArrayString m_CompilerOptions
wxString m_Error
wxString m_ErrorFilename
wxString m_ErrorLine
wxArrayString m_ExtraPaths
wxArrayString m_IncludeDirs
wxArrayString m_LibDirs
wxArrayString m_LinkerOptions
wxArrayString m_LinkLibs
wxString m_MasterPath
bool m_Modified
wxString m_Name
CompilerOptions m_Options
int m_Platform
CompilerPrograms m_Programs
RegExArray m_RegExes
wxArrayString m_ResIncludeDirs
wxArrayString m_Scripts
CompilerSwitches m_Switches
StringHash m_Vars
wxString m_VersionString

Friends

class CompilerFactory

Detailed Description

Definition at line 9 of file compilerGNUTRICORE.h.


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

Generated by  Doxygen 1.6.0   Back to index