From OpenSCADAWiki
Jump to: navigation, search

Public methods:

  • string DAQPath( ); — Getting for DAQ-address of the element.
  • void modStart( ); — Start of the module.
  • void modStop( ); — Stop of the module.
  • void list( vector<string> &list ) const; — The list of the controllers.
  • bool present( const string &id ) const; — Check for the availability of the specified controller object.
  • string add( const string &id, const string &daq_db = DB_GEN ); — Add the controller object. Returns the end created identifier.
  • void del( const string &id ); — Delete the controller object.
  • AutoHD<TController> at( const string &id, const string &who = "" ) const; — Connect to the controller object.
  • bool tpPrmPresent( const string &name_t ); — Check for the availability of the specified controller type.
  • unsigned tpPrmToId( const string &name_t ); — Getting of the index of the parameters' types by their names.
  • int tpParmAdd( const char *id, const char *n_db, const char *name ); — Addition/registration of the parameters' types.
  • unsigned tpPrmSize( ); — Quantity of the parameters' types.
  • TTypeParam &tpPrmAt( unsigned id ); — Get the object of the parameters' type.
  • virtual bool compileFuncLangs( vector<string> *ls = NULL ); — Request of the list of languages for which it is realised the possibility of formation of user procedures in this module, and check for fact of that support.
  • virtual void compileFuncSnthHgl( const string &lang, XMLNode &shgl ); — Request the rules of the syntax highlight shgl for the specified language lang.
  • virtual string compileFunc( const string &lang, TFunction &fnc_cfg, const string &prog_text, const string &usings = "", int maxCalcTm = 0 ); — compiling-registering of the user function on the supported programming language lang and on the source code of procedure prog_text, based on the procedure parameters fnc_cfg. Returns address of the compiled function's object, ready for execution.
  • virtual bool redntAllow( ); — State of support the redundancy mechanisms by the module. Should be overridden and return TRUE if supported, otherwise FALSE.