class

MdfStructuralDiff

Module
MDF
Header
#include "mdf/mdf_merge.h"
Namespace
MDF

Public functions

ReturnsNameDescription
boolValuesEqual
std::stringFormatValueThe value the way the text encoding spells it.
boolNodesEqual
std::stringNodeLabel
std::vector<std::string>KeysIdentity keys of a node list, in order: type, name and the occurrence index among siblings sharing both.
std::vector<MdfDiffEntry>Compute
boolDocumentFromBytesA document from file bytes of either encoding: a binary package becomes its summary node followed by its payload, bulk chunks as tag, size and hash (MdfPackage::Dump), so a binary asset diffs by property too.

Function details

ValuesEqual

C++
static bool ValuesEqual(const MdfValue& a, const MdfValue& b)

FormatValue

C++
static std::string FormatValue(const MdfValue& value)

The value the way the text encoding spells it.

NodesEqual

C++
static bool NodesEqual(const MdfNode& a, const MdfNode& b)

NodeLabel

C++
static std::string NodeLabel(const MdfNode& node)

Keys

C++
static std::vector<std::string> Keys(const std::vector<MdfNode>& nodes)

Identity keys of a node list, in order: type, name and the occurrence index among siblings sharing both.

Compute

C++
static std::vector<MdfDiffEntry> Compute(const MdfDocument& before, const MdfDocument& after, bool includeSame = false)

DocumentFromBytes

C++
static bool DocumentFromBytes(const std::string& bytes, MdfDocument& out, std::string* error = nullptr)

A document from file bytes of either encoding: a binary package becomes its summary node followed by its payload, bulk chunks as tag, size and hash (MdfPackage::Dump), so a binary asset diffs by property too.

Generated from mdf/mdf_merge.h via mdf.json · Oct 26, 2026Version 1.0.0