2012-04-29 20:52:25 +02:00
|
|
|
//
|
|
|
|
// Extractor.cpp
|
|
|
|
//
|
|
|
|
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
|
|
|
|
// and Contributors.
|
|
|
|
//
|
2014-05-04 21:02:42 +02:00
|
|
|
// SPDX-License-Identifier: BSL-1.0
|
2012-04-29 20:52:25 +02:00
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#include "Extractor.h"
|
|
|
|
#include "Poco/Data/LOB.h"
|
|
|
|
#include "Poco/Exception.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace Poco {
|
|
|
|
namespace Data {
|
|
|
|
namespace Test {
|
|
|
|
|
|
|
|
|
2022-04-29 05:23:04 +02:00
|
|
|
Extractor::Extractor(Poco::TextEncoding::Ptr pDBEncoding):
|
|
|
|
AbstractExtractor(pDBEncoding)
|
2012-04-29 20:52:25 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Extractor::~Extractor()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-11-11 18:23:21 +01:00
|
|
|
// Int8
|
|
|
|
|
2012-04-29 20:52:25 +02:00
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Int8& val)
|
|
|
|
{
|
|
|
|
val = 0;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-11-11 18:23:21 +01:00
|
|
|
bool Extractor::extract(std::size_t pos, std::vector<Poco::Int8>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::deque<Poco::Int8>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::list<Poco::Int8>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Nullable<Poco::Int8>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// UInt8
|
|
|
|
|
2012-04-29 20:52:25 +02:00
|
|
|
bool Extractor::extract(std::size_t pos, Poco::UInt8& val)
|
|
|
|
{
|
|
|
|
val = 0;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-11-11 18:23:21 +01:00
|
|
|
bool Extractor::extract(std::size_t pos, std::vector<Poco::UInt8>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::deque<Poco::UInt8>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::list<Poco::UInt8>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Nullable<Poco::UInt8>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Int16
|
|
|
|
|
2012-04-29 20:52:25 +02:00
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Int16& val)
|
|
|
|
{
|
|
|
|
val = 0;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-11-11 18:23:21 +01:00
|
|
|
bool Extractor::extract(std::size_t pos, std::vector<Poco::Int16>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::deque<Poco::Int16>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::list<Poco::Int16>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Nullable<Poco::Int16>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// UInt16
|
|
|
|
|
2012-04-29 20:52:25 +02:00
|
|
|
bool Extractor::extract(std::size_t pos, Poco::UInt16& val)
|
|
|
|
{
|
|
|
|
val = 0;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-11-11 18:23:21 +01:00
|
|
|
bool Extractor::extract(std::size_t pos, std::vector<Poco::UInt16>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::deque<Poco::UInt16>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::list<Poco::UInt16>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Nullable<Poco::UInt16>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Int32
|
|
|
|
|
2012-04-29 20:52:25 +02:00
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Int32& val)
|
|
|
|
{
|
|
|
|
val = 0;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-11-11 18:23:21 +01:00
|
|
|
bool Extractor::extract(std::size_t pos, std::vector<Poco::Int32>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::deque<Poco::Int32>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::list<Poco::Int32>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Nullable<Poco::Int32>& val)
|
|
|
|
{
|
|
|
|
val = 1;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// UInt32
|
|
|
|
|
2012-04-29 20:52:25 +02:00
|
|
|
bool Extractor::extract(std::size_t pos, Poco::UInt32& val)
|
|
|
|
{
|
|
|
|
val = 0;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-11-11 18:23:21 +01:00
|
|
|
bool Extractor::extract(std::size_t pos, std::vector<Poco::UInt32>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::deque<Poco::UInt32>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::list<Poco::UInt32>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Nullable<Poco::UInt32>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Int64
|
|
|
|
|
2012-04-29 20:52:25 +02:00
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Int64& val)
|
|
|
|
{
|
|
|
|
val = 0;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-11-11 18:23:21 +01:00
|
|
|
bool Extractor::extract(std::size_t pos, std::vector<Poco::Int64>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::deque<Poco::Int64>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::list<Poco::Int64>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Nullable<Poco::Int64>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-01-09 19:34:31 +01:00
|
|
|
#ifndef POCO_INT64_IS_LONG
|
2024-11-11 18:23:21 +01:00
|
|
|
// long
|
|
|
|
|
2012-04-29 20:52:25 +02:00
|
|
|
bool Extractor::extract(std::size_t pos, long& val)
|
|
|
|
{
|
|
|
|
val = 0;
|
|
|
|
return true;
|
|
|
|
}
|
2012-09-11 04:02:23 +02:00
|
|
|
|
|
|
|
|
2024-11-11 18:23:21 +01:00
|
|
|
bool Extractor::extract(std::size_t pos, std::vector<long>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::deque<long>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::list<long>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Nullable<long>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// unsigned long
|
|
|
|
|
2012-09-11 04:02:23 +02:00
|
|
|
bool Extractor::extract(std::size_t pos, unsigned long& val)
|
|
|
|
{
|
|
|
|
val = 0;
|
|
|
|
return true;
|
|
|
|
}
|
2024-11-11 18:23:21 +01:00
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::vector<unsigned long>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::deque<unsigned long>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::list<unsigned long>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Nullable<unsigned long>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
2020-01-09 19:34:31 +01:00
|
|
|
#endif
|
2012-04-29 20:52:25 +02:00
|
|
|
|
|
|
|
|
2024-11-11 18:23:21 +01:00
|
|
|
// UInt64
|
|
|
|
|
2012-04-29 20:52:25 +02:00
|
|
|
bool Extractor::extract(std::size_t pos, Poco::UInt64& val)
|
|
|
|
{
|
|
|
|
val = 0;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-11-11 18:23:21 +01:00
|
|
|
bool Extractor::extract(std::size_t pos, std::vector<Poco::UInt64>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::deque<Poco::UInt64>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::list<Poco::UInt64>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Nullable<Poco::UInt64>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// bool
|
|
|
|
|
2012-04-29 20:52:25 +02:00
|
|
|
bool Extractor::extract(std::size_t pos, bool& val)
|
|
|
|
{
|
|
|
|
val = false;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-11-11 18:23:21 +01:00
|
|
|
bool Extractor::extract(std::size_t pos, std::vector<bool>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::deque<bool>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::list<bool>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Nullable<bool>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// float
|
|
|
|
|
2012-04-29 20:52:25 +02:00
|
|
|
bool Extractor::extract(std::size_t pos, float& val)
|
|
|
|
{
|
|
|
|
val = 0;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-11-11 18:23:21 +01:00
|
|
|
bool Extractor::extract(std::size_t pos, std::vector<float>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::deque<float>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::list<float>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Nullable<float>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// double
|
|
|
|
|
2012-04-29 20:52:25 +02:00
|
|
|
bool Extractor::extract(std::size_t pos, double& val)
|
|
|
|
{
|
|
|
|
val = 0;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-11-11 18:23:21 +01:00
|
|
|
bool Extractor::extract(std::size_t pos, std::vector<double>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::deque<double>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::list<double>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Nullable<double>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// char
|
|
|
|
|
2012-04-29 20:52:25 +02:00
|
|
|
bool Extractor::extract(std::size_t pos, char& val)
|
|
|
|
{
|
|
|
|
val = '\0';
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-11-11 18:23:21 +01:00
|
|
|
bool Extractor::extract(std::size_t pos, std::vector<char>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::deque<char>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::list<char>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Nullable<char>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// std::string
|
|
|
|
|
2012-04-29 20:52:25 +02:00
|
|
|
bool Extractor::extract(std::size_t pos, std::string& val)
|
|
|
|
{
|
2022-04-29 05:23:04 +02:00
|
|
|
if (!transcodeRequired())
|
|
|
|
val = _stringValue;
|
|
|
|
else
|
|
|
|
transcode(_stringValue, val);
|
2012-04-29 20:52:25 +02:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-11-11 18:23:21 +01:00
|
|
|
bool Extractor::extract(std::size_t pos, std::vector<std::string>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::deque<std::string>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::list<std::string>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Nullable<std::string>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// UTF16String
|
|
|
|
|
2014-05-21 10:28:24 +02:00
|
|
|
bool Extractor::extract(std::size_t pos, Poco::UTF16String& val)
|
|
|
|
{
|
|
|
|
std::string str("");
|
|
|
|
Poco::UnicodeConverter::convert(str, val);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-11-11 18:23:21 +01:00
|
|
|
bool Extractor::extract(std::size_t pos, std::vector<Poco::UTF16String>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::deque<Poco::UTF16String>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::list<Poco::UTF16String>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Nullable<Poco::UTF16String>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// BLOB
|
|
|
|
|
2012-04-29 20:52:25 +02:00
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Data::BLOB& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-11-11 18:23:21 +01:00
|
|
|
bool Extractor::extract(std::size_t pos, std::vector<Poco::Data::BLOB>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::deque<Poco::Data::BLOB>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::list<Poco::Data::BLOB>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Nullable<Poco::Data::BLOB>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// CLOB
|
|
|
|
|
2012-04-29 20:52:25 +02:00
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Data::CLOB& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2024-11-11 18:23:21 +01:00
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::vector<Poco::Data::CLOB>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::deque<Poco::Data::CLOB>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::list<Poco::Data::CLOB>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Nullable<Poco::Data::CLOB>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Date
|
|
|
|
|
2012-04-29 20:52:25 +02:00
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Data::Date& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-11-11 18:23:21 +01:00
|
|
|
bool Extractor::extract(std::size_t pos, std::vector<Poco::Data::Date>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::deque<Poco::Data::Date>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::list<Poco::Data::Date>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Nullable<Poco::Data::Date>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Time
|
|
|
|
|
2012-04-29 20:52:25 +02:00
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Data::Time& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-11-11 18:23:21 +01:00
|
|
|
bool Extractor::extract(std::size_t pos, std::vector<Poco::Data::Time>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::deque<Poco::Data::Time>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::list<Poco::Data::Time>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Nullable<Poco::Data::Time>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// DateTime
|
|
|
|
|
2012-04-29 20:52:25 +02:00
|
|
|
bool Extractor::extract(std::size_t pos, Poco::DateTime& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-11-11 18:23:21 +01:00
|
|
|
bool Extractor::extract(std::size_t pos, std::vector<Poco::DateTime>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::deque<Poco::DateTime>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::list<Poco::DateTime>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Nullable<Poco::DateTime>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// UUID
|
|
|
|
|
2021-06-19 08:40:49 +02:00
|
|
|
bool Extractor::extract(std::size_t pos, Poco::UUID& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-11-11 18:23:21 +01:00
|
|
|
bool Extractor::extract(std::size_t pos, std::vector<Poco::UUID>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::deque<Poco::UUID>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::list<Poco::UUID>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Nullable<Poco::UUID>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Any
|
|
|
|
|
2012-04-29 20:52:25 +02:00
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Any& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-11-11 18:23:21 +01:00
|
|
|
bool Extractor::extract(std::size_t pos, std::vector<Poco::Any>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::deque<Poco::Any>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::list<Poco::Any>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Nullable<Poco::Any>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Var
|
|
|
|
|
2012-04-29 20:52:25 +02:00
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Dynamic::Var& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-11-11 18:23:21 +01:00
|
|
|
bool Extractor::extract(std::size_t pos, std::vector<Poco::Dynamic::Var>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::deque<Poco::Dynamic::Var>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, std::list<Poco::Dynamic::Var>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Extractor::extract(std::size_t pos, Poco::Nullable<Poco::Dynamic::Var>& val)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-04-29 20:52:25 +02:00
|
|
|
} } } // namespace Poco::Data::Test
|