diff options
author | Henri Herscher <henri@oreka.org> | 2005-10-20 13:40:58 +0000 |
---|---|---|
committer | Henri Herscher <henri@oreka.org> | 2005-10-20 13:40:58 +0000 |
commit | 7e1d63dd9fd149e4934bf77095c8610fac786b04 (patch) | |
tree | 5fe486a1b0300c3b84fb559107a868e5cc2c95da /orkaudio/audiocaptureplugins/generator/GeneratorConfig.h | |
parent | 467768fc956fc3e5a253373f26c71c681b31b6b8 (diff) |
First checkin
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@2 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkaudio/audiocaptureplugins/generator/GeneratorConfig.h')
-rw-r--r-- | orkaudio/audiocaptureplugins/generator/GeneratorConfig.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/orkaudio/audiocaptureplugins/generator/GeneratorConfig.h b/orkaudio/audiocaptureplugins/generator/GeneratorConfig.h new file mode 100644 index 0000000..8e9c6a1 --- /dev/null +++ b/orkaudio/audiocaptureplugins/generator/GeneratorConfig.h @@ -0,0 +1,66 @@ +/* + * 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 __GENERATORCONFIG_H__ +#define __GENERATORCONFIG_H__ + +#include "StdString.h" +#include "Object.h" +#include "boost/shared_ptr.hpp" + +#define NUM_CONCURRENT_PORTS_PARAM "NumConcurrentPorts" +#define NUM_CONCURRENT_PORTS_DEFAULT 10 +#define AUDIO_DURATION_PARAM "AudioDuration" +#define AUDIO_DURATION_DEFAULT 10 +#define AUDIO_FILE_NAME_PARAM "AudioFilename" +#define AUDIO_FILE_NAME_DEFAULT "test.wav" + +/** This class defines various configuration parameters for the generator. */ +class GeneratorConfig : public Object +{ +public: + GeneratorConfig(); + void Define(Serializer* s); + void Validate(); + + CStdString GetClassName(); + ObjectRef NewInstance(); + inline ObjectRef Process() {return ObjectRef();}; + + int m_numConcurrentPorts; + int m_audioDuration; + CStdString m_audioFilename; +}; + +//======================================== + +#define GENERATOR_CONFIG_PARAM "Generator" + +/** This class represents the top of the configuration hierarchy for the generator. */ +class GeneratorConfigTopObject : public Object +{ +public: + void Define(Serializer* s); + void Validate(); + + CStdString GetClassName(); + ObjectRef NewInstance(); + inline ObjectRef Process() {return ObjectRef();}; + + GeneratorConfig m_config; +}; + +typedef boost::shared_ptr<GeneratorConfigTopObject> GeneratorConfigTopObjectRef; + + +#endif |