libdrmconf 0.12.1
A library to program DMR radios.
Loading...
Searching...
No Matches
ConfigLabelingVisitor Class Reference

A visitor to label the entire configuration. More...

#include <configlabelingvisitor.hh>

Inheritance diagram for ConfigLabelingVisitor:
Collaboration diagram for ConfigLabelingVisitor:

Public Member Functions

 ConfigLabelingVisitor (ConfigItem::Context &context)
 Use the static method label to label the configuration.
 
bool processItem (ConfigItem *item, const ErrorStack &err=ErrorStack())
 Traverses the specified config item.
 

Static Public Member Functions

static bool label (Config *config, ConfigItem::Context &context)
 Labels the configuration and stores the labels in the given context.
 

Protected Attributes

ConfigItem::Context_context
 Holds a weak reference to the parser/serializer context.
 

Additional Inherited Members

- Protected Member Functions inherited from Visitor
 Visitor ()
 Hidden constructor.
 
virtual ~Visitor ()
 Destructor.
 
virtual bool process (Config *config, const ErrorStack &err=ErrorStack())
 Traverses the properties of the configuration recursively.
 
virtual bool processProperty (ConfigItem *item, const QMetaProperty &prop, const ErrorStack &err=ErrorStack())
 Processes the specified property of the item.
 
virtual bool processEnum (ConfigItem *item, const QMetaProperty &prop, const ErrorStack &err=ErrorStack())
 Handles an enum typed property.
 
virtual bool processBool (ConfigItem *item, const QMetaProperty &prop, const ErrorStack &err=ErrorStack())
 Handles a boolean typed property.
 
virtual bool processInt (ConfigItem *item, const QMetaProperty &prop, const ErrorStack &err=ErrorStack())
 Handles an integer typed property.
 
virtual bool processUInt (ConfigItem *item, const QMetaProperty &prop, const ErrorStack &err=ErrorStack())
 Handles an unsigned integer typed property.
 
virtual bool processDouble (ConfigItem *item, const QMetaProperty &prop, const ErrorStack &err=ErrorStack())
 Handles a double precision float typed property.
 
virtual bool processString (ConfigItem *item, const QMetaProperty &prop, const ErrorStack &err=ErrorStack())
 Handles a string typed property.
 
virtual bool processFrequency (ConfigItem *item, const QMetaProperty &prop, const ErrorStack &err=ErrorStack())
 Handles a Frequency typed property.
 
virtual bool processInterval (ConfigItem *item, const QMetaProperty &prop, const ErrorStack &err=ErrorStack())
 Handles a Interval typed property.
 
virtual bool processSelectiveCall (ConfigItem *item, const QMetaProperty &prop, const ErrorStack &err=ErrorStack())
 Handles a SelectiveCall typed property.
 
virtual bool processUnknownType (ConfigItem *item, const QMetaProperty &prop, const ErrorStack &err=ErrorStack())
 Handles a property of unknown type.
 
virtual bool processList (AbstractConfigObjectList *list, const ErrorStack &err=ErrorStack())
 Traverses the list of objects or references.
 
virtual bool processReference (ConfigObjectReference *, const ErrorStack &err=ErrorStack())
 Handles references to config objects.
 

Detailed Description

A visitor to label the entire configuration.

That is, assigning unique labels to each ConfigObject within the configuration.

Member Function Documentation

◆ processItem()

bool ConfigLabelingVisitor::processItem ( ConfigItem * item,
const ErrorStack & err = ErrorStack() )
virtual

Traverses the specified config item.

This method calls processProperty on all properties of the item.

Reimplemented from Visitor.

Member Data Documentation

◆ _context

ConfigItem::Context& ConfigLabelingVisitor::_context
protected

Holds a weak reference to the parser/serializer context.

That is, the id<->obj table.


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