mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-23 16:52:44 +02:00

* enh(poco): Replace deprecated comments with C++ deprecated attribute. * enh(Poco): Replace some deprecated functionality in Poco sources. (#4426) * enh(Poco): Replace more deprecated functionality in Poco sources. (#4426) * fix(CMake): Variable BUILD_SHARED_LIBS must be defined properly to create valid binaries. * enh: Code improvements done while resolving deprecated functionality (#4426) * Un-deprecate LocalDateTme (#4426) * enh(Poco): Replace usage of deprecated functionality with other functions/classes (#4426) * chore(SSL): temporarily un-deprecate SSL-related functionality (#4426) * chore(SSL): temporarily un-deprecate old MongoDB protocol functionality (#4426) * enh(Poco): Minor Hash improvements (#4426) * enh(Foundation): Compile deprecated hash tests only when POCO_TEST_DEPRECATED is enabled (#4426) * enh(Net): Compile deprecated Socket::select functionality only when POCO_TEST_DEPRECATED is enabled (#4426) * enh(Bonjour): Replace deprecated Socket::select with PollSet (#4426) * enh(Poco): Introduce POCO_DEPRECATED macro to have the ability to disable deprecation warnings in applications (#4426) * test(ODBC): add few asserts to testStoredProcedureDynamicVar * fix(ODBC): rename DynamicAny -> DynamicVar in tests * fix(ODBC): make Dignostics static members inline to prevent explicit instantiation warnings on windows --------- Co-authored-by: Alex Fabijanic <alex@pocoproject.org>
92 lines
2.0 KiB
C++
92 lines
2.0 KiB
C++
//
|
|
// GetMoreRequest.h
|
|
//
|
|
// Library: MongoDB
|
|
// Package: MongoDB
|
|
// Module: GetMoreRequest
|
|
//
|
|
// Definition of the GetMoreRequest class.
|
|
//
|
|
// Copyright (c) 2012, Applied Informatics Software Engineering GmbH.
|
|
// and Contributors.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
|
|
#ifndef MongoDB_GetMoreRequest_INCLUDED
|
|
#define MongoDB_GetMoreRequest_INCLUDED
|
|
|
|
|
|
#include "Poco/MongoDB/MongoDB.h"
|
|
#include "Poco/MongoDB/RequestMessage.h"
|
|
|
|
|
|
namespace Poco {
|
|
namespace MongoDB {
|
|
|
|
//class [[deprecated]] GetMoreRequest;
|
|
class GetMoreRequest;
|
|
|
|
class MongoDB_API GetMoreRequest: public RequestMessage
|
|
/// A GetMoreRequest is used to query the database for more documents in a collection
|
|
/// after a query request is send (OP_GETMORE).
|
|
{
|
|
public:
|
|
GetMoreRequest(const std::string& collectionName, Int64 cursorID);
|
|
/// Creates a GetMoreRequest for the give collection and cursor.
|
|
///
|
|
/// The full collection name is the concatenation of the database
|
|
/// name with the collection name, using a "." for the concatenation. For example,
|
|
/// for the database "foo" and the collection "bar", the full collection name is
|
|
/// "foo.bar". The cursorID has been returned by the response on the query request.
|
|
/// By default the numberToReturn is set to 100.
|
|
|
|
virtual ~GetMoreRequest();
|
|
/// Destroys the GetMoreRequest.
|
|
|
|
Int32 getNumberToReturn() const;
|
|
/// Returns the limit of returned documents.
|
|
|
|
void setNumberToReturn(Int32 n);
|
|
/// Sets the limit of returned documents.
|
|
|
|
Int64 cursorID() const;
|
|
/// Returns the cursor ID.
|
|
|
|
protected:
|
|
void buildRequest(BinaryWriter& writer);
|
|
|
|
private:
|
|
std::string _fullCollectionName;
|
|
Int32 _numberToReturn;
|
|
Int64 _cursorID;
|
|
};
|
|
|
|
|
|
//
|
|
// inlines
|
|
//
|
|
inline Int32 GetMoreRequest::getNumberToReturn() const
|
|
{
|
|
return _numberToReturn;
|
|
}
|
|
|
|
|
|
inline void GetMoreRequest::setNumberToReturn(Int32 n)
|
|
{
|
|
_numberToReturn = n;
|
|
}
|
|
|
|
|
|
inline Int64 GetMoreRequest::cursorID() const
|
|
{
|
|
return _cursorID;
|
|
}
|
|
|
|
|
|
} } // namespace Poco::MongoDB
|
|
|
|
|
|
#endif // MongoDB_GetMoreRequest_INCLUDED
|