Namespace SimplePrinter
'''
''' Class that describes a printer.
'''
Public Class Printer
'********************************************************
' Printer.A
'********************************************************
'''
''' Enumeration of printer types. Can select one per printer.
'''
Public Enum PrinterEnum
Laser
Inkjet
DotMatrix
Line
Thermal
Other
End Enum
'********************************************************
' Printer.B
'********************************************************
'''
''' Enumeration of printer attachment types. Can specify
''' multiple attachment types for a printer.
'''
_
Public Enum AttachmentEnum
None = 0
BlueTooth = 1
LAN = 2
Parallel = 4
USB = 8
End Enum
'********************************************************
' Printer.C
'********************************************************
Private m_Type As PrinterEnum
'''
''' The type of the printer.
'''
Public Property Type() As PrinterEnum
Get
Return m_Type
End Get
Set(ByVal value As PrinterEnum)
m_Type = value
End Set
End Property
Private m_attachment As AttachmentEnum
'''
''' The printer attachment type.
'''
Public Property Attachment() As AttachmentEnum
Get
Return m_attachment
End Get
Set(ByVal value As AttachmentEnum)
m_attachment = value
End Set
End Property
'********************************************************
' Printer.D
'********************************************************
'''
''' Constructor for printer type and attachment type.
'''
'''
''' The type of the printer.
'''
'''
''' The attachment type.
'''
Sub New(ByVal Type As PrinterEnum, _
ByVal Attachment As AttachmentEnum)
Me.Type = Type
Me.Attachment = Attachment
End Sub
End Class
End Namespace