#include <MODCCSHFDat.h>
|
typedef oracle::occi::Clob | Clob |
|
Definition at line 19 of file MODCCSHFDat.h.
◆ Clob
◆ MODCCSHFDat()
MODCCSHFDat::MODCCSHFDat |
( |
| ) |
|
◆ ~MODCCSHFDat()
MODCCSHFDat::~MODCCSHFDat |
( |
| ) |
|
|
override |
◆ fetchData()
◆ getClob()
unsigned char* MODCCSHFDat::getClob |
( |
| ) |
const |
|
inline |
◆ getFile()
std::string MODCCSHFDat::getFile |
( |
| ) |
const |
|
inline |
◆ getSize()
unsigned int MODCCSHFDat::getSize |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string MODCCSHFDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getTest()
int MODCCSHFDat::getTest |
( |
| ) |
const |
|
inline |
◆ populateClob()
void MODCCSHFDat::populateClob |
( |
Clob & |
clob, |
|
|
std::string |
fname, |
|
|
unsigned int |
clob_size |
|
) |
| |
|
privatenoexcept |
Definition at line 234 of file MODCCSHFDat.cc.
237 cout <<
"Populating the Clob using writeBuffer(Stream) method" << endl;
238 std::cout <<
"we are here0" << std::endl;
249 inFile.open(fname2.c_str(),
ios::in);
251 if (clob_size == 0) {
253 clob_size = inFile.tellg();
254 std::cout <<
" bufsize =" << clob_size << std::endl;
256 inFile.seekg(0, ios::beg);
259 char*
buffer =
new char[clob_size + 1];
261 std::cout <<
"we are here1" << std::endl;
263 Stream* strm = clob.getStream();
264 std::cout <<
"we are here2" << std::endl;
269 inFile.read(
buffer, clob_size);
270 std::cout <<
"we are here2.5" << std::endl;
273 std::cout <<
"we are here2.6" << std::endl;
276 std::cout <<
"we are here3" << std::endl;
280 clob.closeStream(strm);
282 std::cout <<
"we are here4" << std::endl;
285 }
catch (SQLException&
e) {
286 throw(std::runtime_error(
std::string(
"populateClob(): ") +
e.getMessage()));
289 cout <<
"Populating the Clob - Success" << endl;
References visDQMUpload::buf, edmScanValgrind::buffer, gather_cfg::cout, MillePedeFileConverter_cfg::e, mps_fire::end, alignmentValidation::fname, recoMuon::in, findQualityFiles::size, and AlCaHLTBitMon_QueryRunRegistry::string.
◆ prepareWrite()
void MODCCSHFDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
◆ readClob()
unsigned char * MODCCSHFDat::readClob |
( |
Clob & |
clob, |
|
|
int |
size |
|
) |
| |
|
privatenoexcept |
◆ setClob()
void MODCCSHFDat::setClob |
( |
unsigned char * |
x | ) |
|
|
inline |
◆ setFile()
void MODCCSHFDat::setFile |
( |
std::string |
x | ) |
|
◆ setSize()
void MODCCSHFDat::setSize |
( |
unsigned int |
id | ) |
|
|
inline |
◆ setTest()
void MODCCSHFDat::setTest |
( |
int |
id | ) |
|
|
inline |
◆ writeArrayDB()
Definition at line 166 of file MODCCSHFDat.cc.
172 throw(std::runtime_error(
"MODCCSHFDat::writeArrayDB: IOV not in DB"));
175 int nrows =
data->size();
176 int* ids =
new int[nrows];
177 int* iovid_vec =
new int[nrows];
178 int*
xx =
new int[nrows];
180 ub2* ids_len =
new ub2[nrows];
181 ub2* iov_len =
new ub2[nrows];
182 ub2* x_len =
new ub2[nrows];
187 typedef map<EcalLogicID, MODCCSHFDat>::const_iterator CI;
188 for (CI
p =
data->begin();
p !=
data->end(); ++
p) {
189 channel = &(
p->first);
192 throw(std::runtime_error(
"MODCCSHFDat::writeArrayDB: Bad EcalLogicID"));
194 ids[
count] = logicID;
195 iovid_vec[
count] = iovID;
215 m_writeStmt->setDataBuffer(1, (dvoid*)iovid_vec, OCCIINT,
sizeof(iovid_vec[0]), iov_len);
216 m_writeStmt->setDataBuffer(2, (dvoid*)ids, OCCIINT,
sizeof(ids[0]), ids_len);
217 m_writeStmt->setDataBuffer(3, (dvoid*)
xx, OCCIINT,
sizeof(
xx[0]), x_len);
229 }
catch (SQLException&
e) {
230 throw(std::runtime_error(
std::string(
"MonPedestalsDat::writeArrayDB(): ") +
e.getMessage()));
References submitPVResolutionJobs::count, data, MillePedeFileConverter_cfg::e, EcalLogicID::getLogicID(), AlCaHLTBitMon_ParallelJobs::p, AlCaHLTBitMon_QueryRunRegistry::string, x, and geometryCSVtoXML::xx.
◆ writeDB()
◆ EcalCondDBInterface
◆ m_clob
unsigned char* MODCCSHFDat::m_clob |
|
private |
◆ m_file
std::string MODCCSHFDat::m_file |
|
private |
◆ m_size
unsigned int MODCCSHFDat::m_size |
|
private |
◆ testing