2005/5/9

     
 

class AbstractTask

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::make::AbstractTask Class Reference

#include <AbstractTask.h>

Inheritance diagram for acdk::make::AbstractTask:

acdk::lang::Object acdk::make::Task acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch acdk::make::AbstractCppTask acdk::make::AbstractTool acdk::make::AcdkBinaryTask acdk::make::AcdkUnitConfigTask acdk::make::CompileTask acdk::make::CppSourceDependTask acdk::make::DirExistsTask acdk::make::FileDeleteTask acdk::make::FileDependTask acdk::make::FileOpTask acdk::make::JavaCompileTask acdk::make::JobExecuterTask acdk::make::JobTask acdk::make::LookupFileTask acdk::make::PlattformSelectTask acdk::make::ProjectTask acdk::make::ScriptExecuteTask acdk::make::ShellExecuteTask acdk::make::TestTask List of all members.

Detailed Description

Abstract base class for a Task.

See also:
 Tasks.


Public Member Functions

 AbstractTask ()
 AbstractTask (IN(RString) name, IN(RString) target, IN(RString) descr)
 AbstractTask (IN(RString) name, IN(RString) descr, IN(RTaskArray) childs)
RString getName ()
 returns the ClassName for this object by default

void setName (IN(RString) name)
virtual RTaskInfo getTaskInfo ()
 For logging and working dir.

virtual void addDependingTask (IN(RTask) task)
 This task depends on other task.

void addSubTask (IN(RString) name)
 Wrapper to addDependingTask using registered tasks.

void addSubTask (IN(RTask) subtask)
void registerTask ()
 register this task under given _name

void registerTask (IN(RString) alt_name)
 Register task with an alternative name.

RTaskArray getChilds ()
RProps getTaskProps ()

Protected Member Functions

virtual bool execute (IN(RString) exec, IN(RProps) props)
 Public interface to execute a task.


Protected Attributes

RString _name
RString _description
RString _targetName
RString _workingDir
RTaskArray _childs
 Theses tasks has to be executed before this taks.

RTaskInfo _taskInfo
RProps _taskProps


Constructor & Destructor Documentation

acdk::make::AbstractTask::AbstractTask  ) 
 

acdk::make::AbstractTask::AbstractTask IN(RString name,
IN(RString target,
IN(RString descr
 

acdk::make::AbstractTask::AbstractTask IN(RString name,
IN(RString descr,
IN(RTaskArray childs
 


Member Function Documentation

virtual void acdk::make::AbstractTask::addDependingTask IN(RTask task  )  [inline, virtual]
 

This task depends on other task.

Parameters:
task which should executed before this task

Implements acdk::make::Task.

void acdk::make::AbstractTask::addSubTask IN(RTask subtask  )  [inline]
 

void acdk::make::AbstractTask::addSubTask IN(RString name  ) 
 

Wrapper to addDependingTask using registered tasks.

virtual bool acdk::make::AbstractTask::execute IN(RString exec,
IN(RProps props
[protected, virtual]
 

Public interface to execute a task.

Implementation Task should implement execute.

Parameters:
exec string identifies what to do
props current properties

Implements acdk::make::Task.

Reimplemented in acdk::make::AbstractCppTask, acdk::make::AcdkBinaryTask, acdk::make::AcdkExeTask, acdk::make::AcdkLibTask, acdk::make::AcdkProjectTask, acdk::make::AcdkUnitConfigTask, acdk::make::CommandLineCompilerTool, acdk::make::CompileTask, acdk::make::CppSourceDependTask, acdk::make::DirExistsTask, acdk::make::FileDeleteTask, acdk::make::FileDependTask, acdk::make::FileOpTask, acdk::make::JavaCompileTask, acdk::make::JobExecuterTask, acdk::make::JobTask, acdk::make::LookupFileTask, acdk::make::PlattformSelectTask, acdk::make::ProjectTask, acdk::make::ScriptExecuteTask, acdk::make::ShellExecuteTask, and acdk::make::TestTask.

RTaskArray acdk::make::AbstractTask::getChilds  )  [inline]
 

RString acdk::make::AbstractTask::getName  )  [inline, virtual]
 

returns the ClassName for this object by default

Reimplemented from acdk::lang::Object.

virtual RTaskInfo acdk::make::AbstractTask::getTaskInfo  )  [virtual]
 

For logging and working dir.

Returns:
valid TaskInfo

Implements acdk::make::Task.

Reimplemented in acdk::make::AbstractCppTask, acdk::make::AcdkBinaryTask, and acdk::make::DirExistsTask.

RProps acdk::make::AbstractTask::getTaskProps  )  [inline]
 

void acdk::make::AbstractTask::registerTask IN(RString alt_name  ) 
 

Register task with an alternative name.

void acdk::make::AbstractTask::registerTask  ) 
 

register this task under given _name

void acdk::make::AbstractTask::setName IN(RString name  )  [inline]
 


Member Data Documentation

RTaskArray acdk::make::AbstractTask::_childs [protected]
 

Theses tasks has to be executed before this taks.

RString acdk::make::AbstractTask::_description [protected]
 

RString acdk::make::AbstractTask::_name [protected]
 

RString acdk::make::AbstractTask::_targetName [protected]
 

RTaskInfo acdk::make::AbstractTask::_taskInfo [protected]
 

RProps acdk::make::AbstractTask::_taskProps [protected]
 

RString acdk::make::AbstractTask::_workingDir [protected]