aboutsummaryrefslogtreecommitdiff
path: root/src/builder.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/builder.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/builder.cpp b/src/builder.cpp
index 24e4536..e8cd6e2 100644
--- a/src/builder.cpp
+++ b/src/builder.cpp
@@ -1,12 +1,14 @@
1#include "builder.h" 1#include "builder.h"
2#include "functionfactory.h" 2#include "functionfactory.h"
3#include "performfactory.h" 3#include "performfactory.h"
4#include "targetfactory.h"
4 5
5subExceptionDef( BuildException ); 6subExceptionDef( BuildException );
6 7
7Builder::Builder() : 8Builder::Builder() :
8 fFunction( FunctionFactory::getInstance() ), 9 fFunction( FunctionFactory::getInstance() ),
9 fPerform( PerformFactory::getInstance() ) 10 fPerform( PerformFactory::getInstance() ),
11 fTarget( TargetFactory::getInstance() )
10{ 12{
11} 13}
12 14
@@ -42,11 +44,12 @@ void Builder::error( const std::string &msg )
42 throw BuildException("%s", msg.c_str() ); 44 throw BuildException("%s", msg.c_str() );
43} 45}
44 46
45int Builder::getTargetType( const char *sType ) 47//
48// Target functions
49//
50bool Builder::isTarget( const char *sType )
46{ 51{
47 if( !strcmp( sType, "file" ) ) 52 return fTarget.hasPlugin( sType );
48 return 0;
49 return -1;
50} 53}
51 54
52// 55//