1#ifndef __JLANG__JTEMPLATEREADER__
2#define __JLANG__JTEMPLATEREADER__
14namespace JPP {
using namespace JLANG; }
24 template<
class JReader_t,
33 template<
class JReader_t>
45 template<
class JClass_t>
46 static inline JReader_t&
read(JReader_t& in,
48 const JType <JNullType>& type)
62 template<
class JClass_t,
class JHead_t,
class JTail_t>
63 static inline JReader_t&
read(JReader_t& in,
67 in >>
static_cast<JHead_t&
>(object);
81 template<
class JClass_t,
class JHead_t>
82 static inline JReader_t&
read(JReader_t& in,
86 return in >>
static_cast<JHead_t&
>(object);
96 template<
class JReader_t,
class JClass_t,
class JHead_t,
class JTail_t>
107 friend JReader_t&
operator>>(JReader_t& in, JClass_t&
object)
bool read(Vec &v, std::istream &is)
Read a Vec(tor) from a stream.
Auxiliary classes and methods for language specific functionality.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary class for no type definition.
friend JReader_t & operator>>(JReader_t &in, JClass_t &object)
Read operator.
static JReader_t & read(JReader_t &in, JClass_t &object, const JType< JNullType > &type)
Write method for single data types.
static JReader_t & read(JReader_t &in, JClass_t &object, const JType< JTypeList< JHead_t, JNullType > > &type)
Read method for composite data types.
static JReader_t & read(JReader_t &in, JClass_t &object, const JType< JTypeList< JHead_t, JTail_t > > &type)
Read method for composite data types.
Template definition of auxiliary base class for composite data types which derive from one or more ba...
Auxiliary class for a type holder.