git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ticket 37. The construction else added to if (tariff != NULL) construction in the
[stg.git]
/
projects
/
stargazer
/
plugins
/
store
/
firebird
/
firebird_store.h
diff --git
a/projects/stargazer/plugins/store/firebird/firebird_store.h
b/projects/stargazer/plugins/store/firebird/firebird_store.h
index 688f0e88651da56258aad827b29d4ff92a21c6d7..d9c6af244b30c3fbe6628282789aee5955b8d492 100644
(file)
--- a/
projects/stargazer/plugins/store/firebird/firebird_store.h
+++ b/
projects/stargazer/plugins/store/firebird/firebird_store.h
@@
-136,4
+136,13
@@
time_t ts2time_t(const IBPP::Timestamp & ts);
void time_t2ts(time_t t, IBPP::Timestamp * ts);
void ym2date(int year, int month, IBPP::Date * date);
void time_t2ts(time_t t, IBPP::Timestamp * ts);
void ym2date(int year, int month, IBPP::Date * date);
+template <typename T>
+inline
+T Get(IBPP::Statement st, size_t pos)
+{
+ T value;
+ st->Get(pos, value);
+ return value;
+}
+
#endif //FIREBIRD_STORE_H
#endif //FIREBIRD_STORE_H