BlinkenArea - GitList
Repositories
Blog
Wiki
Blinker
Code
Commits
Branches
Tags
Search
Tree:
f0c104c
Branches
Tags
master
Blinker
src
noarch
Resizer.h
implemented specialized setting files for different data types, simplified input/output stream handling in modules
Stefan Schuermans
commited
f0c104c
at 2011-12-04 20:10:37
Resizer.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 RESIZER_H #define RESIZER_H #include <string> #include <BlinkenLib/BlinkenFrame.h> #include "CallMgr.h" #include "Directory.h" #include "File.h" #include "Format.h" #include "FormatFile.h" #include "InStreamFile.h" #include "Module.h" #include "OutStreamFile.h" #include "StreamMgr.h" #include "StreamRecv.h" namespace Blinker { /// a stream resizer class Resizer: public Module, public StreamRecv { public: /** * @brief constructor * @param[in] callMgr callback manager * @param[in] streamMgr stream manager * @param[in] dirBase base directory */ Resizer(CallMgr &callMgr, StreamMgr &streamMgr, const Directory &dirBase); /// virtual destructor virtual ~Resizer(); private: /// copy constructor disabled Resizer(const Resizer &that); /// assignment operator disabled const Resizer & operator=(const Resizer &that); public: /// check for update of configuration virtual void updateConfig(); /** * @brief set current frame * @param[in] stream stream name * @param[in] pFrame current frame (NULL for none) */ virtual void setFrame(const std::string &stream, stBlinkenFrame *pFrame); protected: /// (re-)get format to resize to void getFormat(); /// send current frame to output stream void sendFrame(); /** * @brief process frame * @param[in] pFrame frame to process (NULL for none) */ void procFrame(stBlinkenFrame *pFrame); protected: InStreamFile m_fileInStream; ///< input stream name file FormatFile m_fileFormat; ///< format file OutStreamFile m_fileOutStream; ///< output stream name file }; // class Resizer } // namespace Blinker #endif // #ifndef RESIZER_H