//////////////////////////////////////////////////////////////////// #ifndef __RAT_DBJsonLoader__ #define __RAT_DBJsonLoader__ #include #include #include #include namespace RAT { class DBTable; /* A $#%!! class with static functions to make rootcint happy */ class DBJsonLoader { public: /** Returns a list of all tables found in JSON text file @p filename. */ static std::vector parse(const std::string &filename); /** Returns a list of all tables found in JSON string. */ static std::vector parseString(const std::string &data); /** Converts a JSON document to a RATDB table */ static RAT::DBTable *convertTable(const json::Value &jsonDoc); }; } // namespace RAT #endif