Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
DBManager.h File Reference

High-level interface to load and save DBNodetrees from/to various file formats. More...

#include <memory>
#include <filesystem>
#include "DBNode.h"
#include "ParserFactory.h"
#include "LhaBlockPrototype.h"
Include dependency graph for DBManager.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  DBManager
 Front-end for reading and writing structured data as DBNodetrees. More...
 

Detailed Description

High-level interface to load and save DBNodetrees from/to various file formats.

DBManager provides a unified entry point for:

  • detecting the appropriate parser based on the file extension,
  • running basic file validity checks (existence, non-emptiness, encoding),
  • configuring LHA/FLHA block prototypes when needed,
  • sanitizing the resulting DBNodetree.

Supported formats are determined by ParserFactory::Type and the EXTENSIONS table:

  • JSON (.json)
  • YAML (.yml, .yaml)
  • LHA / SLHA / FLHA (.lha, .slha, .flha)

Definition in file DBManager.h.