Poco::MongoDB

class Element

Library: MongoDB
Package: MongoDB
Header: Poco/MongoDB/Element.h

Description

Represents an element of a Document or an Array

Inheritance

Known Derived Classes: ConcreteElement

Member Summary

Member Functions: name, toString, type

Types

Ptr

typedef Poco::SharedPtr < Element > Ptr;

Constructors

Element

Element(
    const std::string & name
);

Constructor

Destructor

~Element virtual

virtual ~Element();

Destructor

Member Functions

name inline

std::string name() const;

Returns the name of the element

toString virtual

virtual std::string toString(
    int indent = 0
) const = 0;

Returns a string representation of the element.

type virtual

virtual int type() const = 0;

Returns the MongoDB type of the element.