BlinkenArea - GitList
Repositories
Blog
Wiki
Blinker
Code
Commits
Branches
Tags
Search
Tree:
f670ca0
Branches
Tags
master
Blinker
src
common
OpSplitterExtension.h
rename noarch (misnormer) to common
Stefan Schuermans
commited
f670ca0
at 2014-01-03 12:06:24
OpSplitterExtension.h
Blame
History
Raw
/* Blinker Copyright 2011-2014 Stefan Schuermans <stefan@blinkenarea.org> Copyleft GNU public license - http://www.gnu.org/copyleft/gpl.html a blinkenarea.org project */ #ifndef BLINKER_OPSPLITTEREXTENSION_H #define BLINKER_OPSPLITTEREXTENSION_H #include <string> #include "Directory.h" #include "Module.h" #include "NameFile.h" #include "OpSplitter.h" namespace Blinker { /// extension of operator connection splitter class OpSplitter::Extension { public: /** * @brief constructor * @param[in] opSplitter owning operator connection splitter object * @param[in] name extension name (i.e. number) * @param[in] dirBase base directory */ Extension(OpSplitter &opSplitter, const std::string &name, const Directory &dirBase); /// destructor ~Extension(); private: /// copy constructor disabled Extension(const Extension &that); /// assignment operator disabled const Extension & operator=(const Extension &that); public: /// check for update of configuration void updateConfig(); protected: /// (re-)get module to connect to void getModule(); /** * @brief convert extension name to extension number * @param[in] name extension name * @param[out] number extension number (name without all non-digits) */ static void name2number(const std::string &name, std::string &number); protected: OpSplitter &m_opSplitter; ///< owning operator connection splitter object std::string m_name; ///< extension name (i.e. number) NameFile m_fileModule; ///< file containing module to connect to std::string m_number; ///< number of extension bool m_addedToMap; ///< if extension number could be added to map }; // class OpSplitter::Extension } // namespace Blinker #endif // #ifndef BLINKER_OPSPLITTEREXTENSION_H