Option Strict On
Option Explicit On

Namespace Nexamas.UI.DataBinding

    ''' <summary>
    ''' Friend-only options for deterministic text export from a PivotTable export
    ''' snapshot. This is intentionally a writer policy over an in-memory string,
    ''' not a file, Excel, PDF, clipboard, or storage lifecycle.
    ''' </summary>
    Friend NotInheritable Class MASPivotDelimitedExportOptions
        Friend Sub New(Optional delimiter As Char = ","c,
                       Optional includeRowTotals As Boolean = True,
                       Optional includeColumnTotals As Boolean = True)
            Me.Delimiter = delimiter
            Me.IncludeRowTotals = includeRowTotals
            Me.IncludeColumnTotals = includeColumnTotals
        End Sub

        Friend ReadOnly Property Delimiter As Char
        Friend ReadOnly Property IncludeRowTotals As Boolean
        Friend ReadOnly Property IncludeColumnTotals As Boolean

        Friend Shared Function CreateDefault() As MASPivotDelimitedExportOptions
            Return New MASPivotDelimitedExportOptions()
        End Function
    End Class

End Namespace
