1#ifndef __JLANG__JLOADPROPERTY__
2#define __JLANG__JLOADPROPERTY__
13namespace JPP {
using namespace JLANG; }
25 template<
class JLoadableObject_t,
class T>
64 inline std::istream&
read(std::istream& in)
66 in >>
static_cast<T&
>(*this);
82 static_cast<T&
>(*this) = buffer;
97 return property.read(in);
110 return out << static_cast<const T&>(property);
Data structure for object properties which require reloading whenever the property is reread.
std::istream & read(std::istream &in)
Read property from input.
JLoadProperty< JLoadableObject_t, T > JLoadProperty_t
friend std::istream & operator>>(std::istream &in, JLoadProperty &property)
Input stream.
friend std::ostream & operator<<(std::ostream &out, const JLoadProperty &property)
Output stream.
JLoadProperty(JLoadableObject_t &object, const T &value)
Constructor.
JLoadProperty_t & operator=(const T &buffer)
Assignment operator.
JLoadProperty(JLoadableObject_t &object)
Constructor.
JLoadableObject_t & object
Auxiliary classes and methods for language specific functionality.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).