1#ifndef __JROOT__JSONOBJECTOUTPUT__
2#define __JROOT__JSONOBJECTOUTPUT__
7#include "TBufferJSON.h"
20namespace JPP {
using namespace JROOT; }
45 const std::string& sep =
"\n") :
57 virtual bool put(
const T&
object)
override
62 return (
bool) (
__out << (
const char*) TBufferJSON::ConvertToJSON(&
object) <<
__sep);
103 template<
class JHead_t,
class JTail_t>
123 const std::string& sep =
"") :
145 template<
class JHead_t>
161 const std::string& sep =
"") :
Template interface of object output for single data type.
JSonObjectOutput(std::ostream &out, const std::string &sep="")
Constructor.
JSonObjectOutput(std::ostream &out, const std::string &sep="")
Constructor.
void setSeparator(const std::string &sep)
Set token separator.
Template implementation of stream output for single data type.
JSonObjectOutput(std::ostream &out, const std::string &sep="\n")
Constructor.
virtual bool put(const T &object) override
Object output.
const std::string & getSeparator() const
Get token separator.
void setSeparator(const std::string &sep)
Set token separator.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary classes and methods for ROOT I/O.
Template class test for polymorphism.
Auxiliary class for no type definition.