How to Specify Special Types in XML Tool Method Declarations

This is what I had to do to be able to return a casa table from a measures tool method.

1. I edited casa/code/xmlcasa/xml/conversions.xml adding the following tag near the beginning of the file with like tags:


 >substitute interface="casatable" as="table" in="measures" />

 

2. I added the following element as a child of the root
<tool>
element in code/xmlcasa/implement/measures/measures.xml


<needs>table</needs>

3. I gave my function a casatable returns type
 <returns type="casatable"/> 
in code/xmlcasa/implement/measures/measures.xml

4. I implemented a corresponding method with a
table*
return type in code/xmlcasa/implement/measures/measures_cmpt.cc

-- DaveMehringer - 2010-08-27
Topic revision: r1 - 2010-08-27, DaveMehringer
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback