Hi,
I've created an class object. In the ::init method I load some data into some pointers. I want to create another method, ::change_data, that would simply load another set of data into the object.
I'm not quite sure what would be the best method, but here is what I was thinking of:
calling the ::cleanup method to remove all the pointers
calling the ::init method that contains all the code to load the data
I've tried the following... but of course this doesn't work
pro shoalsObject::change
compile_opt idl2
shoalsObject->icleanup
shoalsObject->init
end
Any idea of how I could do something like that ?
Thanks in advance.
Antoine C.
--
PhD candidate in bathymetric lidar applications
INRS-Eau, Terre et Environnement
490 de la Couronne
G1K 9A9 Quebec
Qc, Canada
|