| 1 | package Protocol::FIX::Component; | ||
| 2 | |||
| 3 | 18 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 18 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 18 | ▶ | use Protocol::FIX; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 18 | ▶ | use mro; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 18 | ▶ | use parent qw/Protocol::FIX::BaseComposite/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 18 | our $VERSION = '0.08'; ## VERSION | |
| 11 | |||
| 12 | =head1 NAME | ||
| 13 | |||
| 14 | Protocol::FIX::Component - aggregates fields, groups, components under single name | ||
| 15 | |||
| 16 | =cut | ||
| 17 | |||
| 18 | =head1 METHODS (for protocol developers) | ||
| 19 | |||
| 20 | =head3 new | ||
| 21 | |||
| 22 | new($class, $name, $composites) | ||
| 23 | |||
| 24 | Creates new Component (performed by Protocol, when it parses XML definition) | ||
| 25 | |||
| 26 | =cut | ||
| 27 | |||
| 28 | 734 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 29 | 734 | my ($class, $name, $composites) = @_; | |
| 30 | |||
| 31 | 734 | my $obj = next::method($class, $name, 'component', $composites); | |
| 32 | |||
| 33 | 734 | return $obj; | |
| 34 | } | ||
| 35 | |||
| 36 | 18 | 1; | |