# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.

package postscriptbarcode;
use base qw(Exporter);
use base qw(DynaLoader);
package postscriptbarcodec;
bootstrap postscriptbarcode;
package postscriptbarcode;
@EXPORT = qw();

# ---------- BASE METHODS -------------

package postscriptbarcode;

sub TIEHASH {
    my ($classname,$obj) = @_;
    return bless $obj, $classname;
}

sub CLEAR { }

sub FIRSTKEY { }

sub NEXTKEY { }

sub FETCH {
    my ($self,$field) = @_;
    my $member_func = "swig_${field}_get";
    $self->$member_func();
}

sub STORE {
    my ($self,$field,$newval) = @_;
    my $member_func = "swig_${field}_set";
    $self->$member_func($newval);
}

sub this {
    my $ptr = shift;
    return tied(%$ptr);
}


# ------- FUNCTION WRAPPERS --------

package postscriptbarcode;


############# Class : postscriptbarcode::BWIPP ##############

package postscriptbarcode::BWIPP;
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
@ISA = qw( postscriptbarcode );
%OWNER = ();
%ITERATORS = ();
sub new {
    my $pkg = shift;
    my $self = postscriptbarcodec::new_BWIPP(@_);
    bless $self, $pkg if defined($self);
}

sub DESTROY {
    return unless $_[0]->isa('HASH');
    my $self = tied(%{$_[0]});
    return unless defined $self;
    delete $ITERATORS{$self};
    if (exists $OWNER{$self}) {
        postscriptbarcodec::delete_BWIPP($self);
        delete $OWNER{$self};
    }
}

*get_version = *postscriptbarcodec::BWIPP_get_version;
*emit_required_resources = *postscriptbarcodec::BWIPP_emit_required_resources;
*emit_all_resources = *postscriptbarcodec::BWIPP_emit_all_resources;
*emit_exec = *postscriptbarcodec::BWIPP_emit_exec;
*list_families = *postscriptbarcodec::BWIPP_list_families;
*list_family_members = *postscriptbarcodec::BWIPP_list_family_members;
*list_properties = *postscriptbarcodec::BWIPP_list_properties;
*get_property = *postscriptbarcodec::BWIPP_get_property;
sub DISOWN {
    my $self = shift;
    my $ptr = tied(%$self);
    delete $OWNER{$ptr};
}

sub ACQUIRE {
    my $self = shift;
    my $ptr = tied(%$self);
    $OWNER{$ptr} = 1;
}


# ------- VARIABLE STUBS --------

package postscriptbarcode;

1;
