vban commands added, tests updated

Added vban_in/vban_out to definetypes in base

Added string attribute label for strips

Added vban.ps1 which defines instream/oustream attributes.

Version bumped and changelog updated

Unit tests updated to reflect changes
This commit is contained in:
onyx-and-iris
2021-05-11 19:09:57 +01:00
parent 5ceacb4486
commit a66a101ba1
6 changed files with 484 additions and 6 deletions

View File

@@ -1,21 +1,30 @@
class Strip {
[int32]$id
[Array]$stringparams
# Constructor
Strip ([Int]$id)
{
$this.id = $id
$this.stringparams = @('label')
}
[void] Setter($cmd, $set) {
Param_Set -PARAM $cmd -VALUE $set
if( $this.stringparams.Contains($cmd.Split('.')[1]) ) {
Param_Set_String -PARAM $cmd -VALUE $set
}
else { Param_Set -PARAM $cmd -VALUE $set }
}
[Single] Getter($cmd) {
return Param_Get -PARAM $cmd
}
[string] cmd ($arg) {
[String] Getter_String($cmd) {
return Param_Get_String -PARAM $cmd
}
[String] cmd ($arg) {
return "Strip[" + $this.id + "].$arg"
}
@@ -168,6 +177,16 @@ class Strip {
$this._limit = $this.Setter($this.cmd('limit'), $arg)
}
)
hidden $_label = $($this | Add-Member ScriptProperty 'label' `
{
[String]$this.Getter_String($this.cmd('label'))
}`
{
param ( [String]$arg )
$this._label = $this.Setter($this.cmd('label'), $arg)
}
)
}
Function Strips {