LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
Classes | Functions | Variables
lsst.gdb.afw.printers_oldgdb Namespace Reference

Classes

class  CitizenPrinter
 
class  BaseSourceAttributesPrinter
 
class  SourcePrinter
 
class  FootprintPrinter
 
class  CoordinateBasePrinter
 
class  ImagePrinter
 
class  MaskedImagePrinter
 
class  ExposurePrinter
 
class  PrintImageCommand
 
class  RxPrinter
 
class  Printer
 

Functions

def register
 
def build_afw_dictionary
 
def build_daf_base_dictionary
 

Variables

list printers = []
 

Detailed Description

Code that works with gdb 7.1's python pretty printing.  When gdb >= 7.2 is widely available this
file should be deleted (it's only used after importing gdb.printing fails)

Function Documentation

def lsst.gdb.afw.printers_oldgdb.build_afw_dictionary ( )

Definition at line 300 of file printers_oldgdb.py.

302  printer = Printer("afw")
303 
304  printer.add('lsst::afw::detection::Footprint', FootprintPrinter)
305  printer.add('lsst::afw::detection::Source', SourcePrinter)
306  printer.add('lsst::afw::detection::BaseSourceAttributes', BaseSourceAttributesPrinter)
307 
308  printer.add('lsst::afw::geom::Point', CoordinateBasePrinter)
309  printer.add('lsst::afw::geom::Extent', CoordinateBasePrinter)
310 
311  printer.add('lsst::afw::image::ImageBase', ImagePrinter)
312  printer.add('lsst::afw::image::Image', ImagePrinter)
313  printer.add('lsst::afw::image::Mask', ImagePrinter)
314  printer.add('lsst::afw::image::MaskedImage', MaskedImagePrinter)
315  printer.add('lsst::afw::image::Exposure', ExposurePrinter)
316 
317  return printer
318 
319 printers.append(build_afw_dictionary())
def lsst.gdb.afw.printers_oldgdb.build_daf_base_dictionary ( )

Definition at line 320 of file printers_oldgdb.py.

322  printer = Printer("daf::base")
323 
324  printer.add('lsst::daf::base::Citizen', CitizenPrinter)
325 
326  return printer
327 
328 printers.append(build_daf_base_dictionary())
def lsst.gdb.afw.printers_oldgdb.register (   obj)

Definition at line 289 of file printers_oldgdb.py.

290 def register(obj):
291  "Register my pretty-printers with objfile Obj."
292 
293  if obj is None:
294  obj = gdb
295 
296  for p in printers:
297  obj.pretty_printers.insert(0, p)
298 
299 #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Variable Documentation

list lsst.gdb.afw.printers_oldgdb.printers = []

Definition at line 287 of file printers_oldgdb.py.