static const char *rcsId="@(#) $Id$";
static void *use_rcsId = (0 ? (void *)(&use_rcsId) : (void *) &rcsId);
class GitPathTest;
public:
InitAction(GitPathTest *theTask);
~InitAction() {}
private:
};
public:
ExitAction(GitPathTest *theTask);
~ExitAction() {}
private:
};
public:
PollAction(GitPathTest *theTask);
~PollAction() {}
private:
};
public:
PollKickAction(GitPathTest *theTask);
~PollKickAction() {}
private:
};
public:
ReportAction(GitPathTest *theTask);
~ReportAction() {}
private:
};
private:
InitAction InitActionObj;
ExitAction ExitActionObj;
PollAction PollActionObj;
PollKickAction PollKickActionObj;
ReportAction ReportActionObj;
public:
return subTask;
}
GitPathTest() :
drama::Task(
"GITPATHTEST"),
InitActionObj(this),
ExitActionObj(this),
PollActionObj(this),
PollKickActionObj(this),
ReportActionObj(this),
subTask(TaskPtr(),"GITTASKTEST", "", "./gittasktest") {
}
~GitPathTest() {
}
};
int main()
{
return 0;
}
{
auto myTask(GetTask()->TaskPtrAs<GitPathTest>());
myTask->SubTask().SetSimulation("FULL");
myTask->SubTask().Initialise(this);
}
InitAction::InitAction(GitPathTest *theTask) :
drama::thread::TAction(theTask->TaskPtr())
{
}
{
auto myTask(GetTask()->TaskPtrAs<GitPathTest>());
SetExitOnCompletion();
myTask->SubTask().Exit(this);
}
ExitAction::ExitAction(GitPathTest *theTask) :
drama::thread::TAction(theTask->TaskPtr())
{
}
{
auto myTask(GetTask()->TaskPtrAs<GitPathTest>());
myTask->SubTask().Poll(this);
}
PollAction::PollAction(GitPathTest *theTask) :
drama::thread::TAction(theTask->TaskPtr())
{
}
{
auto myTask(GetTask()->TaskPtrAs<GitPathTest>());
myTask->SubTask().PollCancel(this);
}
PollKickAction::PollKickAction(GitPathTest *theTask) :
drama::thread::TAction(theTask->TaskPtr())
{
}
{
auto myTask(GetTask()->TaskPtrAs<GitPathTest>());
myTask->SubTask().Report(this);
}
ReportAction::ReportAction(GitPathTest *theTask) :
drama::thread::TAction(theTask->TaskPtr())
{
}
virtual void Add(const std::string &name, MessageHandlerPtr obj, const std::string &descr="")
Add an action to the task.
Definition task.hh:696
A class which implements a DRAMA task.
Definition task.hh:441
A path object for communicating with DRAMA GIT tasks.
Definition gitpath.hh:147
A C++ Interface to the handling SDS structures.
Definition sds.hh:428
A class which implements a DRAMA Action with runs a thread.
Definition threadaction.hh:199
DRAMA 2 main include file.
DRAMA 2 include file - GIT Path implementation.
void CreateRunDramaTask()
Create and run a DRAMA task, with standard exception handling.
Definition task.hh:1322
std::shared_ptr< MessageHandler > MessageHandlerPtr
This type is used for passing MessageHandler object addresses around.
Definition messagehandler.hh:101
The drama namespace contains all the classes, types etc of the DRAMA 2 implementation.
Definition drama.hh:93
Declare an operator to be used as a deletion operator by std::shared_ptr.
Definition task.hh:114