comparison plugin/RealTimePluginInstance.h @ 332:13e5870040e6

* some tidying, and put some actual work in TransformFactory
author Chris Cannam
date Wed, 07 Nov 2007 14:53:12 +0000
parents 71f869dac40b
children ca3b91119482
comparison
equal deleted inserted replaced
331:f620ce48c950 332:13e5870040e6
131 131
132 void setFactory(RealTimePluginFactory *f) { m_factory = f; } // ew 132 void setFactory(RealTimePluginFactory *f) { m_factory = f; } // ew
133 133
134 virtual std::string getType() const { return "Real-Time Plugin"; } 134 virtual std::string getType() const { return "Real-Time Plugin"; }
135 135
136 virtual std::map<std::string, std::string> getConfigurePairs() { 136 typedef std::map<std::string, std::string> ConfigurationPairMap;
137 virtual ConfigurationPairMap getConfigurePairs() {
137 return m_configurationData; 138 return m_configurationData;
138 } 139 }
139 140
140 protected: 141 protected:
141 RealTimePluginInstance(RealTimePluginFactory *factory, QString identifier) : 142 RealTimePluginInstance(RealTimePluginFactory *factory, QString identifier) :
142 m_factory(factory), m_identifier(identifier) { } 143 m_factory(factory), m_identifier(identifier) { }
143 144
144 RealTimePluginFactory *m_factory; 145 RealTimePluginFactory *m_factory;
145 QString m_identifier; 146 QString m_identifier;
146 147
147 std::map<std::string, std::string> m_configurationData; 148 ConfigurationPairMap m_configurationData;
148 149
149 friend class PluginFactory; 150 friend class PluginFactory;
150 }; 151 };
151 152
152 153