Hi,
the description of MetaModule
http://pixinsight.com/developer/pcl/doc/20120917/html/classpcl_1_1MetaModule.html#details states that "In any PixInsight module, there exists a unique instance of a derived class of MetaModule, accessible as a global pointer variable declared in the pcl namespace, namely: Module". It also states "The entire tree of existing module components can always be accessed by using the MetaObject::operator[]( size_type )".
Questions:
- The
Module variable is defined in pcl/MetaModule.h. Looking at the code of the SandboxModule, I cannot see where
Module is set. Where and how is it set?
- operator[] seems to require that the MetaObject::MetaObject(*parent) is called. I do not see this in SandboxProcess::SandboxProcess(). How can I navigate from a SandboxModule instance to its MetaProcesses?
- Is the interpretation correct that the "tree of module components" should be like this: MetaModule<-MetaProcess<-MetaParameter, with "<-" meaning 1:n relationship?
Georg