<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi All,<div class=""><br class=""></div><div class="">Some time ago a set of findXXX methods were add to the Attribute class in order to make accessing items easier. For example findDouble(“a") would return a DoubleItemPtr whose name is a. There is also a templated method called findAs which does pretty much the same thing findAs<DoubleItem>(“a”)</div><div class=""><br class=""></div><div class="">When this was done, the developer failed to notice that GroupItems also behave like Attributes in that they also contain Items and as a result it only has the original find() method.</div><div class=""><br class=""></div><div class="">I figured the reason that we have the explicit findXXX methods was to provide Python wrappings since the original findAs method could not be wrapped directly. However, I discovered that there are Python findAs methods being generated explicitly in the typesystem.xml (findAsDouble for example).</div><div class=""><br class=""></div><div class="">As a result we have findXXX and findAs style methods being used in both C++ and Python code. I would like there to be only one style for each.</div><div class=""> </div><div class="">What I propose is that the findXXX methods be removed from the Attribute class and just leave the findAs template (and add it to GroupItem). Also to add the findAs methods in the GroupItem Python wrapping.</div><div class=""><br class=""></div><div class="">Any comments?</div><div class=""><br class=""></div><div class="">Bob</div><div class=""><br class=""></div><div class=""><div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Robert M. O'Bara, MEng.<br class="">Assistant Director of Scientific Computing<br class=""><br class="">Kitware Inc.<br class="">28 Corporate Drive<br class="">Suite 101<br class="">Clifton Park, NY 12065<br class=""><br class="">Phone: (518) 881- 4931</div><div class=""><br class=""></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br class=""></div></body></html>