@joergmittaglawo/dmvconfig
Version:
DMV Configuration scripts for Lawo V__matrix Distributed Multiviewers.
59 lines (58 loc) • 2.68 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClusterOutputsGlobalRuntime = exports.ClusterIPOutputConfigurationAsTableRow = exports.ClusterIPOutputConfiguration = exports.ClusterOutputsGlobalConfiguration = exports.ClusterSDIOutputCrossbar = exports.lower = exports.lift = void 0;
const VScript = require("vscript");
exports.lift = {
ClusterOutputsGlobalRuntime: (kwl, socket) => kwl ? (new ClusterOutputsGlobalRuntime(new VScript.Subtree(socket, kwl))) : null,
ClusterIPOutputConfiguration: (kwl, socket) => kwl ? (new ClusterIPOutputConfiguration(new VScript.Subtree(socket, kwl))) : null,
ClusterOutputsGlobalConfiguration: (kwl, socket) => kwl ? (new ClusterOutputsGlobalConfiguration(new VScript.Subtree(socket, kwl))) : null,
ClusterSDIOutputCrossbar: (kwl, socket) => kwl ? (new ClusterSDIOutputCrossbar(new VScript.Subtree(socket, kwl))) : null
};
exports.lower = {
ClusterOutputsGlobalRuntime: (ref) => ref ? ref.raw.kwl : null,
ClusterIPOutputConfiguration: (ref) => ref ? ref.raw.kwl : null,
ClusterOutputsGlobalConfiguration: (ref) => ref ? ref.raw.kwl : null,
ClusterSDIOutputCrossbar: (ref) => ref ? ref.raw.kwl : null
};
class ClusterSDIOutputCrossbar {
constructor(raw) {
this.raw = raw;
}
get crossbar() {
return new VScript.rwKeyword(this, "crossbar");
}
}
exports.ClusterSDIOutputCrossbar = ClusterSDIOutputCrossbar;
class ClusterOutputsGlobalConfiguration {
constructor(raw) {
this.raw = raw;
}
get sdi() { return new ClusterSDIOutputCrossbar(this.raw.find("sdi")); }
}
exports.ClusterOutputsGlobalConfiguration = ClusterOutputsGlobalConfiguration;
class ClusterIPOutputConfiguration {
constructor(raw) {
this.raw = raw;
}
get sdp() {
return new VScript.rKeyword(this, "sdp");
}
}
exports.ClusterIPOutputConfiguration = ClusterIPOutputConfiguration;
class ClusterIPOutputConfigurationAsTableRow extends ClusterIPOutputConfiguration {
constructor(raw_row, enclosing_table) {
super(new VScript.Subtree(raw_row.socket, raw_row.kwl));
this.enclosing_table = enclosing_table;
this.index = raw_row.index;
}
}
exports.ClusterIPOutputConfigurationAsTableRow = ClusterIPOutputConfigurationAsTableRow;
class ClusterOutputsGlobalRuntime {
constructor(raw) {
this.raw = raw;
}
get ip() {
return new VScript.StronglyTypedTable(new VScript.Table(this.raw.socket, this.raw.full_kwl("ip")), (row, enclosing_table) => new ClusterIPOutputConfigurationAsTableRow(row, enclosing_table));
}
}
exports.ClusterOutputsGlobalRuntime = ClusterOutputsGlobalRuntime;