BlinkenArea - GitList
Repositories
Blog
Wiki
Blinker
Code
Commits
Branches
Tags
Search
Tree:
587ae25
Branches
Tags
master
Blinker
src
noarch
Priority.h
namespace for preprocessor constants
Stefan Schuermans
commited
587ae25
at 2011-12-14 20:23:49
Priority.h
Blame
History
Raw
/* Blinker Copyright 2011 Stefan Schuermans <stefan@blinkenarea.org> Copyleft GNU public license - http://www.gnu.org/copyleft/gpl.html a blinkenarea.org project */ #ifndef BLINKER_PRIORITY_H #define BLINKER_PRIORITY_H #include <list> #include <string> #include <BlinkenLib/BlinkenFrame.h> #include "CallMgr.h" #include "Directory.h" #include "File.h" #include "ListTracker.h" #include "Module.h" #include "OutStreamFile.h" #include "StreamMgr.h" namespace Blinker { /// a priority based stream selector class Priority: public Module { protected: /// input to priority based selector class Input; /// input list tracker typedef ListTracker<Priority, Input, Directory> InListTracker; /// input list iterator typedef InListTracker::ListRevIt InListIt; public: /** * @brief constructor * @param[in] callMgr callback manager * @param[in] streamMgr stream manager * @param[in] dirBase base directory */ Priority(CallMgr &callMgr, StreamMgr &streamMgr, const Directory &dirBase); /// virtual destructor virtual ~Priority(); private: /// copy constructor disabled Priority(const Priority &that); /// assignment operator disabled const Priority & operator=(const Priority &that); public: /// check for update of configuration virtual void updateConfig(); protected: /** * @brief select specific input (called by inputs) * @param[in] input input to select */ void select(const Input *pInput); /// select lower priority input (called by inputs) void selectLower(); /// send current frame to output stream void curFrame(); protected: OutStreamFile m_fileOutStream; ///< output stream name file InListTracker m_inListTracker; ///< input list tracker InListIt m_itCurIn; ///< current input }; // class Priority } // namespace Blinker #endif // #ifndef BLINKER_PRIORITY_H