CLightDriver_TPE3000::CLightDriver_TPE3000(boost::asio::io_service & io_service)
{
	LedHandle_ = -1;

	for(int i=0;i<MAX_LED_NUM;i++)
	{
		led_timers_.push_back(timer_ptr(new boost::asio::deadline_timer(io_service)));
	}
}
Esempio n. 2
0
bool Application::InitContextBasics()
{
	GetContext().p_timer = timer_ptr(new Timer());
	GetContext().p_fileSystem = new FileSystem(m_argv[0]);
	GetContext().p_settingsManager = new ApplicationSettingsManager();
	GetContext().p_logger = new Logger(0);
	GetContext().p_window = new ApplicationWindow();
	GetContext().p_resourceManager = new ResourceManager();

	return true;
}