2
* $Id: AUD_EffectFactory.h 22328 2009-08-09 23:23:19Z gsrb3d $
4
* ***** BEGIN LGPL LICENSE BLOCK *****
6
* Copyright 2009 Jörg Hermann Müller
2
* ***** BEGIN GPL LICENSE BLOCK *****
4
* Copyright 2009-2011 Jörg Hermann Müller
8
6
* This file is part of AudaSpace.
10
* AudaSpace is free software: you can redistribute it and/or modify
11
* it under the terms of the GNU Lesser General Public License as published by
12
* the Free Software Foundation, either version 3 of the License, or
8
* Audaspace is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
13
11
* (at your option) any later version.
15
13
* AudaSpace is distributed in the hope that it will be useful,
16
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU Lesser General Public License for more details.
20
* You should have received a copy of the GNU Lesser General Public License
21
* along with AudaSpace. If not, see <http://www.gnu.org/licenses/>.
23
* ***** END LGPL LICENSE BLOCK *****
26
#ifndef AUD_EFFECTFACTORY
27
#define AUD_EFFECTFACTORY
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with Audaspace; if not, write to the Free Software Foundation,
20
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22
* ***** END GPL LICENSE BLOCK *****
25
/** \file audaspace/FX/AUD_EffectFactory.h
30
#ifndef __AUD_EFFECTFACTORY_H__
31
#define __AUD_EFFECTFACTORY_H__
29
33
#include "AUD_IFactory.h"
35
39
class AUD_EffectFactory : public AUD_IFactory
42
// hide copy constructor and operator=
43
AUD_EffectFactory(const AUD_EffectFactory&);
44
AUD_EffectFactory& operator=(const AUD_EffectFactory&);
39
48
* If there is no reader it is created out of this factory.
41
AUD_IFactory* m_factory;
50
AUD_Reference<AUD_IFactory> m_factory;
44
53
* Returns the reader created out of the factory.
45
54
* This method can be used for the createReader function of the implementing
47
* \return The reader created out of the factory or NULL if there is none.
56
* \return The reader created out of the factory.
49
AUD_IReader* getReader();
58
inline AUD_Reference<AUD_IReader> getReader() const
60
return m_factory->createReader();
53
65
* Creates a new factory.
54
66
* \param factory The input factory.
56
AUD_EffectFactory(AUD_IFactory* factory);
68
AUD_EffectFactory(AUD_Reference<AUD_IFactory> factory);
59
71
* Destroys the factory.
61
virtual ~AUD_EffectFactory() {}
64
* Sets the input factory.
65
* \param factory The input factory.
67
void setFactory(AUD_IFactory* factory);
73
virtual ~AUD_EffectFactory();
70
76
* Returns the saved factory.
71
77
* \return The factory or NULL if there has no factory been saved.
73
AUD_IFactory* getFactory();
79
AUD_Reference<AUD_IFactory> getFactory() const;
76
#endif //AUD_EFFECTFACTORY
82
#endif //__AUD_EFFECTFACTORY_H__