Auxiliary base class for JSon I/O based on ROOT dictionary.  
 More...
#include <JSonSupportkit.hh>
template<class T>
struct JDATABASE::JSonHelper< T >
Auxiliary base class for JSon I/O based on ROOT dictionary. 
Definition at line 132 of file JSonSupportkit.hh.
template<class T> 
  
  | 
        
          | void to_json | ( | json & | js, |  
          |  |  | const T & | object |  
          |  | ) |  |  |  | friend | 
 
Convert object to JSon. 
- Parameters
- 
  
  
Definition at line 139 of file JSonSupportkit.hh.
  144       JRootWritableClass cls(
object);
 
  146       for (unique_ptr<TIterator> i(cls.getClass()->GetListOfDataMembers()->MakeIterator()); 
const TDataMember* p = (
const TDataMember*) i->Next(); ) {
 
  148         if (!JRootClass::is_static(*p)) {
 
  150           JRootWritableClass abc = cls.get(*p);
 
static data_type & getInstance()
Get unique instance of template class. 
 
 
 
template<class T> 
  
  | 
        
          | void from_json | ( | const json & | js, |  
          |  |  | T & | object |  
          |  | ) |  |  |  | friend | 
 
Convert JSon to object/. 
- Parameters
- 
  
  
Definition at line 164 of file JSonSupportkit.hh.
  169       JRootReadableClass cls(
object);
 
  171       for (unique_ptr<TIterator> i(cls.getClass()->GetListOfDataMembers()->MakeIterator()); 
const TDataMember* p = (
const TDataMember*) i->Next(); ) {
 
  173         if (!JRootClass::is_static(*p)) {
 
  175           JRootReadableClass abc = cls.get(*p);
 
static data_type & getInstance()
Get unique instance of template class. 
 
 
 
The documentation for this struct was generated from the following file: