The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

CXC::DS9::Server - Image::DS9 subclass with controlled lifetime of server

VERSION

version 0.01

SYNOPSIS

  use CXC::DS9::Server;

  {
    # attach to an existing ds9 process or attach to a new one.
    my $server = CXC::DS9::Server->new( { kill_on_destroy => 1 } );
  }

  # now the ds9 process is no more

DESCRIPTION

CXC::DS9::Server is a subclass of Image::DS9 which takes care of starting a ds9 process if there is no existent one it can connect to.

It has the added feature of optionally terminating the ds9 process when the CXC::DS9::Server object is destroyed.

METHODS

new

  $server = CXC::DS9::Server->new( \%attrs );

Connect to an existing ds9 process or create a new one. It accepts the same arguments as does "new" in Image::DS9, with the following additional ones:

kill_on_destroy => Boolean

If true, the ds9 process will be terminated when the object is destroyed.

SEE ALSO

Please see those modules/websites for more information related to this module.

AUTHOR

Diab Jerius <djerius@cfa.harvard.edu>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2017 by Smithsonian Astrophysical Observatory.

This is free software, licensed under:

  The GNU General Public License, Version 3, June 2007