MongoDB: fixes for style and consistency

This commit is contained in:
Guenter Obiltschnig
2017-02-13 15:53:08 +01:00
parent 9f8146ccaa
commit 1aa6f72085
47 changed files with 642 additions and 514 deletions

View File

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