File: Util.h

package info (click to toggle)
exadrums 0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 5,728 kB
  • sloc: cpp: 2,880; xml: 165; makefile: 76
file content (28 lines) | stat: -rw-r--r-- 388 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * Util.h
 *
 *  Created on: 20 Jun 2018
 *      Author: jeremy
 */

#ifndef SOURCE_UTIL_UTIL_H_
#define SOURCE_UTIL_UTIL_H_

#include <string>

namespace Util
{

	template <typename T, typename B>
	inline T* GetWidget(B& builder, const std::string& name)
	{
		T* widget = nullptr;
		builder->get_widget(name.data(), widget);

		return widget;
	}


}

#endif /* SOURCE_UTIL_UTIL_H_ */