From OpenSCADAWiki
Jump to: navigation, search

Public methods:

  • Impl( TCntrNode *iobj, const string &iname = "", bool blked = true ); — Constructs for the template implementation with the control node iobj and the name iname.
  • int lnkId( const string &nm ); — Returns the link nm (function's IO) identifier/number.
  • bool lnkPresent( int num ); — Checks the link number num to presence, returns TRUE for accessibility the link.
  • void lnkList( vector<int> &ls ) const — Gets for list of the linked attributes ID.
  • virtual void lnkAdd( int num, const SLnk &l ); — Adds a link with the number num and the "SLnk" structure l.
  • string lnkAddr( int num, bool spec = false ) const; — Returns the link address for the number num and the special link address for spec.
  • void lnkAddrSet( int num, const string &vl, bool spec = false ); — Sets the link address to vl for number num and the special link address for spec.
  • virtual bool lnkInit( int num, bool toRecnt = false ); — Inits/connects the link for the number num, which means reading "addr" and forming "con" or "addrSpec". Set toRecnt to force the re-linking. Returns TRUE at the need for the initialization/activation repeating.
  • virtual bool lnkActive( int num ); — Checks the link number num initialization/activation state.
  • virtual TVariant lnkInput( int num ); — Returns a value by the link number num.
  • virtual bool lnkOutput( int num, const TVariant &vl ); — Sets the value vl by the link number num. Returns TRUE at correct setting.
  • void addLinksAttrs( TElem *attrsCntr = NULL ); — Adds links and DAQ parameter's attributes, at attrsCntr presence.
  • bool initLnks( bool toRecnt = false ); — Inits/connects all the links. Set toRecnt to force the re-linking. Returns TRUE at presence at last one not initiated link — needs for the initialization/activation repeating.
  • virtual void cleanLnks( bool andFunc = false ); — Cleans all the links and the function, for andFunc.
  • void inputLinks( ); — Gets for values of all the links.
  • void outputLinks( ); — Sets for values of all the links.
  • void archAttrs( TValue *vl, int64_t tm = 0 ); — Updating the attribute values in vl from the Logical Level context and with writing them to the archive for the archivation attributes for timestamp tm.
  • virtual bool cntrCmdProc( XMLNode *opt, const string &pref = "/cfg" ); — Calls for control interface of the links with the prefix "pref".