1 #ifndef __JLANG__JOBJECTIO__ 
    2 #define __JLANG__JOBJECTIO__ 
   17 namespace JPP { 
using namespace JLANG; }
 
   28   template<
class JReader_t>
 
   41   inline bool getError(
const std::ifstream& reader)
 
   43     return reader.bad() || (reader.fail() && !reader.eof());
 
   53   template<
class JReader_t, 
class T>
 
   54   inline void load(
const char* file_name, T& 
object)
 
   66   template<
class JWriter_t, 
class T>
 
   67   inline void store(
const char* file_name, 
const T& 
object)
 
   90   template<
class JReader_t, 
class T>
 
   93     JReader_t in(file_name);
 
  126   template<
class JWriter_t, 
class T>
 
  129     JWriter_t out(file_name);
 
Exception for opening of file. 
 
Exception for reading of file. 
 
bool getError(const JReader_t &reader)
Get error status of reader. 
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message. 
 
Auxiliary class for a type holder. 
 
void load(const JString &file_name, JDetector &detector)
Load detector from input file. 
 
void store(const JString &file_name, const JDetector &detector)
Store detector to output file.