22   static const int         WILDCARD    =  -1;
 
   24   static const std::string set_t       = 
"set";               
 
   25   static const std::string add_t       = 
"add";               
 
   26   static const std::string sub_t       = 
"sub";               
 
   38     bool apply(
JTripod& tripod)
 const 
   42       else if (action == add_t)
 
   44       else if (action == sub_t)
 
   60     friend inline std::istream& 
operator>>(std::istream& 
in, JModifier& modifier)
 
   62       return in >> modifier.id >> modifier.action >> modifier.pos;
 
   73     friend inline std::ostream& 
operator<<(std::ostream& out, 
const JModifier& modifier)
 
   77       out << modifier.action;
 
  103 int main(
int argc, 
char **argv)
 
  116     JParser<> zap(
"Auxiliary program to modify tripod configuration.");
 
  118     zap[
'f'] = 
make_field(file_name,   
"tripod file");
 
  124   catch(
const exception &error) {
 
  125     FATAL(error.what() << endl);
 
  130   data.load(file_name.c_str());
 
  132   data.comment.add(
JMeta(argc, argv));
 
  136     for (container_type::iterator 
target = data.begin(); 
target != data.end(); ++
target) {
 
  138       if (
target->getID() == i->id || i->id == WILDCARD) {
 
  140         DEBUG(
"Modifier"                                                << 
' ' 
  142               << 
"action" << 
' ' << i->pos << endl);
 
  145           ERROR(
"No valid action: " << *i << endl);
 
  151   data.store(file_name.c_str());
 
Utility class to parse command line options. 
 
int main(int argc, char *argv[])
 
JUTMPosition & sub(const JUTMPosition &pos)
Subtract UTM position. 
 
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
 
void setUTMPosition(const JUTMPosition &position)
Set UTM position. 
 
Data structure for UTM position. 
 
I/O formatting auxiliaries. 
 
Auxiliary wrapper for I/O of container with optional comment (see JComment). 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
General purpose messaging. 
 
Auxiliary data structure for sequence of same character. 
 
std::istream & operator>>(std::istream &in, JAANET::JHead &header)
Read header from input. 
 
Utility class to parse command line options. 
 
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
 
Data structure for tripod. 
 
JUTMPosition & add(const JUTMPosition &pos)
Add UTM position. 
 
Data structure for tripod. 
 
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 CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in