mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-21 14:44:36 +01:00
b0581433a7
fix: remove executable flag and change back to 100644 (was 100755) Signed-off-by: Roger Meier <r.meier@siemens.com>
51 lines
908 B
C++
51 lines
908 B
C++
//
|
|
// GetMoreRequest.cpp
|
|
//
|
|
// $Id$
|
|
//
|
|
// Library: MongoDB
|
|
// Package: MongoDB
|
|
// Module: GetMoreRequest
|
|
//
|
|
// Implementation of the GetMoreRequest class.
|
|
//
|
|
// Copyright (c) 2012, Applied Informatics Software Engineering GmbH.
|
|
// and Contributors.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
|
|
#include "Poco/MongoDB/GetMoreRequest.h"
|
|
#include "Poco/MongoDB/Element.h"
|
|
|
|
|
|
namespace Poco {
|
|
namespace MongoDB {
|
|
|
|
|
|
GetMoreRequest::GetMoreRequest(const std::string& collectionName, Int64 cursorID)
|
|
: RequestMessage(MessageHeader::GetMore),
|
|
_fullCollectionName(collectionName),
|
|
_numberToReturn(100),
|
|
_cursorID(cursorID)
|
|
{
|
|
}
|
|
|
|
|
|
GetMoreRequest::~GetMoreRequest()
|
|
{
|
|
}
|
|
|
|
|
|
void GetMoreRequest::buildRequest(BinaryWriter& writer)
|
|
{
|
|
writer << 0; // 0 - reserved for future use
|
|
BSONWriter(writer).writeCString(_fullCollectionName);
|
|
writer << _numberToReturn;
|
|
writer << _cursorID;
|
|
}
|
|
|
|
|
|
} } // namespace Poco::MongoDB
|