Jpp  15.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 196 of file JHead.hh.

Constructor & Destructor Documentation

JAANET::detector::detector ( )
inline

Default constructor.

Definition at line 201 of file JHead.hh.

202  {}

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

211  {
212  return this->program == object.program && this->filename == object.filename;
213  }
std::string filename
Definition: JHead.hh:249
std::string program
Definition: JHead.hh:248
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 222 of file JHead.hh.

223  {
224  using namespace JPP;
225 
226  in >> object.program >> object.filename;
227 
228  if (!in || is_integer(object.filename)) { // legacy
229  object.filename = object.program;
230  object.program = "?";
231  }
232 
233  return in;
234  }
bool is_integer(const std::string &buffer)
Check if string is an integer.
Definition: JLangToolkit.hh:58
std::string filename
Definition: JHead.hh:249
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
Definition: JCanberra.sh:41
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 243 of file JHead.hh.

244  {
245  return out << object.program << ' ' << object.filename;
246  }

Member Data Documentation

std::string JAANET::detector::program

Definition at line 248 of file JHead.hh.

std::string JAANET::detector::filename

Definition at line 249 of file JHead.hh.


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