Code::Blocks  SVN r11506
compiler_defs.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
3  * http://www.gnu.org/licenses/gpl-3.0.html
4  */
5 
6 #ifndef COMPILER_DEFS_H
7 #define COMPILER_DEFS_H
8 
9 #include <wx/string.h>
10 #include <wx/list.h> // WX_DECLARE_LIST
11 
12 class cbProject;
13 class ProjectBuildTarget;
14 
16 {
17  CompilerCommand(const wxString& cmd, const wxString& msg, cbProject* prj, ProjectBuildTarget* tgt, bool is_run = false)
18  : command(cmd), message(msg), project(prj), target(tgt), isRun(is_run), mustWait(false), isLink(false)
19  {}
21  : command(rhs.command), message(rhs.message), project(rhs.project), target(rhs.target), isRun(rhs.isRun), mustWait(rhs.mustWait), isLink(rhs.isLink)
22  {}
28  bool isRun;
29  bool mustWait;
30  bool isLink;
31 };
32 WX_DECLARE_LIST(CompilerCommand, CompilerCommands);
33 
35 {
36  public:
37  CompilerQueue();
38  ~CompilerQueue();
39 
41  void Clear();
43  size_t GetCount() const;
44  bool LastCommandWasRun() const;
46  void Add(CompilerCommand* cmd);
48  void Add(CompilerQueue* queue);
56  CompilerCommand* Next();
57  CompilerCommand* Peek();
58  protected:
59  CompilerCommands m_Commands;
61 };
62 
63 #endif // COMPILER_DEFS_H
cbProject * project
Definition: compiler_defs.h:26
DLLIMPORT bool Add(const wxString &name, const wxString &mask)
Add a new extension filter.
Definition: filefilters.cpp:41
bool mustWait
wait for all previous commands to finish (for parallel builds).
Definition: compiler_defs.h:29
CompilerCommand(const CompilerCommand &rhs)
Definition: compiler_defs.h:20
wxString message
Definition: compiler_defs.h:24
CompilerCommands m_Commands
Definition: compiler_defs.h:59
bool isRun
if it&#39;s a command to run the target.
Definition: compiler_defs.h:28
Represents a Code::Blocks project.
Definition: cbproject.h:96
CompilerCommand(const wxString &cmd, const wxString &msg, cbProject *prj, ProjectBuildTarget *tgt, bool is_run=false)
Definition: compiler_defs.h:17
wxString command
Definition: compiler_defs.h:23
ProjectBuildTarget * target
Definition: compiler_defs.h:27
Represents a Code::Blocks project build target.
WX_DECLARE_LIST(CompilerCommand, CompilerCommands)