mirror of
https://github.com/pocoproject/poco.git
synced 2025-07-03 17:17:12 +02:00

fix: remove executable flag and change back to 100644 (was 100755) Signed-off-by: Roger Meier <r.meier@siemens.com>
62 lines
1.1 KiB
C++
62 lines
1.1 KiB
C++
//
|
|
// KillCursorsRequest.h
|
|
//
|
|
// $Id$
|
|
//
|
|
// Library: MongoDB
|
|
// Package: MongoDB
|
|
// Module: KillCursorsRequest
|
|
//
|
|
// Definition of the KillCursorsRequest class.
|
|
//
|
|
// Copyright (c) 2012, Applied Informatics Software Engineering GmbH.
|
|
// and Contributors.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
|
|
#ifndef MongoDB_KillCursorsRequest_INCLUDED
|
|
#define MongoDB_KillCursorsRequest_INCLUDED
|
|
|
|
|
|
#include "Poco/MongoDB/MongoDB.h"
|
|
#include "Poco/MongoDB/RequestMessage.h"
|
|
|
|
|
|
namespace Poco {
|
|
namespace MongoDB {
|
|
|
|
|
|
class MongoDB_API KillCursorsRequest : public RequestMessage
|
|
/// Class for creating an OP_KILL_CURSORS client request. This
|
|
/// request is used to kill cursors, which are still open,
|
|
/// returned by query requests.
|
|
{
|
|
public:
|
|
KillCursorsRequest();
|
|
/// Constructor
|
|
|
|
virtual ~KillCursorsRequest();
|
|
/// Destructor
|
|
|
|
std::vector<Int64>& cursors();
|
|
/// Return the cursors
|
|
|
|
protected:
|
|
void buildRequest(BinaryWriter& writer);
|
|
std::vector<Int64> _cursors;
|
|
};
|
|
|
|
|
|
inline std::vector<Int64>& KillCursorsRequest::cursors()
|
|
{
|
|
return _cursors;
|
|
}
|
|
|
|
|
|
} } // namespace Poco::MongoDB
|
|
|
|
|
|
#endif //MongoDB_KillCursorsRequest_INCLUDED
|