Jpp  18.5.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
JDATABASE::JProductIntegration_t Struct Reference

Auxiliary class for product integration data. More...

#include <JDetectorIntegration_t.hh>

Public Member Functions

 JProductIntegration_t ()
 Default constructor. More...
 
 JProductIntegration_t (const JProductIntegration &input)
 Constructor. More...
 
bool is_set () const
 Check product status. More...
 
void set ()
 Set product status. More...
 
void unset ()
 Unset product status. More...
 

Public Attributes

std::string operation
 
int position
 
JUPI_t container
 
JUPI_t content
 
JDateAndTime_t start_date
 
JDateAndTime_t end_date
 
bool status
 

Friends

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

Detailed Description

Auxiliary class for product integration data.

This class is primarily used to

Definition at line 64 of file JDetectorIntegration_t.hh.

Constructor & Destructor Documentation

JDATABASE::JProductIntegration_t::JProductIntegration_t ( )
inline

Default constructor.

Definition at line 68 of file JDetectorIntegration_t.hh.

68  :
69  status(false)
70  {}
JDATABASE::JProductIntegration_t::JProductIntegration_t ( const JProductIntegration input)
inline

Constructor.

Parameters
inputproduct integration data

Definition at line 78 of file JDetectorIntegration_t.hh.

78  :
79  status(false)
80  {
81  using namespace std;
82 
83  this->operation = input.OPERATIONID;
84  this->position = input.POSITION;
85  this->container = input.CONTAINER_UPI;
86  this->content = input.CONTENT_UPI;
87 
88  istringstream(input.STARTD) >> this->start_date;
89  istringstream(input.ENDD) >> this->end_date;
90  }

Member Function Documentation

bool JDATABASE::JProductIntegration_t::is_set ( ) const
inline

Check product status.

Returns
true if set; else false

Definition at line 98 of file JDetectorIntegration_t.hh.

99  {
100  return status;
101  }
void JDATABASE::JProductIntegration_t::set ( )
inline

Set product status.

Definition at line 107 of file JDetectorIntegration_t.hh.

108  {
109  status = true;
110  }
void JDATABASE::JProductIntegration_t::unset ( )
inline

Unset product status.

Definition at line 116 of file JDetectorIntegration_t.hh.

117  {
118  status = false;
119  }

Friends And Related Function Documentation

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

Read product integration from input stream.

Parameters
ininput stream
objectproduct integration
Returns
input stream

Definition at line 129 of file JDetectorIntegration_t.hh.

130  {
131  using namespace std;
132 
133  in >> object.operation
134  >> object.container
135  >> object.content
136  >> object.position
137  >> object.start_date
138  >> object.end_date;
139 
140  return in;
141  }
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:48
std::ostream& operator<< ( std::ostream &  out,
const JProductIntegration_t object 
)
friend

Write product integration to output stream.

Parameters
outoutput stream
objectproduct integration
Returns
output stream

Definition at line 151 of file JDetectorIntegration_t.hh.

152  {
153  using namespace std;
154 
155  out << object.operation << ' '
156  << object.container << ' '
157  << object.content << ' '
158  << object.position << ' '
159  << object.start_date << ' '
160  << object.end_date;
161 
162  return out;
163  }

Member Data Documentation

std::string JDATABASE::JProductIntegration_t::operation

Definition at line 166 of file JDetectorIntegration_t.hh.

int JDATABASE::JProductIntegration_t::position

Definition at line 167 of file JDetectorIntegration_t.hh.

JUPI_t JDATABASE::JProductIntegration_t::container

Definition at line 168 of file JDetectorIntegration_t.hh.

JUPI_t JDATABASE::JProductIntegration_t::content

Definition at line 169 of file JDetectorIntegration_t.hh.

JDateAndTime_t JDATABASE::JProductIntegration_t::start_date

Definition at line 170 of file JDetectorIntegration_t.hh.

JDateAndTime_t JDATABASE::JProductIntegration_t::end_date

Definition at line 171 of file JDetectorIntegration_t.hh.

bool JDATABASE::JProductIntegration_t::status

Definition at line 172 of file JDetectorIntegration_t.hh.


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