#include <string>
#include <iostream>
#include <qrinvoice/model/qr_invoice.hpp>
#include <qrinvoice/code_creator.hpp>
// ...
const qrinvoice::model::qr_invoice qr_invoice = // create using qr_invoice::builder;
// the resulting String is the Swiss Payments Code which is the one encoded in the QR-Code
qrinvoice::code_creator code_creator;
std::string spc = code_creator.create_swiss_payments_code();
std::cout << spc << std::endl;