From d19ada0aa88aba1c7b439035c0028440ac860ec3 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 12 Sep 2006 00:22:33 +0000 Subject: Build now builds, it has viewers, and dependancy checking, and everything works. Now we have to add cleaning, caching, and more viewer hooks / viewers. --- src/viewerplain.cpp | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 src/viewerplain.cpp (limited to 'src/viewerplain.cpp') diff --git a/src/viewerplain.cpp b/src/viewerplain.cpp new file mode 100644 index 0000000..f2123b0 --- /dev/null +++ b/src/viewerplain.cpp @@ -0,0 +1,42 @@ +#include "viewerplain.h" +#include "perform.h" +#include "plugger.h" + +PluginInterface2( plain, ViewerPlain, Viewer, "Mike Buland", 0, 1 ); + +ViewerPlain::ViewerPlain() +{ +} + +ViewerPlain::~ViewerPlain() +{ +} + +void ViewerPlain::beginCommand( Action::eAction nAct, const std::string &sTarget, int nPerforms ) +{ + printf("--- check %s ---\n", sTarget.c_str() ); +} + +void ViewerPlain::endCommand() +{ + printf("---\n"); +} + +void ViewerPlain::beginRequiresCheck( bool bCached, const std::string &sName ) +{ + printf(" deps: %s\n", sName.c_str() ); +} + +void ViewerPlain::endRequiresCheck() +{ +} + +void ViewerPlain::beginPerform( Perform *pPerform ) +{ + printf(" %8s: %s\n", pPerform->getRule().c_str(), pPerform->getTarget().c_str() ); +} + +void ViewerPlain::endPerform() +{ +} + -- cgit v1.2.3