Test::C2FIT::TypeAdapter - Base class of all TypeAdapters.


Test-C2FIT documentation  | view source Contained in the Test-C2FIT distribution.

Index


NAME

Top

Test::C2FIT::TypeAdapter - Base class of all TypeAdapters.

SYNOPSIS

Top

You typically subclass TypeAdapter. Implement at least parse(), eventually equals() and toString().

DESCRIPTION

Top

When your data is not stored as string, then you'll propably need an TypeAdapter. E.g.: duration, which is displayed (and entered) in the form "MMM:SS" but stored as number of seconds.

METHODS

Top

parse($string)

Returns the internal representation of $string. Either this is an object instance, but it can be also a scalar value.

toString()

Returns the stringified representation of the internal value.

SEE ALSO

Top

Extensive and up-to-date documentation on FIT can be found at: http://fit.c2.com/


Test-C2FIT documentation  | view source Contained in the Test-C2FIT distribution.