Jpp  18.1.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Friends | List of all members
JAANET::detector Struct Reference

Detector file. More...

#include <JHead.hh>

Public Member Functions

 detector ()
 Default constructor. More...
 
bool match (const detector &object) const
 Test match. More...
 
 ClassDefNV (detector, 1)
 

Public Attributes

std::string program
 
std::string filename
 

Friends

std::istream & operator>> (std::istream &in, detector &object)
 Read detector from input stream. More...
 
std::ostream & operator<< (std::ostream &out, const detector &object)
 Write detector to output stream. More...
 

Detailed Description

Detector file.

Definition at line 226 of file JHead.hh.

Constructor & Destructor Documentation

JAANET::detector::detector ( )
inline

Default constructor.

Definition at line 231 of file JHead.hh.

232  {}

Member Function Documentation

bool JAANET::detector::match ( const detector object) const
inline

Test match.

Parameters
objectdetector
Returns
true if matches; else false

Definition at line 240 of file JHead.hh.

241  {
242  return this->program == object.program && this->filename == object.filename;
243  }
std::string filename
Definition: JHead.hh:279
std::string program
Definition: JHead.hh:278
JAANET::detector::ClassDefNV ( detector  ,
 
)

Friends And Related Function Documentation

std::istream& operator>> ( std::istream &  in,
detector object 
)
friend

Read detector from input stream.

Parameters
ininput stream
objectdetector
Returns
input stream

Definition at line 252 of file JHead.hh.

253  {
254  using namespace JPP;
255 
256  in >> object.program >> object.filename;
257 
258  if (!in || is_integer(object.filename)) { // legacy
259  object.filename = object.program;
260  object.program = "?";
261  }
262 
263  return in;
264  }
bool is_integer(const std::string &buffer)
Check if string is an integer.
Definition: JLangToolkit.hh:58
std::string filename
Definition: JHead.hh:279
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
Definition: JCanberra.sh:46
std::ostream& operator<< ( std::ostream &  out,
const detector object 
)
friend

Write detector to output stream.

Parameters
outoutput stream
objectdetector
Returns
output stream

Definition at line 273 of file JHead.hh.

274  {
275  return out << object.program << ' ' << object.filename;
276  }

Member Data Documentation

std::string JAANET::detector::program

Definition at line 278 of file JHead.hh.

std::string JAANET::detector::filename

Definition at line 279 of file JHead.hh.


The documentation for this struct was generated from the following file: