<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE>@font-face {
        font-family: 宋
}
@font-face {
        font-family: 新
}
@font-face {
        font-family: @宋体;
}
@font-face {
        font-family: @新宋体;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; layout-grid: 15.6pt; }
P.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
LI.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
DIV.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=ZH-CN style="TEXT-JUSTIFY-TRIM: punctuation" vLink=purple link=blue>
<DIV><SPAN class=382050715-12042004><FONT face=Arial color=#0000ff
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=382050715-12042004><FONT face=Arial color=#0000ff size=2>Indeed
the Attribute class right now doesn't have a getName method <SPAN
class=382050715-12042004><FONT face=Arial color=#0000ff size=2>(future
improvement)</FONT></SPAN>, but you can inquire its the name using the com
interface given by: AttributeImpl::</FONT></SPAN><SPAN
class=382050715-12042004><FONT face=Arial color=#0000ff
size=2>getAttributeI()</FONT></SPAN></DIV>
<DIV><SPAN class=382050715-12042004><FONT face=Arial color=#0000ff
size=2>like:</FONT></SPAN></DIV>
<DIV><SPAN class=382050715-12042004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=382050715-12042004><FONT face=Arial color=#0000ff
size=2>std::string getAttributeName( Attribute *
myattribute )</FONT></SPAN></DIV>
<DIV><SPAN class=382050715-12042004><FONT face=Arial color=#0000ff
size=2>{</FONT></SPAN></DIV>
<DIV><SPAN class=382050715-12042004></SPAN><SPAN class=382050715-12042004><FONT
face=Arial color=#0000ff size=2> CComBSTR
bstrName;<BR> COMTHROW( myattribute->getAttributeI()->get_Name(
&bstrName ) );<BR> return Util::Copy( bstrName
);<BR>}</DIV></FONT></SPAN>
<DIV><SPAN class=382050715-12042004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=382050715-12042004><FONT face=Arial color=#0000ff size=2>Br,
Zoli</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
gme-users-bounces@list.isis.vanderbilt.edu
[mailto:gme-users-bounces@list.isis.vanderbilt.edu] <B>On Behalf Of </B>Zhimin
He<BR><B>Sent:</B> Sunday, April 11, 2004 1:35 PM<BR><B>To:</B>
gme-users@list.isis.vanderbilt.edu<BR><B>Subject:</B> [gme-users] How to get
the value of a certain attribute<BR><BR></FONT></DIV>
<DIV class=Section1 style="LAYOUT-GRID: 15.6pt none">
<P class=MsoNormal><FONT face=Arial size=1><SPAN lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial">I’m using BON2 that comes with GME
4.3.17. I can get the whole set of attributes with </SPAN></FONT><FONT
face=新宋体 size=1><SPAN lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: 新宋体">Model->getAttributes. When I tried
to iterate through the set, I couldn</SPAN></FONT><FONT size=1><SPAN
lang=EN-US style="FONT-SIZE: 9pt">’</SPAN></FONT><FONT face=新宋体 size=1><SPAN
lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: 新宋体">t find the api to get an
attribute</SPAN></FONT><FONT size=1><SPAN lang=EN-US
style="FONT-SIZE: 9pt">’</SPAN></FONT><FONT face=新宋体 size=1><SPAN lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: 新宋体">s name. Is there something similar to
attribute->getname()?</SPAN></FONT></P>
<P class=MsoNormal><FONT face=新宋体 size=1><SPAN lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: 新宋体">Thx</SPAN></FONT></P>
<P class=MsoNormal><FONT face=新宋体 size=1><SPAN lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: 新宋体">Zhimin
</SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>