6 #include <pdbcalbase/PdbApplication.h>
7 #include <pdbcalbase/PdbBankID.h>
8 #include <pdbcalbase/PdbCalBank.h>
13 #include <RDBC/TSQLConnection.h>
14 #include <RDBC/TSQLResultSet.h>
15 #include <RDBC/TSQLStatement.h>
41 cout <<
PHWHERE <<
"dynamic_cast failed, exiting" << endl;
61 std::cerr <<
PHWHERE <<
"Cannot start a read transaction"
69 std::cout <<
PHWHERE <<
" Cannot get TSQLConnection, exiting" << std::endl;
75 std::ostringstream query;
77 query <<
"select * from " << fulldbname;
81 query <<
" where bankID = "
121 const TimeMap::iterator
it =
fTimeMap.find(
"InsertTime");
123 bool insertIntervalGiven = (it !=
fTimeMap.end());
124 if (insertIntervalGiven)
129 const TimeMap::iterator it2 =
fTimeMap.find(
"EndVal");
130 bool endIntervalGiven = (it2 !=
fTimeMap.end());
131 if (endIntervalGiven)
136 const TimeMap::iterator it3 =
fTimeMap.find(
"StartVal");
137 bool startIntervalGiven = (it3 !=
fTimeMap.end());
138 if (startIntervalGiven)
145 if (insertIntervalGiven)
149 if (inserttime >= insert.
end() ||
150 inserttime < insert.
start())
155 if (startIntervalGiven)
159 if (starttime > start.
end() ||
160 starttime < start.
start())
166 if (endIntervalGiven)
170 if (endtime > end.
end() ||
171 endtime < end.
start())
197 TimeMap::const_iterator
it;
199 os <<
"PgPostCalBankIterator for database "
206 os << it->first <<
"=[" <<
PHTimeStamp(it->second.start())
207 <<
"," <<
PHTimeStamp(it->second.end()) <<
"]" << std::endl;