Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JDATABASE::JProductIntegration_t Struct Reference

Auxiliary class for product integration data. More...

#include <JDetectorIntegration_t.hh>

Public Member Functions

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

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.
 
std::ostream & operator<< (std::ostream &out, const JProductIntegration_t &object)
 Write product integration to output stream.
 

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

◆ JProductIntegration_t() [1/2]

JDATABASE::JProductIntegration_t::JProductIntegration_t ( )
inline

Default constructor.

Definition at line 68 of file JDetectorIntegration_t.hh.

◆ JProductIntegration_t() [2/2]

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

◆ is_set()

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 }

◆ set()

void JDATABASE::JProductIntegration_t::set ( )
inline

Set product status.

Definition at line 107 of file JDetectorIntegration_t.hh.

108 {
109 status = true;
110 }

◆ unset()

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 Symbol Documentation

◆ operator>>

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 }

◆ operator<<

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

◆ operation

std::string JDATABASE::JProductIntegration_t::operation

Definition at line 166 of file JDetectorIntegration_t.hh.

◆ position

int JDATABASE::JProductIntegration_t::position

Definition at line 167 of file JDetectorIntegration_t.hh.

◆ container

JUPI_t JDATABASE::JProductIntegration_t::container

Definition at line 168 of file JDetectorIntegration_t.hh.

◆ content

JUPI_t JDATABASE::JProductIntegration_t::content

Definition at line 169 of file JDetectorIntegration_t.hh.

◆ start_date

JDateAndTime_t JDATABASE::JProductIntegration_t::start_date

Definition at line 170 of file JDetectorIntegration_t.hh.

◆ end_date

JDateAndTime_t JDATABASE::JProductIntegration_t::end_date

Definition at line 171 of file JDetectorIntegration_t.hh.

◆ status

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: