Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
TitleCreatorSVG Class Reference

Formats titles from metadata. Invoked by drain::TreeUtils::traverse() More...

#include <graphics.h>

Inheritance diagram for TitleCreatorSVG:
Inheritance graph
[legend]
Collaboration diagram for TitleCreatorSVG:
Collaboration graph
[legend]

Public Member Functions

 TitleCreatorSVG (const PanelConfSVG &svgConf)
 
int visitPostfix (TreeSVG &root, const TreeSVG::path_t &path) override
 
void formatTitle (TreeSVG &group, const NodeSVG::map_t &attributes) const
 
- Public Member Functions inherited from TreeVisitor< TreeSVG >
virtual int visitPrefix (TreeSVG &tree, const typename T::path_t &path)
 Tasks to be executed before traversing child nodes.
 
virtual int visitPostfix (TreeSVG &tree, const typename T::path_t &path)
 Tasks to be executed after traversing child nodes.
 

Public Attributes

const PanelConfSVGsvgConf
 

Detailed Description

Formats titles from metadata. Invoked by drain::TreeUtils::traverse()

class MetaDataCollectorSVG : public drain::TreeVisitor<TreeSVG> {

public:

int visitPrefix(TreeSVG & tree, const TreeSVG::path_t & path)  override;

int visitPostfix(TreeSVG & tree, const TreeSVG::path_t & path)  override;

protected:

typedef std::map<std::string, unsigned short> variableStat_t;

}; In tree traversal, maintains information on metadata.

Invoked by, hence compatible with drain::TreeUtils::traverse()

Member Function Documentation

◆ formatTitle()

void formatTitle ( TreeSVG &  group,
const NodeSVG::map_t &  attributes 
) const

Useful function – as attributes of two groups are considered: panel-specific and shared.


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