# Poco::MongoDB

# template < typename T >

# class ConcreteElement

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

## Inheritance

Direct Base Classes: Element

All Base Classes: Element

## Member Summary

Member Functions: read, toString, type, value, write

Inherited Functions: name, toString, type

## Constructors

### ConcreteElement

ConcreteElement(
const std::string & name,
const T & init
);

### ConcreteElement

ConcreteElement(
std::string && name,
T && init
);

## Destructor

### ~ConcreteElement

~ConcreteElement() override = default;

## Member Functions

### read

void read(
BinaryReader & reader
) override;

See also: Poco::MongoDB::Element::read()

### toString

[[nodiscard]]
std::string toString(
int indent = 0
) const override;

See also: Poco::MongoDB::Element::toString()

### type

[[nodiscard]]
int type() const override noexcept;

See also: Poco::MongoDB::Element::type()

### value

const T & value() const noexcept;

### write

void write(
BinaryWriter & writer
) const override;

See also: Poco::MongoDB::Element::write()