PARP Research Group University of Murcia, Spain


QVSynchronizer Class Reference
[Workers library]

#include <qvsynchronizerworker.h>

Inherits QVWorker.

List of all members.

Public Member Functions

 QVSynchronizer (QString name=QString())
void iterate ()
 Function to be defined in subclasses with processing code.
virtual bool linkProperty (QString sourcePropName, QVPropertyContainer *destinyContainer, QString destinyPropName, LinkType linkType=AsynchronousLink)
 Links properties among QVPropertyContainer's.
virtual bool linkProperty (QString sourcePropName, QVPropertyContainer &destinyContainer, QString destinyPropName, LinkType linkType=AsynchronousLink)
virtual bool linkProperty (QVPropertyContainer *destinyContainer, QString destinyPropName, LinkType linkType=AsynchronousLink)
virtual bool linkProperty (QVPropertyContainer &destinyContainer, QString destinyPropName, LinkType linkType=AsynchronousLink)
virtual bool linkProperty (QString sourcePropName, QVPropertyContainer *destinyContainer, LinkType linkType=AsynchronousLink)
virtual bool linkProperty (QString sourcePropName, QVPropertyContainer &destinyContainer, LinkType linkType=AsynchronousLink)
virtual void linkProperty (QVPropertyContainer *container, LinkType linkType=AsynchronousLink)
 Links properties among QVPropertyContainer's.
virtual void linkProperty (QVPropertyContainer &container, LinkType linkType=AsynchronousLink)
virtual bool unlinkProperty (QString origName, QVPropertyContainer *destCont, QString destName)
 Unlinks properties among QVPropertyContainer's.
virtual bool unlinkProperty (QString origName, QVPropertyContainer &destCont, QString destName)

Protected Member Functions

virtual bool linkUnspecifiedInputProperty (QVPropertyContainer *sourceContainer, QString sourcePropName, LinkType linkType=AsynchronousLink)
virtual bool treatUnlinkInputProperty (QString destPropName, QVPropertyContainer *sourceCont, QString sourcePropName)


Detailed Description

Todo:
document this class

Definition at line 34 of file qvsynchronizerworker.h.


Member Function Documentation

void QVSynchronizer::iterate (  )  [inline, virtual]

Function to be defined in subclasses with processing code.

This function should contain the code to process data, that will be executed continuously until worker is finished.

Reimplemented from QVWorker.

Definition at line 40 of file qvsynchronizerworker.h.

bool QVSynchronizer::linkProperty ( QString  sourcePropName,
QVPropertyContainer destinyContainer,
QString  destinyPropName,
LinkType  linkType = AsynchronousLink 
) [virtual]

Links properties among QVPropertyContainer's.

This method safely links properties among property holders in a thread safe manner. It is mainly used when programming multithreaded applications -with multiple QVWorkers-, but also, for example, when linking workers (running in an independent thread) with GUI widgets (running in the main thread).

The pointer this corresponds to the source QVPropertyContainer.

See also QVPropertyContainer::LinkType.

Parameters:
sourcePropName Identifying QString for the source property.
destinyContainer Pointer to the destination QVPropertyContainer.
destinyPropName Identifying QString for the destination property.
linkType Synchronous or asynchronous.
Returns:
TRUE if the connection went OK, FALSE otherwise (for example, due to type mismatch, some of the properties does not exists, or whatever).

Reimplemented from QVPropertyContainer.

Definition at line 27 of file qvsynchronizerworker.cpp.

Referenced by linkProperty().

void QVSynchronizer::linkProperty ( QVPropertyContainer container,
LinkType  linkType = AsynchronousLink 
) [virtual]

Links properties among QVPropertyContainer's.

This method safely links all input properties from a container with the same name and type output current container's properties, holders in a thread safe manner. It is mainly used when programming multithreaded applications -with multiple QVWorkers-, but also, for example, when linking workers (running in an independent thread) with GUI widgets (running in the main thread).

Parameters:
container Pointer to the destination QVPropertyContainer.
linkType Synchronous or asynchronous.

Reimplemented from QVPropertyContainer.

Definition at line 64 of file qvsynchronizerworker.cpp.

bool QVSynchronizer::unlinkProperty ( QString  origName,
QVPropertyContainer destCont,
QString  destName 
) [virtual]

Unlinks properties among QVPropertyContainer's.

This method safely ulinks properties among property holders in a thread safe manner.

The pointer this corresponds to the source QVPropertyContainer.

See also QVPropertyContainer::LinkType.

Parameters:
origName Identifying QString for the source property.
destCont Pointer to the destination QVPropertyContainer.
destName Identifying QString for the destination property.
Returns:
TRUE if the disconnection went OK, FALSE otherwise (for example, due to type mismatch, some of the properties does not exists, or whatever).

Reimplemented from QVPropertyContainer.

Definition at line 74 of file qvsynchronizerworker.cpp.

Referenced by unlinkProperty().


The documentation for this class was generated from the following files:



QVision framework. PARP research group, copyright 2007, 2008.