Poco::MongoDB

class BSONWriter

File Information

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

Description

Class for writing BSON using a Poco::BinaryWriter.

Member Summary

Member Functions: write, writeCString

Constructors

BSONWriter inline

BSONWriter(
    const Poco::BinaryWriter & writer
);

Creates the BSONWriter.

Destructor

~BSONWriter virtual inline

virtual ~BSONWriter();

Destroys the BSONWriter.

Member Functions

write inline

template < typename T > void write(
    T & t
);

Writes the value to the writer. The default implementation uses the << operator. Special types can write their own version.

writeCString inline

void writeCString(
    const std::string & value
);

Writes a cstring to the writer. A cstring is a string terminated a null character.

Securely control IoT edge devices from anywhere   Connect a Device