#include <processorgroup.h>
Inheritance diagram for Geddei::ProcessorGroup:
Public Member Functions | |
const bool | confirmTypes () const |
const uint | count () const |
void | deleteAll () |
void | disconnectAll () |
DomProcessor & | dom (const QString &name) |
const bool | exists (const QString &name) |
Processor & | get (const QString &name) |
const bool | go (const bool waitUntilGoing=true) const |
Processor & | operator[] (const QString &name) |
ProcessorGroup (const bool adopt=false) | |
void | reset () const |
void | stop (const bool resetToo=true) const |
const Processor::ErrorType | waitUntilGoing (Processor **errorProc=0, int *errorData=0) const |
~ProcessorGroup () | |
Friends | |
class | Processor |
You may also treat it like an array using the array subscript operator ([]) to retrieve a particular Processor object reference through its name.
Geddei::ProcessorGroup::ProcessorGroup | ( | const bool | adopt = false |
) |
Default constructor.
adopt | If true, this will adopt all the Processor objects and thus delete any left over on destruction. |
Geddei::ProcessorGroup::~ProcessorGroup | ( | ) |
Default destructor.
const bool Geddei::ProcessorGroup::confirmTypes | ( | ) | const |
Confirm the signal types of all connections of all Processor objects in this set.
const bool Geddei::ProcessorGroup::go | ( | const bool | waitUntilGoing = true |
) | const |
Start all Processor objects in the group. Note this returns once all have been "primed". If you want to wait until they are actually going (or not due to an error), use waitUntilGoing() as well, or specify true to waitUntilGoing.
waitUntilGoing | If true, blocks until all Processor objects are started correctly or have otherwise failed. |
const Processor::ErrorType Geddei::ProcessorGroup::waitUntilGoing | ( | Processor ** | errorProc = 0 , |
|
int * | errorData = 0 | |||
) | const |
Waits for all Processor objects to be actaully running correctly. Use this only after a go() call that has returned true.
errorProc | If supplied (and non-zero), populate with a pointer to the first Processor object that returned an error. | |
errorData | If supplied (and non-zero), populate with any numeric data the error arose with. |
void Geddei::ProcessorGroup::stop | ( | const bool | resetToo = true |
) | const |
void Geddei::ProcessorGroup::reset | ( | ) | const |
void Geddei::ProcessorGroup::deleteAll | ( | ) |
Deletes all Processor objects in the group.
void Geddei::ProcessorGroup::disconnectAll | ( | ) |
const bool Geddei::ProcessorGroup::exists | ( | const QString & | name | ) |
Processor & Geddei::ProcessorGroup::get | ( | const QString & | name | ) |
DomProcessor & Geddei::ProcessorGroup::dom | ( | const QString & | name | ) |
Get a reference to a named DomProcessor object. It must exist in the group.
name | The name of the DomProcessor object to be found. |
Processor& Geddei::ProcessorGroup::operator[] | ( | const QString & | name | ) | [inline] |
const uint Geddei::ProcessorGroup::count | ( | ) | const [inline] |