baseform

package
v1.8.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package baseform provides shared code for all of the standard form message types.

Index

Constants

This section is empty.

Variables

View Source
var DefaultPDFMaps = BaseFormPDFMaps{
	OriginMsgID:      message.PDFName("Origin Msg Nbr"),
	DestinationMsgID: message.PDFName("Destination Msg Nbr"),
	MessageDate:      message.PDFName("Date Created"),
	MessageTime:      message.PDFName("Time Created"),
	Handling: message.PDFNameMap{"Handling",
		"", "Off",
		"IMMEDIATE", "Immediate",
		"PRIORITY", "Priority",
		"ROUTINE", "Routine",
	},
	ToICSPosition:   message.PDFName("To ICS Position"),
	ToLocation:      message.PDFName("To Location"),
	ToName:          message.PDFName("To Name"),
	ToContact:       message.PDFName("To Contact Info"),
	FromICSPosition: message.PDFName("From ICS Position"),
	FromLocation:    message.PDFName("From Location"),
	FromName:        message.PDFName("From Name"),
	FromContact:     message.PDFName("From Contact Info"),
	OpRelayRcvd:     message.PDFName("Relay Rcvd"),
	OpRelaySent:     message.PDFName("Relay Sent"),
	OpName:          message.PDFName("Op Name"),
	OpCall:          message.PDFName("Op Call Sign"),
	OpDate:          message.PDFName("Op Date"),
	OpTime:          message.PDFName("Op Time"),
}

Functions

This section is empty.

Types

type BaseForm

type BaseForm struct {
	PIFOVersion string
	FormVersion string

	OriginMsgID      string
	DestinationMsgID string
	MessageDate      string
	MessageTime      string
	Handling         string
	ToICSPosition    string
	ToLocation       string
	ToName           string
	ToContact        string
	FromICSPosition  string
	FromLocation     string
	FromName         string
	FromContact      string

	OpRelayRcvd string
	OpRelaySent string
	OpName      string
	OpCall      string
	OpDate      string
	OpTime      string
}

func (*BaseForm) AddFooterFields

func (bf *BaseForm) AddFooterFields(bm *message.BaseMessage, pdf *BaseFormPDFMaps)

func (*BaseForm) AddHeaderFields

func (bf *BaseForm) AddHeaderFields(bm *message.BaseMessage, pdf *BaseFormPDFMaps)

type BaseFormPDFMaps

type BaseFormPDFMaps struct {
	OriginMsgID      message.PDFMapper
	DestinationMsgID message.PDFMapper
	MessageDate      message.PDFMapper
	MessageTime      message.PDFMapper
	Handling         message.PDFMapper
	ToICSPosition    message.PDFMapper
	ToLocation       message.PDFMapper
	ToName           message.PDFMapper
	ToContact        message.PDFMapper
	FromICSPosition  message.PDFMapper
	FromLocation     message.PDFMapper
	FromName         message.PDFMapper
	FromContact      message.PDFMapper
	OpRelayRcvd      message.PDFMapper
	OpRelaySent      message.PDFMapper
	OpName           message.PDFMapper
	OpCall           message.PDFMapper
	OpDate           message.PDFMapper
	OpTime           message.PDFMapper
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL