Synopsis - Cross-Reference
File: /src/Synopsis/Python/Kit.hh1// 2// Copyright (C) 2004 Stefan Seefeld 3// All rights reserved. 4// Licensed to the public under the terms of the GNU LGPL (>= 2), 5// see the file COPYING for details. 6// 7 8#ifndef _Synopsis_Python_Kit_hh 9#define _Synopsis_Python_Kit_hh 10 11#include <Synopsis/Python/Module.hh> 12 13namespace Synopsis 14{ 15namespace Python 16{ 17 18class Kit : public Module 19{ 20public: 21 Kit(const std::string &name) : Module(Module::import(name)) {} 22 23 template <typename T> 24 T create(const char *name, const Tuple &t = Tuple(), const Dict &d = Dict()) 25 { return dict().get(name)(t, d);} 26}; 27 28} 29} 30 31#endif