Author Topic: PCL: MetaProcess and its children  (Read 4087 times)

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
PCL: MetaProcess and its children
« on: 2012 September 16 12:38:55 »
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
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)