17#ifndef __SOUSCHEF_REGISTRY_H__
18#define __SOUSCHEF_REGISTRY_H__
30 void add(
const std::string &name, std::unique_ptr<T> &&
entry)
32 _content[name] = std::move(
entry);
35 const T &
lookup(
const std::string &name)
const {
return *(_content.at(name)); }
38 std::map<std::string, std::unique_ptr<T>> _content;
const T & lookup(const std::string &name) const
void add(const std::string &name, std::unique_ptr< T > &&entry)
int entry(const int argc, char **argv)
This file provides string <-> number cast helpers.