#include "sqlSource.h" #include namespace Slicer { SqlSource::SqlSource(const DB::Column & c) : column(c) { } bool SqlSource::isNull() const { return column.isNull(); } void SqlSource::set(boost::posix_time::ptime & b) const { column >> b; } void SqlSource::set(boost::posix_time::time_duration & b) const { column >> b; } void SqlSource::set(bool & b) const { column >> b; } void SqlSource::set(Ice::Byte & b) const { int64_t cb; column >> cb; b = boost::numeric_cast(cb); } void SqlSource::set(Ice::Short & b) const { int64_t cb; column >> cb; b = boost::numeric_cast(cb); } void SqlSource::set(Ice::Int & b) const { int64_t cb; column >> cb; b = boost::numeric_cast(cb); } void SqlSource::set(Ice::Long & b) const { column >> b; } void SqlSource::set(Ice::Float & b) const { double cb; column >> cb; b = boost::numeric_cast(cb); } void SqlSource::set(Ice::Double & b) const { column >> b; } void SqlSource::set(std::string & b) const { column >> b; } }