poco/MongoDB/include/Poco/MongoDB/KillCursorsRequest.h
Roger Meier b0581433a7 LICENSE: add info about SPDX-License-Identifier usage and use it
fix: remove executable flag and change back to 100644 (was 100755)

Signed-off-by: Roger Meier <r.meier@siemens.com>
2014-05-14 08:38:09 +02:00

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