# @(#)29 1.1 src/bos/usr/lib/kdb/UThread.perlmod, cmdkdb, bos720 9/16/99 10:04:23 # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # bos720 src/bos/usr/lib/kdb/UThread.perlmod 1.1 # # Licensed Materials - Property of IBM # # COPYRIGHT International Business Machines Corp. 1999 # All Rights Reserved # # US Government Users Restricted Rights - Use, duplication or # disclosure restricted by GSA ADP Schedule Contract with IBM Corp. # # IBM_PROLOG_END_TAG # # COMPONENT_NAME: kdb # # FUNCTIONS: UThread CLASS # # ORIGINS: 83 # # # (C) COPYRIGHT International Business Machines Corp. 1999 # All Rights Reserved # Licensed Materials - Property of IBM # US Government Users Restricted Rights - Use, duplication or # disclosure restricted by GSA ADP Schedule Contract with IBM Corp. # ################################################################ package UThread; ################################################################ require Comm; ### This class inherits from the Comm class @ISA = qw( Comm ); ######################################### # # # CLASS ATTRIBUTES AND DEFINE # # # ######################################### my %fields = (); ### Just the inherited attributes are exposed my %uthbuild = ( ### KDB subcommand is 'u' _rawcmd => [ ['senddata','u','signature'], ['readdata'] ] , ); ######################################################################## ######################################################################## ######## # # new # ######## sub new { my $class = shift; my $self = { %fields, %uthbuild, }; if (@_) { ### the method argument will indicate the object $self->{signature} = shift; } bless $self, $class; ### Attach the object to the class return $self; } 1;