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)
 
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. 
 
do set_variable OUTPUT_DIRECTORY $WORKDIR T
 
void store(const std::string &file_name, const JDetector &detector)
Store detector to output file. 
 
void load(const std::string &file_name, JDetector &detector)
Load detector from input file. 
 
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in