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.
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 source JAcoustics sh $DETECTOR_ID typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in