From OpenSCADAWiki
Jump to: navigation, search

The entry point of any module are the following functions:

  • TModule::SAt module( int n_mod ), TModule::SAt bd_DBF_module( int n_mod ) — used to scan the list and information about all modules in the library. The first function is used to implement the modules in the external shared library, and the second when linking them to the OpenSCADA core.
  • TModule *attach( const TModule::SAt &AtMod, const string &source ), TModule *bd_Tmpl_attach( const TModule::SAt &AtMod, const string &source ) — used for direct connection-opening the selected module by creating the root object of the module, inherited from the TModule. The first function is used to implement the modules in the external shared library, and the second when linking them to the OpenSCADA core.