[clam-devel] ipyclam: trouble with ProcessingConfigs
Xavier Serra Román
xvr.serra at gmail.com
Wed May 25 10:09:23 PDT 2011
Hi guys,
I'm now at the part of ipyclam dealing with configurations and I've run into some trouble,
I defined a c++ class to wrap into python with boost.python that holds a processingconfig.
I need to create the processingconfig in the class from a copy of another one so I've defined:
ConfigurationProxy(const CLAM::ProcessingConfig & prototype)
{
_processingConfig = new CLAM::ProcessingConfig(prototype);
}
this, obviously. doesn't work because abstract classes cannot be allocated but I don't know
what else to do.
The complete code of the class is:
class ConfigurationProxy
{
public:
CLAM::ProcessingConfig * _processingConfig;
ConfigurationProxy() {}
ConfigurationProxy(const CLAM::ProcessingConfig & prototype)
{
_processingConfig = new CLAM::ProcessingConfig(prototype);
}
~ConfigurationProxy()
{
delete _processingConfig;
}
};
Thanks!
More information about the clam-devel
mailing list