C++1x-ification

This commit is contained in:
Günter Obiltschnig 2020-01-25 14:29:54 +01:00
parent 850f22b098
commit 09028eea15
8 changed files with 26 additions and 26 deletions

View File

@ -31,7 +31,7 @@ class MongoDB_API Array: public Document
/// This class represents a BSON Array. /// This class represents a BSON Array.
{ {
public: public:
typedef SharedPtr<Array> Ptr; using Ptr = SharedPtr<Array>;
Array(); Array();
/// Creates an empty Array. /// Creates an empty Array.

View File

@ -38,7 +38,7 @@ class MongoDB_API Binary
/// A Binary stores its data in a Poco::Buffer<unsigned char>. /// A Binary stores its data in a Poco::Buffer<unsigned char>.
{ {
public: public:
typedef SharedPtr<Binary> Ptr; using Ptr = SharedPtr<Binary>;
Binary(); Binary();
/// Creates an empty Binary with subtype 0. /// Creates an empty Binary with subtype 0.

View File

@ -37,7 +37,7 @@ class MongoDB_API Connection
/// for more information on the wire protocol. /// for more information on the wire protocol.
{ {
public: public:
typedef Poco::SharedPtr<Connection> Ptr; using Ptr = Poco::SharedPtr<Connection>;
class MongoDB_API SocketFactory class MongoDB_API SocketFactory
{ {

View File

@ -52,8 +52,8 @@ class MongoDB_API Document
/// Represents a MongoDB (BSON) document. /// Represents a MongoDB (BSON) document.
{ {
public: public:
typedef SharedPtr<Document> Ptr; using Ptr = SharedPtr<Document>;
typedef std::vector<Document::Ptr> Vector; using Vector = std::vector<Document::Ptr>;
Document(); Document();
/// Creates an empty Document. /// Creates an empty Document.

View File

@ -43,7 +43,7 @@ class MongoDB_API Element
/// Represents an Element of a Document or an Array. /// Represents an Element of a Document or an Array.
{ {
public: public:
typedef Poco::SharedPtr<Element> Ptr; using Ptr = Poco::SharedPtr<Element>;
explicit Element(const std::string& name); explicit Element(const std::string& name);
/// Creates the Element with the given name. /// Creates the Element with the given name.
@ -78,7 +78,7 @@ inline const std::string& Element::name() const
} }
typedef std::list<Element::Ptr> ElementSet; using ElementSet = std::list<Element::Ptr>;
template<typename T> template<typename T>
@ -259,7 +259,7 @@ inline void BSONWriter::write<Timestamp>(Timestamp& from)
} }
typedef Nullable<unsigned char> NullValue; using NullValue = Nullable<unsigned char>;
// BSON Null Value // BSON Null Value

View File

@ -33,7 +33,7 @@ class MongoDB_API JavaScriptCode
/// Represents JavaScript type in BSON. /// Represents JavaScript type in BSON.
{ {
public: public:
typedef SharedPtr<JavaScriptCode> Ptr; using Ptr = SharedPtr<JavaScriptCode>;
JavaScriptCode(); JavaScriptCode();
/// Creates an empty JavaScriptCode object. /// Creates an empty JavaScriptCode object.

View File

@ -42,7 +42,7 @@ class MongoDB_API ObjectId
/// as its value. /// as its value.
{ {
public: public:
typedef SharedPtr<ObjectId> Ptr; using Ptr = SharedPtr<ObjectId>;
explicit ObjectId(const std::string& id); explicit ObjectId(const std::string& id);
/// Creates an ObjectId from a string. /// Creates an ObjectId from a string.

View File

@ -31,7 +31,7 @@ class MongoDB_API RegularExpression
/// Represents a regular expression in BSON format. /// Represents a regular expression in BSON format.
{ {
public: public:
typedef SharedPtr<RegularExpression> Ptr; using Ptr = SharedPtr<RegularExpression>;
RegularExpression(); RegularExpression();
/// Creates an empty RegularExpression. /// Creates an empty RegularExpression.