# Poco::MongoDB

# class JavaScriptCode

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

## Description

Represents JavaScript type in BSON

## Member Summary

Member Functions: getCode, setCode

## Types

### Ptr

typedef SharedPtr < JavaScriptCode > Ptr;

## Constructors

### JavaScriptCode

JavaScriptCode();

Constructor

## Destructor

### ~JavaScriptCode

virtual ~JavaScriptCode();

Destructor

## Member Functions

### getCode

std::string getCode() const;

Get the code

### setCode

void setCode(
const std::string & s
);

Set the code