Required methods and objects

In conclusion, here is a list of all methods and objects required to implement a CTRL add-on.

Classes

Add-on initialization and registration

  • BaseExternHdl

  • struct FunctionListRec

Add-on implementation:

  • CharString WinCC OA string class

  • ExprList List of function parameters

  • ExternData Error location identifier for error messages

  • CtrlThread Communication with CTRL is via the thread

  • CtrlExpr Individual list parameter

  • Variable

  • ErrClass

  • *Var (z.B IntegerVar, FloatVar....)

Methods

Error message output methods:

  • bool BaseExternHdl::implError(const char *implFn, const char *calledFn);

  • void CtrlThread::clearLastError();

  • static void ErrHdl::error(const ErrClass &errorClass);

  • virtual CharString ExternData::getLocation();

  • void CtrlThread::appendLastError(const ErrorVar &err);

Parameter checking methods

  • CtrlExpr *ExprList::getFirst();

  • CtrlExpr *ExprList::getNext();

  • virtual const Variable *CtrlExpr::evaluate(CtrlThread *thread);

  • virtual Variable *CtrlExpr::getTarget(CtrlThread *thread);

  • VariableType Variable::isA() const;