/* Blinker
Copyright 2011-2019 Stefan Schuermans <stefan@blinkenarea.org>
Copyleft GNU public license - http://www.gnu.org/copyleft/gpl.html
a blinkenarea.org project */
#include <map>
#include <string>
#include "BoolFile.h"
#include "Directory.h"
#include "File.h"
#include "ListTracker.h"
#include "ListTracker_impl.h"
#include "Mgrs.h"
#include "Module.h"
#include "NameFile.h"
#include "OpConn.h"
#include "OpConnIf.h"
#include "OpMgr.h"
#include "OpSplitter.h"
#include "OpSplitterExtension.h"
#include "SettingFile.h"
#include "Time.h"
#include "TimeCallee.h"
#include "UIntFile.h"
namespace Blinker {
/**
* @brief constructor
* @param[in] name module name
* @param[in] mgrs managers
* @param[in] dirBase base directory
*/
OpSplitter::OpSplitter(const std::string &name, Mgrs &mgrs,
const Directory &dirBase):
Module(name, mgrs, dirBase),
m_fileSound(dirBase.getFile("sound")),
m_fileMaxConn(dirBase.getFile("maxconn")),
m_fileSingle(dirBase.getFile("single")),
m_extListTracker(*this, dirBase.getSubdir("extensions"))
{
// load extensions
m_extListTracker.init();
// open operator connection interface
m_mgrs.m_opMgr.open(m_name, this);
}
/// virtual destructor
OpSplitter::~OpSplitter()