Jpp
 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 has () const
 Has status. More...
 
void set ()
 Set status. More...
 
void unset ()
 Unset status. More...
 
bool overlap (const JProductIntegration_t &product) const
 Check whether there is an overlap between products. More...
 

Public Attributes

std::string operation
 
int position
 
JUPI container
 
JUPI content
 
JDate_t start_date
 
JDate_t end_date
 
bool status
 

Friends

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 68 of file JDetectorIntegration_t.hh.

Constructor & Destructor Documentation

JDATABASE::JProductIntegration_t::JProductIntegration_t ( )
inline

Default constructor.

Definition at line 72 of file JDetectorIntegration_t.hh.

72  :
73  status(false)
74  {}
JDATABASE::JProductIntegration_t::JProductIntegration_t ( const JProductIntegration input)
inline

Constructor.

Parameters
inputproduct integration data

Definition at line 82 of file JDetectorIntegration_t.hh.

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

Member Function Documentation

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

Has status.

Definition at line 100 of file JDetectorIntegration_t.hh.

101  {
102  return status;
103  }
void JDATABASE::JProductIntegration_t::set ( )
inline

Set status.

Definition at line 109 of file JDetectorIntegration_t.hh.

110  {
111  status = true;
112  }
void JDATABASE::JProductIntegration_t::unset ( )
inline

Unset status.

Definition at line 118 of file JDetectorIntegration_t.hh.

119  {
120  status = false;
121  }
bool JDATABASE::JProductIntegration_t::overlap ( const JProductIntegration_t product) const
inline

Check whether there is an overlap between products.

The overlap is evaluated based on container UPI and position.

Parameters
productproduct
Returns
true if this product overlaps with given product; else false

Definition at line 132 of file JDetectorIntegration_t.hh.

133  {
134  return (this->container == product.container &&
135  this->position == product.position);
136  }

Friends And Related Function Documentation

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 146 of file JDetectorIntegration_t.hh.

147  {
148  using namespace std;
149 
150  out << object.operation << ' '
151  << object.container.getUPI() << ' '
152  << object.content .getUPI() << ' '
153  << object.position << ' '
154  << object.start_date << ' '
155  << object.end_date;
156 
157  return out;
158  }

Member Data Documentation

std::string JDATABASE::JProductIntegration_t::operation

Definition at line 161 of file JDetectorIntegration_t.hh.

int JDATABASE::JProductIntegration_t::position

Definition at line 162 of file JDetectorIntegration_t.hh.

JUPI JDATABASE::JProductIntegration_t::container

Definition at line 163 of file JDetectorIntegration_t.hh.

JUPI JDATABASE::JProductIntegration_t::content

Definition at line 164 of file JDetectorIntegration_t.hh.

JDate_t JDATABASE::JProductIntegration_t::start_date

Definition at line 165 of file JDetectorIntegration_t.hh.

JDate_t JDATABASE::JProductIntegration_t::end_date

Definition at line 166 of file JDetectorIntegration_t.hh.

bool JDATABASE::JProductIntegration_t::status

Definition at line 167 of file JDetectorIntegration_t.hh.


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