diff options
author | Henri Herscher <henri@oreka.org> | 2007-07-30 14:32:19 +0000 |
---|---|---|
committer | Henri Herscher <henri@oreka.org> | 2007-07-30 14:32:19 +0000 |
commit | 72fda6ebe7d6245b57178441c6355eb9d2402747 (patch) | |
tree | d5683a93b1e4d0efee26995caeeccd55faae0d8c /orkbasecxx/Reporting.h | |
parent | 483b0c94e1754d01c934dc3421527fc6eefa3ebd (diff) |
Added non-lookback recording mode.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@458 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkbasecxx/Reporting.h')
-rw-r--r-- | orkbasecxx/Reporting.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/orkbasecxx/Reporting.h b/orkbasecxx/Reporting.h new file mode 100644 index 0000000..7f7778d --- /dev/null +++ b/orkbasecxx/Reporting.h @@ -0,0 +1,64 @@ +/* + * Oreka -- A media capture and retrieval platform + * + * Copyright (C) 2005, orecx LLC + * + * http://www.orecx.com + * + * This program is free software, distributed under the terms of + * the GNU General Public License. + * Please refer to http://www.gnu.org/copyleft/gpl.html + * + */ + +#ifndef __REPORTING_H__ +#define __REPORTING_H__ + +#include "ThreadSafeQueue.h" +#include "TapeProcessor.h" +#include "AudioTape.h" + +class DLL_IMPORT_EXPORT_ORKBASE Reporting : public TapeProcessor +{ +public: + static void Initialize(); + static Reporting* Instance(); + + CStdString __CDECL__ GetName(); + TapeProcessorRef __CDECL__ Instanciate(); + void __CDECL__ AddAudioTape(AudioTapeRef& audioTapeRef); + void __CDECL__ SkipTapes(int number); + + //static Reporting* GetInstance(); + static void ThreadHandler(void *args); + +private: + Reporting(); + bool IsSkip(); + + //static Reporting m_reportingSingleton; + static TapeProcessorRef m_singleton; + + ThreadSafeQueue<AudioTapeRef> m_audioTapeQueue; + bool m_queueFullError; + int numTapesToSkip; + ACE_Thread_Mutex m_mutex; +}; + +class DLL_IMPORT_EXPORT_ORKBASE ReportingSkipTapeMsg : public SyncMessage +{ +public: + ReportingSkipTapeMsg(); + + void Define(Serializer* s); + inline void Validate() {}; + + CStdString GetClassName(); + ObjectRef NewInstance(); + ObjectRef Process(); + + int m_number; +}; + +#endif + |