| 
    PLCnext API Documentation
    20.6.0.30321
    
   | 
 
This class implements the base functionality of a program. More...
#include <ProgramBase.hpp>

Public Member Functions | |
| ProgramBase (const String &programName) | |
| Constructs an ProgramBase instance. More... | |
| virtual | ~ProgramBase (void)=default | 
| Destructs this instance and frees all resouces. More... | |
| const String & | GetFullName (void) const override | 
| Returns the program name with full namespace. More... | |
| const String & | GetTaskName (void) const override | 
| Returns the task name in which is this program will be executed. More... | |
| void | SetTaskName (const String &taskNameArg) override | 
| Set the task name in which is this program will be executed. More... | |
| void | SetInitialValues (void) override | 
| Set the initial values of all containing variables of this program. More... | |
| void | AbortRequest (void) override | 
| Request a abort of program execution. More... | |
| bool | IsAbortRequested (void) const override | 
| Determines if this program is requested to abort. More... | |
| virtual void | Execute (void)=0 | 
| Executes this program. More... | |
  Public Member Functions inherited from Arp::Plc::Commons::Esm::IProgram | |
| IProgram (void)=default | |
| Constructs an IProgram instance. More... | |
| virtual | ~IProgram (void)=default | 
| Destructs this instance and frees all resouces. More... | |
Additional Inherited Members | |
  Public Types inherited from Arp::Plc::Commons::Esm::IProgram | |
| using | Ptr = std::shared_ptr< IProgram > | 
| Shared pointer type of IProgram. More... | |
| using | EventHandler = delegate< void(void)> | 
| The Event handler type is executed by the events Executing and Executed. More... | |
  Public Attributes inherited from Arp::Plc::Commons::Esm::IProgram | |
| event< void > | Executing | 
| The Executing event is invoked before this program is executed by the Execute operation. More... | |
| event< void > | Executed | 
| The Executed event is executed after this program is executed by the Execute operation. More... | |
This class implements the base functionality of a program.
Any (custom or not) program implementation should derive from this class.
      
  | 
  inline | 
Constructs an ProgramBase instance.
| programName | The full name of the program instance. | 
      
  | 
  virtualdefault | 
Destructs this instance and frees all resouces.
      
  | 
  inlineoverridevirtual | 
Request a abort of program execution.
Implements Arp::Plc::Commons::Esm::IProgram.
      
  | 
  pure virtual | 
Executes this program.
This operation should be overridden in any derived implementation.
Implements Arp::Plc::Commons::Esm::IProgram.
      
  | 
  inlineoverridevirtual | 
Returns the program name with full namespace.
Implements Arp::Plc::Commons::Esm::IProgram.
      
  | 
  inlineoverridevirtual | 
Returns the task name in which is this program will be executed.
Implements Arp::Plc::Commons::Esm::IProgram.
      
  | 
  inlineoverridevirtual | 
Determines if this program is requested to abort.
Implements Arp::Plc::Commons::Esm::IProgram.
      
  | 
  inlineoverridevirtual | 
Set the initial values of all containing variables of this program.
Implements Arp::Plc::Commons::Esm::IProgram.
      
  | 
  inlineoverridevirtual | 
Set the task name in which is this program will be executed.
| taskNameArg | The task name in which is this program will be executed. | 
Implements Arp::Plc::Commons::Esm::IProgram.
 1.8.13