Written by

InterSystems Corporation
Question Daniel Kutac · Feb 6, 2018

Quick list of classes within a package

Is there an API that would list classes within a given package? I can't find any. I do have a workaround that uses class index, but this query lists all classes available in the namespace and I have to filter those I want. But this is just unnecessary overhead.

If anyone has spotted such API, please let me know.

TIA!

Dan

Comments

Peter Steiwer · Feb 6, 2018

Would querying against %Dictionary.CompiledClass and adding a where clause on SqlSchemaName do what you need?

0
Peter Steiwer  Feb 6, 2018 to Timothy Leavitt

I vote for Tim's answer over mine

0
Timothy Leavitt · Feb 6, 2018
USER>d $System.OBJ.GetPackageList(.classes,"%CSP.Documatic") zw classes
classes("%CSP.Documatic.CubeInfo")=""
classes("%CSP.Documatic.PrintClass")=""
0