libdrmconf  0.12.0
A library to program DMR radios.
Static Public Member Functions | List of all members
ConfigMerge Class Reference

Just a namespace to provide merging functions. More...

#include <configmergevisitor.hh>

Static Public Member Functions

static bool mergeInto (Config *destination, Config *source, ConfigMergeVisitor::ItemStrategy itemStrategy=ConfigMergeVisitor::ItemStrategy::Ignore, ConfigMergeVisitor::SetStrategy setStrategy=ConfigMergeVisitor::SetStrategy::Ignore, const ErrorStack &err=ErrorStack())
 Merges the given source into the given destination using the specified strategies to handle conflicts. More...
 
static Configmerge (Config *destination, Config *source, ConfigMergeVisitor::ItemStrategy itemStrategy=ConfigMergeVisitor::ItemStrategy::Ignore, ConfigMergeVisitor::SetStrategy setStrategy=ConfigMergeVisitor::SetStrategy::Ignore, const ErrorStack &err=ErrorStack())
 Merges the given source into a copy of the given destination, using the specified strategies to handle conflicts. More...
 

Detailed Description

Just a namespace to provide merging functions.

Member Function Documentation

◆ merge()

Config * ConfigMerge::merge ( Config destination,
Config source,
ConfigMergeVisitor::ItemStrategy  itemStrategy = ConfigMergeVisitor::ItemStrategy::Ignore,
ConfigMergeVisitor::SetStrategy  setStrategy = ConfigMergeVisitor::SetStrategy::Ignore,
const ErrorStack err = ErrorStack() 
)
static

Merges the given source into a copy of the given destination, using the specified strategies to handle conflicts.

Here the destination codeplug does not get modified at all.

◆ mergeInto()

bool ConfigMerge::mergeInto ( Config destination,
Config source,
ConfigMergeVisitor::ItemStrategy  itemStrategy = ConfigMergeVisitor::ItemStrategy::Ignore,
ConfigMergeVisitor::SetStrategy  setStrategy = ConfigMergeVisitor::SetStrategy::Ignore,
const ErrorStack err = ErrorStack() 
)
static

Merges the given source into the given destination using the specified strategies to handle conflicts.

Here the destination codeplug gets modified, even on errors.


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