70 static std::map<const std::string, std::vector<std::unique_ptr<const Exporter>>>
toAdd;
94 throw std::runtime_error(
"toAdd does not contain nullptr separator");
144 vec.emplace_back(
nullptr);
154 for (
size_t i =
element.second.size(); i > 0; --i) {
156 std::string
name(
typeid(*imp).name());
170 for (
size_t i =
element.second.size(); i > 0; --i) {
172 std::string
name(
typeid(*imp).name());
185 for (
const auto &
ePtr :
x.second) {
187 auto const &
e = *
ePtr;
188 std::cout <<
x.first <<
"\t" <<
typeid(
e).
name() << std::endl;
195 for (
const auto &
ePtr :
x.second) {
197 auto const &
e = *
ePtr;
198 std::cout <<
x.first->GetName() <<
"\t" <<
typeid(
e).
name() << std::endl;
208 std::cerr <<
"unable to read file '" <<
fname <<
"'" << std::endl;
220 for (
const auto &cl :
n.children()) {
221 std::string key = cl.key();
222 if (!cl.has_child(
"class")) {
223 std::cerr <<
"error for entry '" << key <<
"': 'class' key is required!" << std::endl;
226 std::string classname(cl[
"class"].val());
229 std::cerr <<
"unable to find class " << classname <<
", skipping." << std::endl;
234 if (!cl.has_child(
"arguments")) {
235 std::cerr <<
"class " << classname <<
" seems to have no arguments attached, skipping" << std::endl;
238 for (
const auto &arg : cl[
"arguments"].children()) {
239 ex.arguments.push_back(arg.val());
255 std::cout << it.first;
256 std::cout <<
" " << it.second.tclass->GetName();
257 for (
auto v : it.second.arguments) {
258 std::cout <<
" " <<
v;
260 std::cout << std::endl;
273 std::cerr <<
"unable to read file '" <<
fname <<
"'" << std::endl;
285 for (
const auto &cl :
n.children()) {
286 std::string classname = cl.key();
289 std::cerr <<
"unable to find class " << classname <<
", skipping." << std::endl;
293 auto *
type = cl.find(
"type");
294 auto *proxies = cl.find(
"proxies");
296 std::cerr <<
"class " << classname <<
"has not type key set, skipping" << std::endl;
300 std::cerr <<
"class " << classname <<
"has no proxies identified, skipping" << std::endl;
304 for (
const auto &k : proxies->children()) {
305 ex.proxies[k.key()] = k.val();
321 std::cout << it.first->GetName() <<
": " << it.second.type;
322 for (
const auto &
kv : it.second.proxies) {
323 std::cout <<
" " <<
kv.first <<
"=" <<
kv.second;
325 std::cout << std::endl;
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
const_iterator begin() const
const_iterator end() const
static std::unique_ptr< JSONTree > create()
TClass instances represent classes, structs and namespaces in the ROOT type system.
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
static bool registerImporter(const std::string &key, bool topPriority=true)
void loadFactoryExpressions(std::istream &is)
void setupFactoryExpressions()
ImportExpressionMap & importExpressions()
static bool registerExporter(const TClass *key, bool topPriority=true)
void clearFactoryExpressions()
int removeImporters(const std::string &needle)
int removeExporters(const std::string &needle)
std::map< TClass const *, std::vector< std::unique_ptr< const Exporter > > > ExportMap
void loadExportKeys(std::istream &is)
std::map< const std::string, ImportExpression > ImportExpressionMap
void printFactoryExpressions()
ExportKeysMap & exportKeys()
std::map< TClass const *, ExportKeys > ExportKeysMap
std::map< const std::string, std::vector< std::unique_ptr< const Importer > > > ImportMap