PapcoDoc/documents/usefulRoutines
From PapcoWiki
Here are some commonly use papco routines.
- function papco_get_module_name, panelKindStr
- papco_revalidatePlot, panelNumber
- papco_usage shows command documenation.
- papco_usage, functionName
- papco_usage, matchString
- papco_reset resets all internals.
refactory
refactory.pro contains a number of routines that are useful when developing papco (and any IDL) codes. "Refactory" refers to the idea of refactorings, which are operations applied to codes that do not affect the function of the codes (e.g. renaming a variable). Although automatic refactorings do not exist in IDL, these methods try to provide some of the same utility.
rfy_where_used, symbol, [/pro,] [/func,] search all codes on the path using grep to find where a symbol is used.
rfy_break_apart, file, dir breaks an IDL code containing lots of routines into separate files named properly so IDL can automatically find them. Note this messes up comments, and is presently used in the automatic linking of modules.
rfy_file_search_replace, file, searchFor, replaceWith, [/smartCase] does a search and replace within the file. This is used in make_new_module

