# Bundle.hpp

This File On Github
Ask A Question

API: latest
module: oatpp
#include "oatpp/core/data/Bundle.hpp"

# Bundle

Bundle of auxiliary data.

namespace oatpp { namespace data { 
  class Bundle {}
}}

# Methods

Return Type Name Summary
[none] Bundle Default constructor.
[none] ~Bundle Default virtual destructor.
void put Put data by key.
WrapperType get Get data by key.
const std::unordered_map<oatpp::String, oatpp::Void>& getAll Get map of data stored in the bundle.

# Bundle::Bundle

Default constructor.

Bundle() = default

# Bundle::~Bundle

Default virtual destructor.

virtual ~Bundle() = default

# Bundle::put

Put data by key.

  • @param key
  • @param polymorph

void put(const oatpp::String& key, const oatpp::Void& polymorph)

# Bundle::get

Get data by key.

  • @tparam WrapperType
  • @param key
  • @return

template<typename WrapperType>
WrapperType get(const oatpp::String& key) const

# Bundle::getAll

Get map of data stored in the bundle.

  • @return

const std::unordered_map<oatpp::String, oatpp::Void>& getAll() const