mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 12:18:01 +01:00
use std::size_t in Data interfaces (may break some code on 64-bit platforms)
This commit is contained in:
@@ -337,7 +337,7 @@ public:
|
||||
|
||||
std::size_t numOfRowsHandled() const
|
||||
{
|
||||
return _val.size();
|
||||
return static_cast<std::size_t>(_val.size());
|
||||
}
|
||||
|
||||
bool canBind() const
|
||||
@@ -481,7 +481,7 @@ public:
|
||||
|
||||
std::size_t numOfRowsHandled() const
|
||||
{
|
||||
return _val.size();
|
||||
return static_cast<std::size_t>(_val.size());
|
||||
}
|
||||
|
||||
bool canBind() const
|
||||
@@ -558,7 +558,7 @@ public:
|
||||
|
||||
std::size_t numOfRowsHandled() const
|
||||
{
|
||||
return _deq.size();
|
||||
return static_cast<std::size_t>(_deq.size());
|
||||
}
|
||||
|
||||
bool canBind() const
|
||||
@@ -873,7 +873,7 @@ public:
|
||||
|
||||
std::size_t numOfRowsHandled() const
|
||||
{
|
||||
return _val.size();
|
||||
return static_cast<std::size_t>(_val.size());
|
||||
}
|
||||
|
||||
bool canBind() const
|
||||
@@ -1000,7 +1000,7 @@ public:
|
||||
|
||||
std::size_t numOfRowsHandled() const
|
||||
{
|
||||
return _val.size();
|
||||
return static_cast<std::size_t>(_val.size());
|
||||
}
|
||||
|
||||
bool canBind() const
|
||||
@@ -1127,7 +1127,7 @@ public:
|
||||
|
||||
std::size_t numOfRowsHandled() const
|
||||
{
|
||||
return _val.size();
|
||||
return static_cast<std::size_t>(_val.size());
|
||||
}
|
||||
|
||||
bool canBind() const
|
||||
@@ -1254,7 +1254,7 @@ public:
|
||||
|
||||
std::size_t numOfRowsHandled() const
|
||||
{
|
||||
return _val.size();
|
||||
return static_cast<std::size_t>(_val.size());
|
||||
}
|
||||
|
||||
bool canBind() const
|
||||
|
||||
@@ -176,7 +176,7 @@ public:
|
||||
|
||||
std::size_t numOfRowsHandled() const
|
||||
{
|
||||
return _rResult.size();
|
||||
return static_cast<std::size_t>(_rResult.size());
|
||||
}
|
||||
|
||||
std::size_t numOfRowsAllowed() const
|
||||
@@ -255,7 +255,7 @@ public:
|
||||
|
||||
std::size_t numOfRowsHandled() const
|
||||
{
|
||||
return _rResult.size();
|
||||
return static_cast<std::size_t>(_rResult.size());
|
||||
}
|
||||
|
||||
std::size_t numOfRowsAllowed() const
|
||||
@@ -560,7 +560,7 @@ public:
|
||||
|
||||
std::size_t numOfRowsHandled() const
|
||||
{
|
||||
return _rResult.size();
|
||||
return static_cast<std::size_t>(_rResult.size());
|
||||
}
|
||||
|
||||
std::size_t numOfRowsAllowed() const
|
||||
@@ -619,7 +619,7 @@ public:
|
||||
|
||||
std::size_t numOfRowsHandled() const
|
||||
{
|
||||
return _rResult.size();
|
||||
return static_cast<std::size_t>(_rResult.size());
|
||||
}
|
||||
|
||||
std::size_t numOfRowsAllowed() const
|
||||
@@ -678,7 +678,7 @@ public:
|
||||
|
||||
std::size_t numOfRowsHandled() const
|
||||
{
|
||||
return _rResult.size();
|
||||
return static_cast<std::size_t>(_rResult.size());
|
||||
}
|
||||
|
||||
std::size_t numOfRowsAllowed() const
|
||||
@@ -737,7 +737,7 @@ public:
|
||||
|
||||
std::size_t numOfRowsHandled() const
|
||||
{
|
||||
return _rResult.size();
|
||||
return static_cast<std::size_t>(_rResult.size());
|
||||
}
|
||||
|
||||
std::size_t numOfRowsAllowed() const
|
||||
|
||||
@@ -193,7 +193,7 @@ public:
|
||||
std::size_t size() const
|
||||
/// Returns the size of the LOB in bytes.
|
||||
{
|
||||
return _pContent->size();
|
||||
return static_cast<std::size_t>(_pContent->size());
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
@@ -124,7 +124,7 @@ public:
|
||||
/// The number of rows reported is independent of filtering.
|
||||
|
||||
std::size_t columnCount() const;
|
||||
/// Returns the number of rows in the recordset.
|
||||
/// Returns the number of columns in the recordset.
|
||||
|
||||
template <class C>
|
||||
const Column<C>& column(const std::string& name) const
|
||||
@@ -456,7 +456,7 @@ inline std::size_t RecordSet::totalRowCount() const
|
||||
|
||||
inline std::size_t RecordSet::columnCount() const
|
||||
{
|
||||
return extractions().size();
|
||||
return static_cast<std::size_t>(extractions().size());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -260,7 +260,7 @@ Data_API std::ostream& operator << (std::ostream &os, const Row& row);
|
||||
///
|
||||
inline std::size_t Row::fieldCount() const
|
||||
{
|
||||
return _values.size();
|
||||
return static_cast<std::size_t>(_values.size());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -83,8 +83,6 @@ class Data_API SQLChannel: public Poco::Channel
|
||||
/// a risk of long blocking periods in case of remote server communication delays.
|
||||
{
|
||||
public:
|
||||
typedef Statement::ResultType ResultType;
|
||||
|
||||
SQLChannel();
|
||||
/// Creates SQLChannel.
|
||||
|
||||
@@ -145,7 +143,7 @@ public:
|
||||
std::string getProperty(const std::string& name) const;
|
||||
/// Returns the value of the property with the given name.
|
||||
|
||||
ResultType wait();
|
||||
std::size_t wait();
|
||||
/// Waits for the completion of the previous operation and returns
|
||||
/// the result. If chanel is in synchronous mode, returns 0 immediately.
|
||||
|
||||
@@ -217,7 +215,7 @@ private:
|
||||
// inlines
|
||||
//
|
||||
|
||||
inline SQLChannel::ResultType SQLChannel::wait()
|
||||
inline std::size_t SQLChannel::wait()
|
||||
{
|
||||
if (_async && _pLogStatement)
|
||||
return _pLogStatement->wait(_timeout);
|
||||
|
||||
@@ -94,11 +94,10 @@ class Data_API Statement
|
||||
public:
|
||||
typedef void (*Manipulator)(Statement&);
|
||||
|
||||
typedef Poco::UInt32 ResultType;
|
||||
typedef ActiveResult<ResultType> Result;
|
||||
typedef SharedPtr<Result> ResultPtr;
|
||||
typedef ActiveMethod<ResultType, void, StatementImpl> AsyncExecMethod;
|
||||
typedef SharedPtr<AsyncExecMethod> AsyncExecMethodPtr;
|
||||
typedef ActiveResult<std::size_t> Result;
|
||||
typedef SharedPtr<Result> ResultPtr;
|
||||
typedef ActiveMethod<std::size_t, void, StatementImpl> AsyncExecMethod;
|
||||
typedef SharedPtr<AsyncExecMethod> AsyncExecMethodPtr;
|
||||
|
||||
static const int WAIT_FOREVER = -1;
|
||||
|
||||
@@ -273,7 +272,7 @@ public:
|
||||
Statement& operator , (Poco::Int16 value);
|
||||
/// Adds the value to the list of values to be supplied to the SQL string formatting function.
|
||||
|
||||
Statement& operator , (Poco::UInt32 value);
|
||||
Statement& operator , (std::size_t value);
|
||||
/// Adds the value to the list of values to be supplied to the SQL string formatting function.
|
||||
|
||||
Statement& operator , (Poco::Int32 value);
|
||||
@@ -310,7 +309,7 @@ public:
|
||||
const std::string& toString() const;
|
||||
/// Creates a string from the accumulated SQL statement.
|
||||
|
||||
ResultType execute();
|
||||
std::size_t execute();
|
||||
/// Executes the statement synchronously or asynchronously.
|
||||
/// Stops when either a limit is hit or the whole statement was executed.
|
||||
/// Returns the number of rows extracted from the database (for statements
|
||||
@@ -337,7 +336,7 @@ public:
|
||||
bool isAsync() const;
|
||||
/// Returns true if statement was marked for asynchronous execution.
|
||||
|
||||
Statement::ResultType wait(long milliseconds = WAIT_FOREVER);
|
||||
std::size_t wait(long milliseconds = WAIT_FOREVER);
|
||||
/// Waits for the execution completion for asynchronous statements or
|
||||
/// returns immediately for synchronous ones. The return value for
|
||||
/// asynchronous statement is the execution result (i.e. number of
|
||||
@@ -369,25 +368,25 @@ public:
|
||||
const std::string& getStorage() const;
|
||||
/// Returns the internal storage type for the stamement.
|
||||
|
||||
Poco::UInt32 columnsExtracted(int dataSet = StatementImpl::USE_CURRENT_DATA_SET) const;
|
||||
std::size_t columnsExtracted(int dataSet = StatementImpl::USE_CURRENT_DATA_SET) const;
|
||||
/// Returns the number of columns returned for current data set.
|
||||
/// Default value indicates current data set (if any).
|
||||
|
||||
Poco::UInt32 rowsExtracted(int dataSet = StatementImpl::USE_CURRENT_DATA_SET) const;
|
||||
std::size_t rowsExtracted(int dataSet = StatementImpl::USE_CURRENT_DATA_SET) const;
|
||||
/// Returns the number of rows returned for current data set.
|
||||
/// Default value indicates current data set (if any).
|
||||
|
||||
Poco::UInt32 extractionCount() const;
|
||||
std::size_t extractionCount() const;
|
||||
/// Returns the number of extraction storage buffers associated
|
||||
/// with the current data set.
|
||||
|
||||
Poco::UInt32 dataSetCount() const;
|
||||
std::size_t dataSetCount() const;
|
||||
/// Returns the number of data sets associated with the statement.
|
||||
|
||||
Poco::UInt32 nextDataSet();
|
||||
std::size_t nextDataSet();
|
||||
/// Returns the index of the next data set.
|
||||
|
||||
Poco::UInt32 previousDataSet();
|
||||
std::size_t previousDataSet();
|
||||
/// Returns the index of the previous data set.
|
||||
|
||||
bool hasMoreDataSets() const;
|
||||
@@ -564,7 +563,7 @@ inline Statement& Statement::operator , (Poco::Int16 value)
|
||||
}
|
||||
|
||||
|
||||
inline Statement& Statement::operator , (Poco::UInt32 value)
|
||||
inline Statement& Statement::operator , (std::size_t value)
|
||||
{
|
||||
return commaPODImpl(value);
|
||||
}
|
||||
@@ -687,7 +686,7 @@ inline const AbstractExtractionVec& Statement::extractions() const
|
||||
|
||||
inline const MetaColumn& Statement::metaColumn(std::size_t pos) const
|
||||
{
|
||||
return _pImpl->metaColumn(static_cast<UInt32>(pos));
|
||||
return _pImpl->metaColumn(pos);
|
||||
}
|
||||
|
||||
|
||||
@@ -703,37 +702,37 @@ inline void Statement::setStorage(const std::string& storage)
|
||||
}
|
||||
|
||||
|
||||
inline Poco::UInt32 Statement::extractionCount() const
|
||||
inline std::size_t Statement::extractionCount() const
|
||||
{
|
||||
return _pImpl->extractionCount();
|
||||
}
|
||||
|
||||
|
||||
inline Poco::UInt32 Statement::columnsExtracted(int dataSet) const
|
||||
inline std::size_t Statement::columnsExtracted(int dataSet) const
|
||||
{
|
||||
return _pImpl->columnsExtracted(dataSet);
|
||||
}
|
||||
|
||||
|
||||
inline Poco::UInt32 Statement::rowsExtracted(int dataSet) const
|
||||
inline std::size_t Statement::rowsExtracted(int dataSet) const
|
||||
{
|
||||
return _pImpl->rowsExtracted(dataSet);
|
||||
}
|
||||
|
||||
|
||||
inline Poco::UInt32 Statement::dataSetCount() const
|
||||
inline std::size_t Statement::dataSetCount() const
|
||||
{
|
||||
return _pImpl->dataSetCount();
|
||||
}
|
||||
|
||||
|
||||
inline Poco::UInt32 Statement::nextDataSet()
|
||||
inline std::size_t Statement::nextDataSet()
|
||||
{
|
||||
return _pImpl->activateNextDataSet();
|
||||
}
|
||||
|
||||
|
||||
inline Poco::UInt32 Statement::previousDataSet()
|
||||
inline std::size_t Statement::previousDataSet()
|
||||
{
|
||||
return _pImpl->activatePreviousDataSet();
|
||||
}
|
||||
|
||||
@@ -144,7 +144,7 @@ public:
|
||||
std::string toString() const;
|
||||
/// Create a string version of the SQL statement.
|
||||
|
||||
Poco::UInt32 execute();
|
||||
std::size_t execute();
|
||||
/// Executes a statement. Returns the number of rows
|
||||
/// extracted for statements returning data or number of rows
|
||||
/// affected for all other statements (insert, update, delete).
|
||||
@@ -164,22 +164,22 @@ public:
|
||||
Storage getStorage() const;
|
||||
/// Returns the storage type for this statement.
|
||||
|
||||
Poco::UInt32 extractionCount() const;
|
||||
std::size_t extractionCount() const;
|
||||
/// Returns the number of extraction storage buffers associated
|
||||
/// with the statement.
|
||||
|
||||
Poco::UInt32 dataSetCount() const;
|
||||
std::size_t dataSetCount() const;
|
||||
/// Returns the number of data sets associated with the statement.
|
||||
|
||||
protected:
|
||||
virtual Poco::UInt32 columnsReturned() const = 0;
|
||||
virtual std::size_t columnsReturned() const = 0;
|
||||
/// Returns number of columns returned by query.
|
||||
|
||||
virtual Poco::UInt32 affectedRowCount() const = 0;
|
||||
virtual std::size_t affectedRowCount() const = 0;
|
||||
/// Returns the number of affected rows.
|
||||
/// Used to find out the number of rows affected by insert, delete or update.
|
||||
|
||||
virtual const MetaColumn& metaColumn(Poco::UInt32 pos) const = 0;
|
||||
virtual const MetaColumn& metaColumn(std::size_t pos) const = 0;
|
||||
/// Returns column meta data.
|
||||
|
||||
const MetaColumn& metaColumn(const std::string& name) const;
|
||||
@@ -192,7 +192,7 @@ protected:
|
||||
/// several consecutive calls to hasNext without data getting lost,
|
||||
/// ie. hasNext(); hasNext(); next() must be equal to hasNext(); next();
|
||||
|
||||
virtual Poco::UInt32 next() = 0;
|
||||
virtual std::size_t next() = 0;
|
||||
/// Retrieves the next row or set of rows from the resultset and
|
||||
/// returns the number of rows retreved.
|
||||
///
|
||||
@@ -220,10 +220,10 @@ protected:
|
||||
virtual AbstractBinder& binder() = 0;
|
||||
/// Returns the concrete binder used by the statement.
|
||||
|
||||
Poco::UInt32 columnsExtracted(int dataSet = USE_CURRENT_DATA_SET) const;
|
||||
std::size_t columnsExtracted(int dataSet = USE_CURRENT_DATA_SET) const;
|
||||
/// Returns the number of columns that the extractors handle.
|
||||
|
||||
Poco::UInt32 rowsExtracted(int dataSet = USE_CURRENT_DATA_SET) const;
|
||||
std::size_t rowsExtracted(int dataSet = USE_CURRENT_DATA_SET) const;
|
||||
/// Returns the number of rows extracted for current data set.
|
||||
/// Default value (USE_CURRENT_DATA_SET) indicates current data set (if any).
|
||||
|
||||
@@ -236,7 +236,7 @@ protected:
|
||||
AbstractExtractionVec& extractions();
|
||||
/// Returns the extractions vector.
|
||||
|
||||
void makeExtractors(Poco::UInt32 count);
|
||||
void makeExtractors(std::size_t count);
|
||||
/// Determines the type of the internal extraction container and
|
||||
/// calls the extraction creation function (addInternalExtract)
|
||||
/// with appropriate data type and container type arguments.
|
||||
@@ -284,21 +284,21 @@ protected:
|
||||
void fixupExtraction();
|
||||
/// Sets the AbstractExtractor at the extractors.
|
||||
|
||||
Poco::UInt32 currentDataSet() const;
|
||||
std::size_t currentDataSet() const;
|
||||
/// Returns the current data set.
|
||||
|
||||
Poco::UInt32 activateNextDataSet();
|
||||
std::size_t activateNextDataSet();
|
||||
/// Returns the next data set index, or throws NoDataException if the last
|
||||
/// data set was reached.
|
||||
|
||||
Poco::UInt32 activatePreviousDataSet();
|
||||
std::size_t activatePreviousDataSet();
|
||||
/// Returns the previous data set index, or throws NoDataException if the last
|
||||
/// data set was reached.
|
||||
|
||||
bool hasMoreDataSets() const;
|
||||
/// Returns true if there are data sets not activated yet.
|
||||
|
||||
Poco::UInt32 getExtractionLimit();
|
||||
std::size_t getExtractionLimit();
|
||||
/// Returns the extraction limit value.
|
||||
|
||||
const Limit& extractionLimit() const;
|
||||
@@ -311,12 +311,12 @@ private:
|
||||
void bind();
|
||||
/// Binds the statement, if not yet bound.
|
||||
|
||||
Poco::UInt32 executeWithLimit();
|
||||
std::size_t executeWithLimit();
|
||||
/// Executes with an upper limit set. Returns the number of rows
|
||||
/// extracted for statements returning data or number of rows
|
||||
/// affected for all other statements (insert, update, delete).
|
||||
|
||||
Poco::UInt32 executeWithoutLimit();
|
||||
std::size_t executeWithoutLimit();
|
||||
/// Executes without an upper limit set. Returns the number of rows
|
||||
/// extracted for statements returning data or number of rows
|
||||
/// affected for all other statements (insert, update, delete).
|
||||
@@ -393,7 +393,7 @@ private:
|
||||
}
|
||||
}
|
||||
|
||||
bool isNull(Poco::UInt32 col, Poco::UInt32 row) const;
|
||||
bool isNull(std::size_t col, std::size_t row) const;
|
||||
/// Returns true if the value in [col, row] is null.
|
||||
|
||||
void forbidBulk();
|
||||
@@ -435,14 +435,14 @@ private:
|
||||
|
||||
State _state;
|
||||
Limit _extrLimit;
|
||||
Poco::UInt32 _lowerLimit;
|
||||
std::size_t _lowerLimit;
|
||||
std::vector<int> _columnsExtracted;
|
||||
SessionImpl& _rSession;
|
||||
Storage _storage;
|
||||
std::ostringstream _ostr;
|
||||
AbstractBindingVec _bindings;
|
||||
AbstractExtractionVecVec _extractors;
|
||||
Poco::UInt32 _curDataSet;
|
||||
std::size_t _curDataSet;
|
||||
BulkType _bulkBinding;
|
||||
BulkType _bulkExtraction;
|
||||
|
||||
@@ -516,15 +516,15 @@ inline StatementImpl::Storage StatementImpl::getStorage() const
|
||||
}
|
||||
|
||||
|
||||
inline Poco::UInt32 StatementImpl::extractionCount() const
|
||||
inline std::size_t StatementImpl::extractionCount() const
|
||||
{
|
||||
return extractions().size();
|
||||
return static_cast<std::size_t>(extractions().size());
|
||||
}
|
||||
|
||||
|
||||
inline Poco::UInt32 StatementImpl::dataSetCount() const
|
||||
inline std::size_t StatementImpl::dataSetCount() const
|
||||
{
|
||||
return _extractors.size();
|
||||
return static_cast<std::size_t>(_extractors.size());
|
||||
}
|
||||
|
||||
|
||||
@@ -534,7 +534,7 @@ inline bool StatementImpl::isStoredProcedure() const
|
||||
}
|
||||
|
||||
|
||||
inline bool StatementImpl::isNull(Poco::UInt32 col, Poco::UInt32 row) const
|
||||
inline bool StatementImpl::isNull(std::size_t col, std::size_t row) const
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -546,13 +546,13 @@ inline bool StatementImpl::isNull(Poco::UInt32 col, Poco::UInt32 row) const
|
||||
}
|
||||
|
||||
|
||||
inline Poco::UInt32 StatementImpl::currentDataSet() const
|
||||
inline std::size_t StatementImpl::currentDataSet() const
|
||||
{
|
||||
return _curDataSet;
|
||||
}
|
||||
|
||||
|
||||
inline Poco::UInt32 StatementImpl::getExtractionLimit()
|
||||
inline std::size_t StatementImpl::getExtractionLimit()
|
||||
{
|
||||
return _extrLimit.value();
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@ public:
|
||||
|
||||
static std::size_t size()
|
||||
{
|
||||
return 1;
|
||||
return 1u;
|
||||
}
|
||||
|
||||
static void extract(std::size_t pos, T& obj, const T& defVal, AbstractExtractor* pExt)
|
||||
@@ -176,7 +176,7 @@ public:
|
||||
|
||||
static std::size_t size()
|
||||
{
|
||||
return 1;
|
||||
return 1u;
|
||||
}
|
||||
|
||||
static void extract(std::size_t pos, std::deque<T>& obj, const T& defVal, AbstractExtractor* pExt)
|
||||
@@ -211,7 +211,7 @@ public:
|
||||
|
||||
static std::size_t size()
|
||||
{
|
||||
return 1;
|
||||
return 1u;
|
||||
}
|
||||
|
||||
static void extract(std::size_t pos, std::vector<T>& obj, const T& defVal, AbstractExtractor* pExt)
|
||||
@@ -246,7 +246,7 @@ public:
|
||||
|
||||
static std::size_t size()
|
||||
{
|
||||
return 1;
|
||||
return 1u;
|
||||
}
|
||||
|
||||
static void extract(std::size_t pos, std::list<T>& obj, const T& defVal, AbstractExtractor* pExt)
|
||||
@@ -301,7 +301,7 @@ public:
|
||||
|
||||
static std::size_t size()
|
||||
{
|
||||
return 1;
|
||||
return 1u;
|
||||
}
|
||||
|
||||
static void extract(std::size_t pos, Nullable<T>& obj, const Nullable<T>& , AbstractExtractor* pExt)
|
||||
@@ -409,7 +409,7 @@ public:
|
||||
|
||||
static std::size_t size()
|
||||
{
|
||||
return Poco::Tuple<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19>::length;
|
||||
return static_cast<std::size_t>(Poco::Tuple<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19>::length);
|
||||
}
|
||||
|
||||
static void extract(std::size_t pos, TupleRef tuple, TupleConstRef defVal, AbstractExtractor* pExt)
|
||||
@@ -518,7 +518,7 @@ public:
|
||||
|
||||
static std::size_t size()
|
||||
{
|
||||
return Poco::Tuple<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18>::length;
|
||||
return static_cast<std::size_t>(Poco::Tuple<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18>::length);
|
||||
}
|
||||
|
||||
static void extract(std::size_t pos, TupleRef tuple, TupleConstRef defVal, AbstractExtractor* pExt)
|
||||
@@ -623,7 +623,7 @@ public:
|
||||
|
||||
static std::size_t size()
|
||||
{
|
||||
return Poco::Tuple<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17>::length;
|
||||
return static_cast<std::size_t>(Poco::Tuple<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17>::length);
|
||||
}
|
||||
|
||||
static void extract(std::size_t pos, TupleRef tuple, TupleConstRef defVal, AbstractExtractor* pExt)
|
||||
@@ -724,7 +724,7 @@ public:
|
||||
|
||||
static std::size_t size()
|
||||
{
|
||||
return Poco::Tuple<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16>::length;
|
||||
return static_cast<std::size_t>(Poco::Tuple<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16>::length);
|
||||
}
|
||||
|
||||
static void extract(std::size_t pos, TupleRef tuple, TupleConstRef defVal, AbstractExtractor* pExt)
|
||||
@@ -821,7 +821,7 @@ public:
|
||||
|
||||
static std::size_t size()
|
||||
{
|
||||
return Poco::Tuple<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15>::length;
|
||||
return static_cast<std::size_t>(Poco::Tuple<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15>::length);
|
||||
}
|
||||
|
||||
static void extract(std::size_t pos, TupleRef tuple, TupleConstRef defVal, AbstractExtractor* pExt)
|
||||
@@ -914,7 +914,7 @@ public:
|
||||
|
||||
static std::size_t size()
|
||||
{
|
||||
return Poco::Tuple<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14>::length;
|
||||
return static_cast<std::size_t>(Poco::Tuple<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14>::length);
|
||||
}
|
||||
|
||||
static void extract(std::size_t pos, TupleRef tuple, TupleConstRef defVal, AbstractExtractor* pExt)
|
||||
@@ -1003,7 +1003,7 @@ public:
|
||||
|
||||
static std::size_t size()
|
||||
{
|
||||
return Poco::Tuple<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>::length;
|
||||
return static_cast<std::size_t>(Poco::Tuple<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>::length);
|
||||
}
|
||||
|
||||
static void extract(std::size_t pos, TupleRef tuple, TupleConstRef defVal, AbstractExtractor* pExt)
|
||||
@@ -1088,7 +1088,7 @@ public:
|
||||
|
||||
static std::size_t size()
|
||||
{
|
||||
return Poco::Tuple<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>::length;
|
||||
return static_cast<std::size_t>(Poco::Tuple<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>::length);
|
||||
}
|
||||
|
||||
static void extract(std::size_t pos, TupleRef tuple, TupleConstRef defVal, AbstractExtractor* pExt)
|
||||
@@ -1169,7 +1169,7 @@ public:
|
||||
|
||||
static std::size_t size()
|
||||
{
|
||||
return Poco::Tuple<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>::length;
|
||||
return static_cast<std::size_t>(Poco::Tuple<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>::length);
|
||||
}
|
||||
|
||||
static void extract(std::size_t pos, TupleRef tuple, TupleConstRef defVal, AbstractExtractor* pExt)
|
||||
@@ -1246,7 +1246,7 @@ public:
|
||||
|
||||
static std::size_t size()
|
||||
{
|
||||
return Poco::Tuple<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>::length;
|
||||
return static_cast<std::size_t>(Poco::Tuple<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>::length);
|
||||
}
|
||||
|
||||
static void extract(std::size_t pos, TupleRef tuple, TupleConstRef defVal, AbstractExtractor* pExt)
|
||||
@@ -1310,7 +1310,7 @@ public:
|
||||
|
||||
static std::size_t size()
|
||||
{
|
||||
return Poco::Tuple<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>::length;
|
||||
return static_cast<std::size_t>(Poco::Tuple<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>::length);
|
||||
}
|
||||
|
||||
static void extract(std::size_t pos, TupleRef tuple, TupleConstRef defVal, AbstractExtractor* pExt)
|
||||
@@ -1371,7 +1371,7 @@ public:
|
||||
|
||||
static std::size_t size()
|
||||
{
|
||||
return Poco::Tuple<T0, T1, T2, T3, T4, T5, T6, T7, T8, NullTypeList>::length;
|
||||
return static_cast<std::size_t>(Poco::Tuple<T0, T1, T2, T3, T4, T5, T6, T7, T8, NullTypeList>::length);
|
||||
}
|
||||
|
||||
static void extract(std::size_t pos, TupleRef tuple, TupleConstRef defVal, AbstractExtractor* pExt)
|
||||
@@ -1428,7 +1428,7 @@ public:
|
||||
|
||||
static std::size_t size()
|
||||
{
|
||||
return Poco::Tuple<T0, T1, T2, T3, T4, T5, T6, T7, NullTypeList>::length;
|
||||
return static_cast<std::size_t>(Poco::Tuple<T0, T1, T2, T3, T4, T5, T6, T7, NullTypeList>::length);
|
||||
}
|
||||
|
||||
static void extract(std::size_t pos, TupleRef tuple, TupleConstRef defVal, AbstractExtractor* pExt)
|
||||
@@ -1483,7 +1483,7 @@ public:
|
||||
|
||||
static std::size_t size()
|
||||
{
|
||||
return Poco::Tuple<T0, T1, T2, T3, T4, T5, T6, NullTypeList>::length;
|
||||
return static_cast<std::size_t>(Poco::Tuple<T0, T1, T2, T3, T4, T5, T6, NullTypeList>::length);
|
||||
}
|
||||
|
||||
static void extract(std::size_t pos, TupleRef tuple, TupleConstRef defVal, AbstractExtractor* pExt)
|
||||
@@ -1535,7 +1535,7 @@ public:
|
||||
|
||||
static std::size_t size()
|
||||
{
|
||||
return Poco::Tuple<T0, T1, T2, T3, T4, T5, NullTypeList>::length;
|
||||
return static_cast<std::size_t>(Poco::Tuple<T0, T1, T2, T3, T4, T5, NullTypeList>::length);
|
||||
}
|
||||
|
||||
static void extract(std::size_t pos, TupleRef tuple, TupleConstRef defVal, AbstractExtractor* pExt)
|
||||
@@ -1584,7 +1584,7 @@ public:
|
||||
|
||||
static std::size_t size()
|
||||
{
|
||||
return Poco::Tuple<T0, T1, T2, T3, T4, NullTypeList>::length;
|
||||
return static_cast<std::size_t>(Poco::Tuple<T0, T1, T2, T3, T4, NullTypeList>::length);
|
||||
}
|
||||
|
||||
static void extract(std::size_t pos, TupleRef tuple, TupleConstRef defVal, AbstractExtractor* pExt)
|
||||
@@ -1630,7 +1630,7 @@ public:
|
||||
|
||||
static std::size_t size()
|
||||
{
|
||||
return Poco::Tuple<T0, T1, T2, T3, NullTypeList>::length;
|
||||
return static_cast<std::size_t>(Poco::Tuple<T0, T1, T2, T3, NullTypeList>::length);
|
||||
}
|
||||
|
||||
static void extract(std::size_t pos, TupleRef tuple, TupleConstRef defVal, AbstractExtractor* pExt)
|
||||
@@ -1673,7 +1673,7 @@ public:
|
||||
|
||||
static std::size_t size()
|
||||
{
|
||||
return Poco::Tuple<T0, T1, T2, NullTypeList>::length;
|
||||
return static_cast<std::size_t>(Poco::Tuple<T0, T1, T2, NullTypeList>::length);
|
||||
}
|
||||
|
||||
static void extract(std::size_t pos, TupleRef tuple, TupleConstRef defVal, AbstractExtractor* pExt)
|
||||
@@ -1713,7 +1713,7 @@ public:
|
||||
|
||||
static std::size_t size()
|
||||
{
|
||||
return Poco::Tuple<T0, T1, NullTypeList>::length;
|
||||
return static_cast<std::size_t>(Poco::Tuple<T0, T1, NullTypeList>::length);
|
||||
}
|
||||
|
||||
static void extract(std::size_t pos, TupleRef tuple, TupleConstRef defVal, AbstractExtractor* pExt)
|
||||
@@ -1750,7 +1750,7 @@ public:
|
||||
|
||||
static std::size_t size()
|
||||
{
|
||||
return Poco::Tuple<T0, NullTypeList>::length;
|
||||
return static_cast<std::size_t>(Poco::Tuple<T0, NullTypeList>::length);
|
||||
}
|
||||
|
||||
static void extract(std::size_t pos, TupleRef tuple, TupleConstRef defVal,
|
||||
@@ -1780,7 +1780,7 @@ public:
|
||||
|
||||
static std::size_t size()
|
||||
{
|
||||
return TypeHandler<K>::size() + TypeHandler<V>::size();
|
||||
return static_cast<std::size_t>(TypeHandler<K>::size() + TypeHandler<V>::size());
|
||||
}
|
||||
|
||||
static void extract(std::size_t pos, std::pair<K, V>& obj, const std::pair<K, V>& defVal, AbstractExtractor* pExt)
|
||||
@@ -1816,7 +1816,7 @@ public:
|
||||
|
||||
static std::size_t size()
|
||||
{
|
||||
return TypeHandler<T>::size();
|
||||
return static_cast<std::size_t>(TypeHandler<T>::size());
|
||||
}
|
||||
|
||||
static void extract(std::size_t pos, Poco::AutoPtr<T>& obj, const Poco::AutoPtr<T>& defVal, AbstractExtractor* pExt)
|
||||
@@ -1858,7 +1858,7 @@ public:
|
||||
|
||||
static std::size_t size()
|
||||
{
|
||||
return TypeHandler<T>::size();
|
||||
return static_cast<std::size_t>(TypeHandler<T>::size());
|
||||
}
|
||||
|
||||
static void extract(std::size_t pos, Poco::SharedPtr<T>& obj, const Poco::SharedPtr<T>& defVal, AbstractExtractor* pExt)
|
||||
|
||||
Reference in New Issue
Block a user