Print a Citizen
Usage: show citizen <obj>
Definition at line 338 of file printers.py.
◆ __init__()
def lsst.gdb.afw.printers.GdbOptionParser.PrintCitizenCommand.__init__ |
( |
|
self | ) |
|
Definition at line 343 of file printers.py.
344 super(PrintCitizenCommand, self).
__init__(
"show citizen",
def __init__(self, minimum, dataRange, Q)
◆ invoke()
def lsst.gdb.afw.printers.GdbOptionParser.PrintCitizenCommand.invoke |
( |
|
self, |
|
|
|
args, |
|
|
|
fromTty |
|
) |
| |
Definition at line 348 of file printers.py.
348 def invoke(self, args, fromTty):
351 parser = GdbOptionParser(
"show citizen")
353 parser.add_option(
"object", help=
"The object in question")
355 opts = parser.parse_args(args)
359 opts, args = parser.parse_args(args)
364 raise gdb.GdbError(
"Please specify an object")
365 opts.object = args.pop(0)
369 "Unrecognised trailing arguments: %s" %
" ".join(args))
371 var = gdb.parse_and_eval(opts.object)
372 if re.search(
r"shared_ptr<",
str(var.type)):
375 if var.type.code != gdb.TYPE_CODE_PTR:
378 citizen = var.dynamic_cast(gdb.lookup_type(
379 "lsst::daf::base::Citizen").pointer())
383 "Failed to cast %s to Citizen -- is it a subclass?" % opts.object)
385 citizen = citizen.dereference()
389 PrintCitizenCommand()
The documentation for this class was generated from the following file:
- /j/snowflake/release/lsstsw/stack/Linux64/afw/18.1.0/python/lsst/gdb/afw/printers.py