summaryrefslogtreecommitdiff
path: root/daemon/src/Assembly-inl.h
blob: 5cfd026ab17e648151b83883b40aa6ae2f87f468 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include <string>


template <typename T>
void Assembly::add(const std::string & prefix, T & element)
{
	element.apply(AssemblyContext{*this, prefix});
}


template <typename T>
void AssemblyContext::bind(const std::string & name, const T & function)
{
	assembly.server.bind(prefix + name, function);
}