libPropertyBranch 2.0(r200)
Manages Tree-Like Paramter Sets
Public Member Functions | Protected Member Functions | Protected Attributes

PropertyBranch Class Reference

#include <PropertyBranch.h>

Inheritance diagram for PropertyBranch:

List of all members.

Public Member Functions

 PropertyBranch ()
 ~PropertyBranch ()
virtual void setParentBranch (PropertyBranchInterface *p=0)
 All methods must be thread-safe!!
virtual PropertyBranchInterfaceparentBranch ()
virtual const
PropertyBranchInterface
parentBranch () const
virtual void setBranchName (QString name)
virtual QString branchName () const
virtual QStringList branchNamePath () const
virtual void setQSettingsSubBranch (QString qsprefix=QString())
virtual QString qSettingsSubBranch () const
virtual QString qSettingsPath () const
virtual void setBranchProperty (TransmittableProperty *p)
virtual TransmittablePropertytransmittableBranchProperty () const
virtual void forwardPropertyUpdate (TransmittablePropertyData &u)
 Forwards adequate updates and returns false for others.
virtual void forwardConfirmationData (const TransmittablePropertyData *d) const
 Forwards confirmation-properties to the parent branch. MUST be redefined as a thread-safe method for the root branch!
virtual void forwardNewProperty (const TransmittableProperty *p) const
 Forwards newly arisen properties to the root of the property tree.
virtual void forwardChildProperties () const
 Forwards all child properties as new ones (called if ready made subtree gets a new parent node)
virtual QList< const
TransmittableProperty * > 
childProperties () const
 returns a list containing all heir properties
virtual void addChild (PropertyBranchInterface *child)
 called by setParentBranch()!
virtual void removeChild (PropertyBranchInterface *child)
virtual void addProperty (TransmittableProperty *property) const
 called by TransmittableProperty
virtual void removeProperty (TransmittableProperty *property) const
virtual void childPropertyChanged (TransmittableProperty *p)
 Method that can be reimplemented to catch downstream changes.

Protected Member Functions

virtual void propertyChanged (TransmittableProperty *p)
 Method that can be reimplemented to catch changes to properties.

Protected Attributes

QReadWriteLock mtxchildren
QReadWriteLock mtxparents
QReadWriteLock mtxparams
QMutex updtmutex
TransmittablePropertytp

Detailed Description

Author:
Matthias Nagl <mnagl@uni-goettingen.de>

Constructor & Destructor Documentation

PropertyBranch::PropertyBranch ( )
PropertyBranch::~PropertyBranch ( )

Member Function Documentation

virtual void PropertyBranch::addChild ( PropertyBranchInterface child) [inline, virtual]
void PropertyBranch::addProperty ( TransmittableProperty property) const [virtual]
virtual QString PropertyBranch::branchName ( ) const [inline, virtual]
QStringList PropertyBranch::branchNamePath ( ) const [virtual]
QList< const TransmittableProperty * > PropertyBranch::childProperties ( ) const [virtual]

returns a list containing all heir properties

Implements PropertyBranchInterface.

virtual void PropertyBranch::childPropertyChanged ( TransmittableProperty p) [inline, virtual]

Method that can be reimplemented to catch downstream changes.

Implements PropertyBranchInterface.

void PropertyBranch::forwardChildProperties ( ) const [virtual]

Forwards all child properties as new ones (called if ready made subtree gets a new parent node)

Implements PropertyBranchInterface.

void PropertyBranch::forwardConfirmationData ( const TransmittablePropertyData d) const [virtual]

Forwards confirmation-properties to the parent branch. MUST be redefined as a thread-safe method for the root branch!

Implements PropertyBranchInterface.

void PropertyBranch::forwardNewProperty ( const TransmittableProperty p) const [virtual]

Forwards newly arisen properties to the root of the property tree.

Implements PropertyBranchInterface.

void PropertyBranch::forwardPropertyUpdate ( TransmittablePropertyData u) [virtual]

Forwards adequate updates and returns false for others.

Implements PropertyBranchInterface.

virtual PropertyBranchInterface* PropertyBranch::parentBranch ( ) [inline, virtual]
virtual const PropertyBranchInterface* PropertyBranch::parentBranch ( ) const [inline, virtual]
virtual void PropertyBranch::propertyChanged ( TransmittableProperty p) [inline, protected, virtual]

Method that can be reimplemented to catch changes to properties.

Implements PropertyBranchInterface.

QString PropertyBranch::qSettingsPath ( ) const [virtual]
virtual QString PropertyBranch::qSettingsSubBranch ( ) const [inline, virtual]
virtual void PropertyBranch::removeChild ( PropertyBranchInterface child) [inline, virtual]
void PropertyBranch::removeProperty ( TransmittableProperty property) const [virtual]
void PropertyBranch::setBranchName ( QString  name) [virtual]
void PropertyBranch::setBranchProperty ( TransmittableProperty p) [virtual]
void PropertyBranch::setParentBranch ( PropertyBranchInterface p = 0) [virtual]

All methods must be thread-safe!!

Implements PropertyBranchInterface.

virtual void PropertyBranch::setQSettingsSubBranch ( QString  qsprefix = QString()) [inline, virtual]
TransmittableProperty * PropertyBranch::transmittableBranchProperty ( ) const [virtual]

Member Data Documentation

QReadWriteLock PropertyBranch::mtxchildren [mutable, protected]
QReadWriteLock PropertyBranch::mtxparams [mutable, protected]
QReadWriteLock PropertyBranch::mtxparents [mutable, protected]
QMutex PropertyBranch::updtmutex [mutable, protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Enumerations Properties Friends Defines