libkeepass 0.2.0
KeePass key database importer/exporter library
Loading...
Searching...
No Matches
visitor.hh File Reference

Visitor pattern for traversing KeePass group and entry trees. More...

#include <iosfwd>
#include "libkeepass/export.hh"

Go to the source code of this file.

Classes

class  keepass::Visitor
 Visitor pattern over a KeePass group/entry tree. More...
 
class  keepass::PrintVisitor
 Visitor that prints the path of every group and entry to a stream. More...
 

Functions

LIBKEEPASS_API void keepass::Visit (Group &group, Visitor &visitor)
 Traverses the tree rooted at the given group, visiting every group and entry.
 

Detailed Description

Visitor pattern for traversing KeePass group and entry trees.

Function Documentation

◆ Visit()

LIBKEEPASS_API void keepass::Visit ( Group &  group,
Visitor &  visitor 
)

Traverses the tree rooted at the given group, visiting every group and entry.

Parameters
groupThe group whose subtree is traversed.
visitorThe visitor to notify during traversal.