diff options
author | Gerald Begumisa <ben_g@users.sourceforge.net> | 2007-09-08 14:46:22 +0000 |
---|---|---|
committer | Gerald Begumisa <ben_g@users.sourceforge.net> | 2007-09-08 14:46:22 +0000 |
commit | 18dd3cfeaa01293e3a575b53acc633955ce738cd (patch) | |
tree | 079d93211471489cb37fd6747cc820174c7aab26 /orkbasecxx/TapeFileNaming.h | |
parent | 0d8f72030d5b7ef0462f025e401c9a480b8cf2a0 (diff) |
Added new TapeFileNaming tape processor, corrected it not to modify the MCF file
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@486 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkbasecxx/TapeFileNaming.h')
-rw-r--r-- | orkbasecxx/TapeFileNaming.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/orkbasecxx/TapeFileNaming.h b/orkbasecxx/TapeFileNaming.h new file mode 100644 index 0000000..199dc13 --- /dev/null +++ b/orkbasecxx/TapeFileNaming.h @@ -0,0 +1,53 @@ +/* + * 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 __TAPEFILENAMING_H__ +#define __TAPEFILENAMING_H__ 1 + +#include "ThreadSafeQueue.h" +#include "TapeProcessor.h" +#include "AudioTape.h" +#include "ace/Thread_Mutex.h" +#include <map> + +class TapeFileNaming; +typedef boost::shared_ptr<TapeFileNaming> TapeFileNamingRef; + +/** + * This tape processor handles the naming of audio files + */ +class DLL_IMPORT_EXPORT_ORKBASE TapeFileNaming : public TapeProcessor +{ +public: + static void Initialize(); + + CStdString __CDECL__ GetName(); + TapeProcessorRef __CDECL__ Instanciate(); + void __CDECL__ AddAudioTape(AudioTapeRef& audioTapeRef); + + static void ThreadHandler(void *args); + + void SetQueueSize(int size); + +private: + TapeFileNaming(); + static TapeProcessorRef m_singleton; + + ThreadSafeQueue<AudioTapeRef> m_audioTapeQueue; + + size_t m_threadCount; + ACE_Thread_Mutex m_mutex; + int m_currentDay; +}; + +#endif |