factory.cpp

来自「彩信浏览器」· C++ 代码 · 共 79 行

CPP
79
字号
// This file is part of Ambulant Player, www.ambulantplayer.org.//// Copyright (C) 2003-2007 Stichting CWI, // Kruislaan 413, 1098 SJ Amsterdam, The Netherlands.//// Ambulant Player is free software; you can redistribute it and/or modify// it under the terms of the GNU Lesser General Public License as published by// the Free Software Foundation; either version 2.1 of the License, or// (at your option) any later version.//// Ambulant Player is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the// GNU Lesser General Public License for more details.//// You should have received a copy of the GNU Lesser General Public License// along with Ambulant Player; if not, write to the Free Software// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA#include "ambulant/common/factory.h"using namespace ambulant;using namespace common;factories::factories():	m_playable_factory(NULL),	m_window_factory(NULL),	m_datasource_factory(NULL),	m_parser_factory(NULL),	m_node_factory(NULL){}factories::~factories(){	delete m_playable_factory;	// delete m_window_factory; Owned by parent	delete m_datasource_factory;	// delete m_parser_factory; singleton	// delete m_node_factory; singleton}voidfactories::init_factories(){	init_playable_factory();	init_window_factory();	init_datasource_factory();	init_parser_factory();	init_node_factory();}voidfactories::init_playable_factory(){}voidfactories::init_window_factory(){}voidfactories::init_datasource_factory(){}voidfactories::init_parser_factory(){}voidfactories::init_node_factory(){	m_node_factory = lib::get_builtin_node_factory();}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?