LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
Row.cpp
Go to the documentation of this file.
1 #include <fstream>
2 #include <sstream>
3 #include <sys/stat.h>
4 #include <cstdlib>
5 #include <cctype>
6 #include <string>
7 
9 
10 namespace nutools {
11  namespace dbi {
12 
13  Row::Row(const std::vector<Column>& col) :
14  fInDB(false), fIsVldRow(false), fNModified(0),
15  fChannel(0xffffffff),fVldTime(0),fVldTimeEnd(0)
16  {
17  for (unsigned int i=0; i<col.size(); ++i) {
18  fCol.push_back(Column(col[i]));
19  }
20  }
21 
22  //************************************************************
23 
24  Row::Row(std::vector<ColumnDef>& col) :
25  fInDB(false), fIsVldRow(false), fNModified(0),
26  fChannel(0xffffffff),fVldTime(0),fVldTimeEnd(0)
27  {
28  for (unsigned int i=0; i<col.size(); ++i)
29  fCol.push_back(Column(col[i]));
30  }
31 
32  //************************************************************
33 
35  {
36 
37  }
38 
39  //************************************************************
40  void Row::Clear()
41  {
42  for (unsigned int i=0; i<fCol.size(); ++i)
43  fCol[i].Clear();
44 
45  }
46  }
47 }
48 
49 
std::vector< Column > fCol
Definition: Row.h:76
uint64_t fChannel
Definition: Row.h:73
bool fIsVldRow
Definition: Row.h:71
Row(int ncol)
Definition: Row.h:22
Simple service to provide a RunHistory configured to the right run.
Definition: Column.cpp:14
float fVldTimeEnd
Definition: Row.h:75
float fVldTime
Definition: Row.h:74
Int_t col[ntarg]
Definition: Style.C:29
void Clear()
Definition: Row.cpp:40
bool fInDB
Definition: Row.h:70
int fNModified
Definition: Row.h:72