1 #ifndef __JLANG__JOBJECTIO__ 
    2 #define __JLANG__JOBJECTIO__ 
   18 namespace JPP { 
using namespace JLANG; }
 
   29   template<
class JReader_t>
 
   42   inline bool getError(
const std::ifstream& reader)
 
   44     return reader.bad() || (reader.fail() && !reader.eof());
 
   54   template<
class JReader_t, 
class T>
 
   55   inline void load(
const std::string& file_name, T& 
object)
 
   67   template<
class JWriter_t, 
class T>
 
   68   inline void store(
const std::string& file_name, 
const T& 
object)
 
   91   template<
class JReader_t, 
class T>
 
   94     JReader_t in(file_name.c_str());
 
  127   template<
class JWriter_t, 
class T>
 
  130     JWriter_t out(file_name.c_str());
 
  149   inline void load(
const std::string& file_name, T& 
object)
 
  162   inline void store(
const std::string& file_name, 
const T& 
object)
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
 
Exception for opening of file.
 
Exception for reading of file.
 
Auxiliary classes and methods for language specific functionality.
 
void load(const std::string &file_name, T &object)
Load object from input file.
 
bool getError(const std::ifstream &reader)
Get error status of reader.
 
void store(const std::string &file_name, const T &object)
Store object to output file.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
Auxiliary class for a type holder.