VS 71,80,90 projects, style edits

This commit is contained in:
Aleksandar Fabijanic
2013-03-11 22:49:54 -05:00
parent ea57bf8207
commit ff0e439aa5
50 changed files with 5329 additions and 405 deletions

View File

@@ -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