Skip to content

Commit

Permalink
use interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
sjuergen committed Jan 14, 2025
1 parent 8d851a5 commit 34b07c7
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 2 deletions.
28 changes: 28 additions & 0 deletions 05_oop_in_st/exercises/3_calculator_current_volume/apax.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# General information
name: "oop1"
version: 0.0.1
type: lib
keywords:
- library
author: SIMATIC AX
# Description will be displayed in the apax extension
description: <Description for your library>
# Targets to be compiled with 'apax build'
targets:
- "1500"
- llvm
# Install settings
installStrategy: strict
apaxVersion: 3.2.1
# Dependencies
devDependencies:
"@ax/sdk": 2411.0.0

# Environment variables
variables:
APAX_BUILD_ARGS:
- "--debug" # Generate debug information for target "1500"

# Files, which will be shipped with the library
files:
- bin
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

NAMESPACE FluidHandlingClass

CLASS TankBase
CLASS TankBase IMPLEMENTS ItfTank
VAR PRIVATE
inletValve: ValveBase;
outletValve: ValveBase;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

NAMESPACE FluidHandlingClass

CLASS ValveBase
CLASS ValveBase IMPLEMENTS ItfValve
VAR
_ctrlOpen : BOOL;
_state : ValveState;
Expand Down
28 changes: 28 additions & 0 deletions 05_oop_in_st/exercises/4_inheritance_complex_valve/apax.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# General information
name: "oop1"
version: 0.0.1
type: lib
keywords:
- library
author: SIMATIC AX
# Description will be displayed in the apax extension
description: <Description for your library>
# Targets to be compiled with 'apax build'
targets:
- "1500"
- llvm
# Install settings
installStrategy: strict
apaxVersion: 3.2.1
# Dependencies
devDependencies:
"@ax/sdk": 2411.0.0

# Environment variables
variables:
APAX_BUILD_ARGS:
- "--debug" # Generate debug information for target "1500"

# Files, which will be shipped with the library
files:
- bin
28 changes: 28 additions & 0 deletions 05_oop_in_st/exercises/solution/apax.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# General information
name: "oop1"
version: 0.0.1
type: lib
keywords:
- library
author: SIMATIC AX
# Description will be displayed in the apax extension
description: <Description for your library>
# Targets to be compiled with 'apax build'
targets:
- "1500"
- llvm
# Install settings
installStrategy: strict
apaxVersion: 3.2.1
# Dependencies
devDependencies:
"@ax/sdk": 2411.0.0

# Environment variables
variables:
APAX_BUILD_ARGS:
- "--debug" # Generate debug information for target "1500"

# Files, which will be shipped with the library
files:
- bin

0 comments on commit 34b07c7

Please sign in to comment.