// deduceSET deduces the command for a given wdmp object
deduceSET deduces the command for a given wdmp object
// deduceSET deduces the command for a given wdmp object
func deduceSET(wdmp *setWDMP, newCID, oldCID, syncCMC string) (err error) {
	if newCID == "" && oldCID != "" {
		return ErrNewCIDRequired
	} else if newCID == "" && oldCID == "" && syncCMC == "" {
		wdmp.Command = getCommandForParams(wdmp.Parameters)
	} else {
		wdmp.Command = CommandTestSet
		wdmp.NewCid, wdmp.OldCid, wdmp.SyncCmc = newCID, oldCID, syncCMC
	}
	return
}
func deduceSET ( wdmp * setWDMP , newCID , oldCID , syncCMC string ) ( err error ) { if newCID == " " && oldCID != " " { return ErrNewCIDRequired } else if newCID == " " && oldCID == " " && syncCMC == " " { wdmp . Command = getCommandForParams ( wdmp . Parameters ) } else { wdmp . Command = CommandTestSet wdmp . NewCid , wdmp . OldCid , wdmp . SyncCmc = newCID , oldCID , syncCMC } return }
deduceSET deduces the command for a given wdmp object
deduceSET deduces the command for a given wdmp object