Files
wlan-cloud-lib-poco/SQL/include/Poco/SQL/Position.h
Aleksandar Fabijanic b49ac67225 Data2sql (#2070)
* remove leftover progen files

* remove Data sources and turn headers into forwards

* add SQL files #2059

* Data2sql: adjust Travis, AppVeyor & Makefiles (#2069)

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* fix header forwarding

* Data2sql: Fixes for complete Travis CI success (#2071)

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Restore DataFormatException

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* construct RowFilter from RecordSet reference instead of pointer

* pass Container ref instead of ptr to Column

* elimitate g++ warnings

* SQL: remove raw pointers from interfaces #2094; add constness and move ops where appropriate

* tidy up Postgres

* ODBC fixes
2018-01-18 11:29:28 -06:00

78 lines
1.1 KiB
C++

//
// PositionExtraction.h
//
// Library: Data
// Package: DataCore
// Module: Position
//
// Definition of the PositionExtraction class.
//
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef SQL_Position_INCLUDED
#define SQL_Position_INCLUDED
#include "Poco/SQL/Limit.h"
namespace Poco {
namespace SQL {
class Poco_SQL_API Position
/// Utility class wrapping unsigned integer. Used to
/// indicate the recordset position in batch SQL statements.
{
public:
typedef Poco::UInt32 Type;
Position(Type value);
/// Creates the Position.
~Position();
/// Destroys the Position.
Type value() const;
/// Returns the position value.
private:
Position();
Type _value;
};
///
/// inlines
///
inline Position::Type Position::value() const
{
return _value;
}
namespace Keywords {
template <typename T>
inline Position from(const T& value)
/// Convenience function for creation of position.
{
return Position(value);
}
} // namespace Keywords
} } // namespace Poco::SQL
#endif // Data_Position_INCLUDED