Library: MongoDB
Package: MongoDB
Header: Poco/MongoDB/Element.h
Description
Inheritance
Known Derived Classes: ConcreteElement
Member Summary
Member Functions: name, toString, type
Types Aliases
Ptr
using Ptr = Poco::SharedPtr < Element >;
Constructors
Element
explicit Element(
const std::string & name
);
Creates the Element with the given name.
Element
explicit Element(
std::string && name
);
Creates the Element with the given name (move semantics).
Destructor
~Element
virtual ~Element();
Destructor
Member Functions
name
[[nodiscard]]
const std::string & name() const noexcept;
Returns the name of the element.
toString
[[nodiscard]]
virtual std::string toString(
int indent = 0
) const = 0;
Returns a string representation of the element.
type
[[nodiscard]]
virtual int type() const noexcept = 0;
Returns the MongoDB type of the element.