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


 * This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
 * http://www.gnu.org/licenses/gpl-3.0.html


#include <wx/string.h>
#include <wx/list.h>    // WX_DECLARE_LIST

class cbProject;
class ProjectBuildTarget;

00015 struct CompilerCommand
    CompilerCommand(const wxString& cmd, const wxString& msg, cbProject* prj, ProjectBuildTarget* tgt, bool is_run = false)
        : command(cmd), message(msg), project(prj), target(tgt), isRun(is_run), mustWait(false), isLink(false)
    CompilerCommand(const CompilerCommand& rhs)
        : command(rhs.command), message(rhs.message), project(rhs.project), target(rhs.target), isRun(rhs.isRun), mustWait(rhs.mustWait), isLink(rhs.isLink)
    wxString command;
    wxString message;
    wxString dir;
    cbProject* project;
    ProjectBuildTarget* target;
00028     bool isRun; ///< if it's a command to run the target.
00029     bool mustWait; ///< wait for all previous commands to finish (for parallel builds).
00030     bool isLink; ///< wait for all previous commands to finish (for parallel builds) - only for linking stage.
WX_DECLARE_LIST(CompilerCommand, CompilerCommands);

00034 class CompilerQueue

        /// Clear the queue.
        void Clear();
        /// Get the commands count.
        size_t GetCount() const;
        bool LastCommandWasRun() const;
        /// Queue a command.
        void Add(CompilerCommand* cmd);
        /// Queue all commands from another CompilerQueue.
        void Add(CompilerQueue* queue);
        /** Get the next command in queue.
          * If @c from is NULL, returns the top command.
          * If @c from is not NULL, the command following @c from is
          * returned.
          * if @c remove is true (default), the command is removed from the list.
          * This means that the caller must delete it.
        CompilerCommand* Next();
        CompilerCommand* Peek();
        CompilerCommands m_Commands;
        bool m_LastWasRun;


Generated by  Doxygen 1.6.0   Back to index