3#ifndef _Jsonable_0_dunedaq__confmodel_0_confmodel_H_
4#define _Jsonable_0_dunedaq__confmodel_0_confmodel_H_
19#include "nlohmann/json.hpp"
35 virtual
void init(
bool init_children);
53 virtual
void print(
unsigned int offset,
bool print_header,
std::ostream& s) const;
84 nlohmann::json
to_json(
bool direct=false,
bool skip_name=false) const;
89 inline
std::ostream& operator<<(
std::ostream& s, const
Jsonable& obj)
91 return obj.print_object(s);
The base class for any generated DAL object.
DalRegistry: A registry of DalObjects It provides a single interface to create, cache and manage DalO...
static const std::string & s_class_name
virtual std::vector< const dunedaq::conffwk::DalObject * > get(const std::string &name, bool upcast_unregistered=true) const
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject...
virtual ~Jsonable() noexcept
virtual void init(bool init_children)
nlohmann::json to_json(bool direct=false, bool skip_name=false) const
Jsonable(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
friend class conffwk::DalFactory
friend class conffwk::DalObject
std::vector< constJsonable * >::const_iterator JsonableIterator