CsvTableRenderer

com.phasmidsoftware.tableparser.core.render.CsvTableRenderer
abstract class CsvTableRenderer[T, O]()(using z1: CsvRenderer[T], z2: CsvGenerator[T], z3: Writable[O], ca: CsvAttributes) extends Renderer[Table[T], Try[O]]

Abstract class for rendering a tabular representation of type Table[T] to a sequentially writable format O, such as CSV, while utilizing implicit type classes for rendering cells and generating column names.

This class simplifies the conversion of tabular data (Table[T]) into a structured format (O) with support for customization through attributes and allows seamless integration with CSV-specific typeclasses.

Type parameters

O

the type of the writable output; must have implicit evidence for Writable.

T

the type of elements contained within the table; must have implicit evidence for CsvRenderer and CsvGenerator.

Attributes

Graph
Supertypes
trait Renderer[Table[T], Try[O]]
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

protected def generateText(ow: Writable[O], tc: CsvRenderer[T], o: O, t: T): O

CONSIDER replacing ow by implicitly of Writable[O]. CONSIDER replacing tc by implicitly of CsvRenderer[T].

CONSIDER replacing ow by implicitly of Writable[O]. CONSIDER replacing tc by implicitly of CsvRenderer[T].

Value parameters

o

O.

ow

Writable[O].

t

T.

tc

CsvRenderer[T].

Attributes

Returns

O.

def render(t: Table[T], attrs: Map[String, String]): Try[O]

Render an instance of T as an O, qualifying the rendering with attributes defined in attrs.

Render an instance of T as an O, qualifying the rendering with attributes defined in attrs.

Value parameters

attrs

a map of attributes for this value of O.

t

the input parameter, i.e., the Table[T] instance to render.

Attributes

Returns

an instance of type O.

Inherited methods

def render(t: Table[T]): Try[O]

Render an instance of T as an O, qualifying the rendering with no attributes.

Render an instance of T as an O, qualifying the rendering with no attributes.

Value parameters

t

a T to be rendered.

Attributes

Returns

an instance of type O.

Inherited from:
Renderer