#!/bin/sh

#@@example switch(2, 3)

#@@purpose Generate a switchs or push button

#@@desc Generate a switchs or push button with arbitrary number of throws
#@@desc and poles.

#@@params pole, throw, style

#@@param:pole number of poles (mechanically coupled parallel copies of the switch section)
#@@default:pole 1
#@@param:throw number of throws (positions or output terminals for the single input terminal, per switch section)
#@@default:throw 1
#@@param:style graphics for the switching element between terminals
#@@enum:style:switch static switch with 2 or more states
#@@enum:style:rotary terminals arranged in rotary switch style
#@@enum:style:push push button, off by default (two-state)
#@@enum:style:invpush push button, on by default (two-state)
#@@enum:style:relay same as switch, but includes relay coil on top
#@@default:style switch

#@@include common_sym.awk

awk -f `dirname $0`/../common_sym.awk -f `dirname $0`/switch.awk -v "args=$*" -v gen=`basename $0` -v "genfull=$0"

