| DSlib documentation | view source | Contained in the DSlib distribution. |
DS::Target - target of rows.
This class is the target of rows. It can be bound to any DS::Source,
which will send rows to it. Unless you are into writing complicated
classes, you will probably never need to inherit directly from this class.
None.
Constructor. Instantiates an object of class $class, taking the type
$in_type, attached to the source $source. Besides $class, any of the
parameters can be left out.
Triggers processing of $row. This method calls process with
$row, and then passes the result to pass_row.
Attaches $source as source. This method also validates data types
by calling validate_source_type, throwing an exception if the
validation fails.
Accessor for source. This method sets the source of this object and triggers type checking.
Validates source type. If the $source_type is not valid, it returns
false, true otherwise. By default, this method ensures that the ingoing
type of this object contains no fields not specified in $source_type.
Override if you need more complex checking.
Accessor for ingoing type.
Written by Michael Zedeler.
| DSlib documentation | view source | Contained in the DSlib distribution. |