Library: MongoDB
Package: MongoDB
Header: Poco/MongoDB/ResponseMessage.h
Class that represents a response (OP_REPLY) from MongoDB
Direct Base Classes: Message
All Base Classes: Message
Member Functions: clear, count, cursorID, documents, empty, hasDocuments, read
Inherited Functions: header, messageLength
Constructor
virtual ~ResponseMessage();
Destructor
void clear();
Clears the response
size_t count() const;
Returns the number of documents in the response
Int64 cursorID() const;
Returns the cursor id
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