Jpp  17.0.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 224 of file JHead.hh.

Constructor & Destructor Documentation

JAANET::detector::detector ( )
inline

Default constructor.

Definition at line 229 of file JHead.hh.

230  {}

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 238 of file JHead.hh.

239  {
240  return this->program == object.program && this->filename == object.filename;
241  }
std::string filename
Definition: JHead.hh:277
std::string program
Definition: JHead.hh:276
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 250 of file JHead.hh.

251  {
252  using namespace JPP;
253 
254  in >> object.program >> object.filename;
255 
256  if (!in || is_integer(object.filename)) { // legacy
257  object.filename = object.program;
258  object.program = "?";
259  }
260 
261  return in;
262  }
bool is_integer(const std::string &buffer)
Check if string is an integer.
Definition: JLangToolkit.hh:58
std::string filename
Definition: JHead.hh:277
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 271 of file JHead.hh.

272  {
273  return out << object.program << ' ' << object.filename;
274  }

Member Data Documentation

std::string JAANET::detector::program

Definition at line 276 of file JHead.hh.

std::string JAANET::detector::filename

Definition at line 277 of file JHead.hh.


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