145f2b998a952e2e24121330189e091d84def84b
Stefan Schuermans implemnted operator connect...

Stefan Schuermans authored 12 years ago

src/noarch/OpSplitterExtension.cpp  1) /* Blinker
Stefan Schuermans update copyright years

Stefan Schuermans authored 10 years ago

src/noarch/OpSplitterExtension.cpp  2)    Copyright 2011-2014 Stefan Schuermans <stefan@blinkenarea.org>
Stefan Schuermans implemnted operator connect...

Stefan Schuermans authored 12 years ago

src/noarch/OpSplitterExtension.cpp  3)    Copyleft GNU public license - http://www.gnu.org/copyleft/gpl.html
src/noarch/OpSplitterExtension.cpp  4)    a blinkenarea.org project */
src/noarch/OpSplitterExtension.cpp  5) 
src/noarch/OpSplitterExtension.cpp  6) #include <string>
src/noarch/OpSplitterExtension.cpp  7) 
src/noarch/OpSplitterExtension.cpp  8) #include "Directory.h"
src/noarch/OpSplitterExtension.cpp  9) #include "File.h"
src/noarch/OpSplitterExtension.cpp 10) #include "Module.h"
src/noarch/OpSplitterExtension.cpp 11) #include "NameFile.h"
src/noarch/OpSplitterExtension.cpp 12) #include "OpSplitter.h"
src/noarch/OpSplitterExtension.cpp 13) #include "OpSplitterExtension.h"
src/noarch/OpSplitterExtension.cpp 14) 
src/noarch/OpSplitterExtension.cpp 15) namespace Blinker {
src/noarch/OpSplitterExtension.cpp 16) 
src/noarch/OpSplitterExtension.cpp 17) /**
src/noarch/OpSplitterExtension.cpp 18)  * @brief constructor
src/noarch/OpSplitterExtension.cpp 19)  * @param[in] opSplitter owning operator connection splitter object
src/noarch/OpSplitterExtension.cpp 20)  * @param[in] name extension name (i.e. phone number)
src/noarch/OpSplitterExtension.cpp 21)  * @param[in] dirBase base directory
src/noarch/OpSplitterExtension.cpp 22)  */
src/noarch/OpSplitterExtension.cpp 23) OpSplitter::Extension::Extension(OpSplitter &opSplitter,
src/noarch/OpSplitterExtension.cpp 24)                                  const std::string &name,
src/noarch/OpSplitterExtension.cpp 25)                                  const Directory &dirBase):
src/noarch/OpSplitterExtension.cpp 26)   m_opSplitter(opSplitter),
src/noarch/OpSplitterExtension.cpp 27)   m_name(name),
Stefan Schuermans rename "module" to "target"

Stefan Schuermans authored 5 years ago

src/common/OpSplitterExtension.cpp 28)   m_fileTarget(dirBase.getFile("target"))
Stefan Schuermans implemnted operator connect...

Stefan Schuermans authored 12 years ago

src/noarch/OpSplitterExtension.cpp 29) {
src/noarch/OpSplitterExtension.cpp 30)   // set up
src/noarch/OpSplitterExtension.cpp 31)   name2number(m_name, m_number);
Stefan Schuermans rename "module" to "target"

Stefan Schuermans authored 5 years ago

src/common/OpSplitterExtension.cpp 32)   getTarget();
Stefan Schuermans implemnted operator connect...

Stefan Schuermans authored 12 years ago

src/noarch/OpSplitterExtension.cpp 33) }
src/noarch/OpSplitterExtension.cpp 34) 
src/noarch/OpSplitterExtension.cpp 35) /// destructor
src/noarch/OpSplitterExtension.cpp 36) OpSplitter::Extension::~Extension()
src/noarch/OpSplitterExtension.cpp 37) {
src/noarch/OpSplitterExtension.cpp 38)   // remove extension from extension map
src/noarch/OpSplitterExtension.cpp 39)   if (m_addedToMap)
src/noarch/OpSplitterExtension.cpp 40)     m_opSplitter.m_extMap.erase(m_number);
src/noarch/OpSplitterExtension.cpp 41) }
src/noarch/OpSplitterExtension.cpp 42) 
src/noarch/OpSplitterExtension.cpp 43) /// check for update of configuration
src/noarch/OpSplitterExtension.cpp 44) void OpSplitter::Extension::updateConfig()
src/noarch/OpSplitterExtension.cpp 45) {
Stefan Schuermans rename "module" to "target"

Stefan Schuermans authored 5 years ago

src/common/OpSplitterExtension.cpp 46)   // target file was modified -> re-get target operator interface to connect to
src/common/OpSplitterExtension.cpp 47)   if (m_fileTarget.checkModified())
src/common/OpSplitterExtension.cpp 48)     getTarget();
Stefan Schuermans implemnted operator connect...

Stefan Schuermans authored 12 years ago

src/noarch/OpSplitterExtension.cpp 49) }
src/noarch/OpSplitterExtension.cpp 50) 
Stefan Schuermans rename "module" to "target"

Stefan Schuermans authored 5 years ago

src/common/OpSplitterExtension.cpp 51) /// (re-)get target operator interface to connect to
src/common/OpSplitterExtension.cpp 52) void OpSplitter::Extension::getTarget()
Stefan Schuermans implemnted operator connect...

Stefan Schuermans authored 12 years ago

src/noarch/OpSplitterExtension.cpp 53) {
src/noarch/OpSplitterExtension.cpp 54)   // remove old extension information from extension map
src/noarch/OpSplitterExtension.cpp 55)   if (m_addedToMap) {
src/noarch/OpSplitterExtension.cpp 56)     m_opSplitter.m_extMap.erase(m_number);
src/noarch/OpSplitterExtension.cpp 57)     m_addedToMap = false;
src/noarch/OpSplitterExtension.cpp 58)   }
src/noarch/OpSplitterExtension.cpp 59) 
Stefan Schuermans rename "module" to "target"

Stefan Schuermans authored 5 years ago

src/common/OpSplitterExtension.cpp 60)   // get new target operator interface name from file
src/common/OpSplitterExtension.cpp 61)   m_fileTarget.update();
Stefan Schuermans implemnted operator connect...

Stefan Schuermans authored 12 years ago

src/noarch/OpSplitterExtension.cpp 62) 
src/noarch/OpSplitterExtension.cpp 63)   // add new module name to extension map
Stefan Schuermans rename "module" to "target"

Stefan Schuermans authored 5 years ago

src/common/OpSplitterExtension.cpp 64)   if (m_fileTarget.m_valid) {
Stefan Schuermans implemnted operator connect...

Stefan Schuermans authored 12 years ago

src/noarch/OpSplitterExtension.cpp 65)     if (m_opSplitter.m_extMap.find(m_number) == m_opSplitter.m_extMap.end()) {
Stefan Schuermans rename "module" to "target"

Stefan Schuermans authored 5 years ago

src/common/OpSplitterExtension.cpp 66)       m_opSplitter.m_extMap[m_number] = m_fileTarget.m_obj.m_str;