mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-23 04:31:31 +01:00
VS 71,80,90 projects, style edits
This commit is contained in:
@@ -35,15 +35,17 @@
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
#ifndef _MongoDB_ResponseMessage_included
|
||||
#define _MongoDB_ResponseMessage_included
|
||||
|
||||
#ifndef MongoDB_ResponseMessage_INCLUDED
|
||||
#define MongoDB_ResponseMessage_INCLUDED
|
||||
|
||||
|
||||
#include "Poco/MongoDB/MongoDB.h"
|
||||
#include "Poco/MongoDB/Message.h"
|
||||
#include "Poco/MongoDB/Document.h"
|
||||
|
||||
#include <istream>
|
||||
|
||||
|
||||
namespace Poco {
|
||||
namespace MongoDB {
|
||||
|
||||
@@ -55,53 +57,35 @@ public:
|
||||
ResponseMessage();
|
||||
/// Constructor
|
||||
|
||||
|
||||
virtual ~ResponseMessage();
|
||||
/// Destructor
|
||||
|
||||
|
||||
Int64 cursorID() const;
|
||||
/// Returns the cursor id
|
||||
|
||||
|
||||
void clear();
|
||||
/// Clears the response
|
||||
|
||||
|
||||
size_t count() const;
|
||||
/// Returns the number of documents in the response
|
||||
|
||||
|
||||
Document::Vector& documents();
|
||||
/// Returns the retrieved documents
|
||||
|
||||
|
||||
bool empty() const;
|
||||
/// Returns true when the response doesn't contain any documents
|
||||
|
||||
|
||||
bool hasDocuments() const;
|
||||
/// Returns true when there is at least one document
|
||||
|
||||
|
||||
void read(std::istream& istr);
|
||||
/// Reads the response from the stream
|
||||
|
||||
|
||||
private:
|
||||
|
||||
Int32 _responseFlags;
|
||||
|
||||
|
||||
Int64 _cursorID;
|
||||
|
||||
|
||||
Int32 _startingFrom;
|
||||
|
||||
|
||||
Int32 _numberReturned;
|
||||
|
||||
|
||||
Document::Vector _documents;
|
||||
};
|
||||
|
||||
@@ -135,6 +119,7 @@ inline bool ResponseMessage::hasDocuments() const
|
||||
return _documents.size() > 0;
|
||||
}
|
||||
|
||||
}} // Namespace Poco::MongoDB
|
||||
} } // namespace Poco::MongoDB
|
||||
|
||||
#endif //_MongoDB_ResponseMessage_included
|
||||
|
||||
#endif //MongoDB_ResponseMessage_INCLUDED
|
||||
|
||||
Reference in New Issue
Block a user