From df5286fe3bca619beb4771da1ffa8ace9613e9e5 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 18 Aug 2006 17:21:02 +0000 Subject: Gutted, deleted almost all the source, too many changes to keep it around, we'll see what happens next. --- src/action.cpp | 63 ---------------------------------------------------------- 1 file changed, 63 deletions(-) delete mode 100644 src/action.cpp (limited to 'src/action.cpp') diff --git a/src/action.cpp b/src/action.cpp deleted file mode 100644 index 51868eb..0000000 --- a/src/action.cpp +++ /dev/null @@ -1,63 +0,0 @@ -#include "action.h" -#include "command.h" -#include "builder.h" - -Action::Action() : - bDefault( true ), - sName("") -{ -} - -Action::Action( const char *sName ) : - bDefault( false ), - sName( sName ) -{ -} - -Action::~Action() -{ -} - -void Action::add( Command *pCmd ) -{ - lCommand.push_back( pCmd ); -} - -void Action::add( int nType, const char *sCmd ) -{ - lRegExCommand.push_back( std::pair( nType, sCmd ) ); -} - -void Action::debug() -{ - if( bDefault ) - printf(" action default:\n"); - else - printf(" action \"%s\":\n", sName.getString() ); - - for( std::list::iterator i = lCommand.begin(); - i != lCommand.end(); i++ ) - { - (*i)->debug(); - } -} - -void Action::execute( Builder &bld ) -{ - for( std::list >::iterator i = - lRegExCommand.begin(); i != lRegExCommand.end(); i++ ) - { - std::list lTmp = bld.findTargets( (*i).second.c_str() ); - for( std::list::iterator j = lTmp.begin(); - j != lTmp.end(); j++ ) - { - add( new Command( (Command::CmdType)(*i).first, (*j).c_str() ) ); - } - } - for( std::list::iterator i = lCommand.begin(); - i != lCommand.end(); i++ ) - { - (*i)->execute( bld ); - } -} - -- cgit v1.2.3