Jpp  15.0.2
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 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_t container
 
JUPI_t 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 59 of file JDetectorIntegration_t.hh.

Constructor & Destructor Documentation

JDATABASE::JProductIntegration_t::JProductIntegration_t ( )
inline

Default constructor.

Definition at line 63 of file JDetectorIntegration_t.hh.

63  :
64  status(false)
65  {}
JDATABASE::JProductIntegration_t::JProductIntegration_t ( const JProductIntegration input)
inline

Constructor.

Parameters
inputproduct integration data

Definition at line 73 of file JDetectorIntegration_t.hh.

73  :
74  status(false)
75  {
76  using namespace std;
77 
78  this->operation = input.OPERATIONID;
79  this->position = input.POSITION;
80  this->container = input.CONTAINER_UPI;
81  this->content = input.CONTENT_UPI;
82 
83  istringstream(input.STARTD) >> this->start_date;
84  istringstream(input.ENDD) >> this->end_date;
85  }

Member Function Documentation

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

Has status.

Definition at line 91 of file JDetectorIntegration_t.hh.

92  {
93  return status;
94  }
void JDATABASE::JProductIntegration_t::set ( )
inline

Set status.

Definition at line 100 of file JDetectorIntegration_t.hh.

101  {
102  status = true;
103  }
void JDATABASE::JProductIntegration_t::unset ( )
inline

Unset status.

Definition at line 109 of file JDetectorIntegration_t.hh.

110  {
111  status = false;
112  }
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 123 of file JDetectorIntegration_t.hh.

124  {
125  return (this->container == product.container &&
126  this->position == product.position);
127  }

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

138  {
139  using namespace std;
140 
141  out << object.operation << ' '
142  << object.container.getUPI() << ' '
143  << object.content .getUPI() << ' '
144  << object.position << ' '
145  << object.start_date << ' '
146  << object.end_date;
147 
148  return out;
149  }

Member Data Documentation

std::string JDATABASE::JProductIntegration_t::operation

Definition at line 152 of file JDetectorIntegration_t.hh.

int JDATABASE::JProductIntegration_t::position

Definition at line 153 of file JDetectorIntegration_t.hh.

JUPI_t JDATABASE::JProductIntegration_t::container

Definition at line 154 of file JDetectorIntegration_t.hh.

JUPI_t JDATABASE::JProductIntegration_t::content

Definition at line 155 of file JDetectorIntegration_t.hh.

JDate_t JDATABASE::JProductIntegration_t::start_date

Definition at line 156 of file JDetectorIntegration_t.hh.

JDate_t JDATABASE::JProductIntegration_t::end_date

Definition at line 157 of file JDetectorIntegration_t.hh.

bool JDATABASE::JProductIntegration_t::status

Definition at line 158 of file JDetectorIntegration_t.hh.


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