mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 12:18:01 +01:00
MongoDB: fixes for style and consistency
This commit is contained in:
@@ -29,16 +29,17 @@ namespace MongoDB {
|
||||
|
||||
|
||||
class MongoDB_API BSONReader
|
||||
/// Class for reading BSON from a Poco::BinaryReader
|
||||
/// Class for reading BSON using a Poco::BinaryReader
|
||||
{
|
||||
public:
|
||||
BSONReader(const Poco::BinaryReader& reader) : _reader(reader)
|
||||
/// Constructor
|
||||
BSONReader(const Poco::BinaryReader& reader):
|
||||
_reader(reader)
|
||||
/// Creates the BSONReader using the given BinaryWriter.
|
||||
{
|
||||
}
|
||||
|
||||
virtual ~BSONReader()
|
||||
/// Destructor
|
||||
/// Destroys the BSONReader.
|
||||
{
|
||||
}
|
||||
|
||||
@@ -55,11 +56,13 @@ public:
|
||||
/// A cstring is a string terminated with a 0x00.
|
||||
|
||||
private:
|
||||
|
||||
Poco::BinaryReader _reader;
|
||||
};
|
||||
|
||||
|
||||
//
|
||||
// inlines
|
||||
//
|
||||
inline std::string BSONReader::readCString()
|
||||
{
|
||||
std::string val;
|
||||
@@ -80,4 +83,4 @@ inline std::string BSONReader::readCString()
|
||||
} } // namespace Poco::MongoDB
|
||||
|
||||
|
||||
#endif // MongoDB_BSONReader_INCLUDED
|
||||
#endif // MongoDB_BSONReader_INCLUDED
|
||||
|
||||
Reference in New Issue
Block a user