aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flattr.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2004-04-20 02:37:40 +0000
committerThomas Grill <xovo@users.sourceforge.net>2004-04-20 02:37:40 +0000
commitd646867589f6bdc27fee21fb69cff58590a1f841 (patch)
tree36fb1b5b5b1f70f0a4c51be50a3f540ec5a2ca52 /externals/grill/flext/source/flattr.cpp
parent0ca2824c6025bb011b4b5a90c8d466ded270c3d2 (diff)
""
svn path=/trunk/; revision=1618
Diffstat (limited to 'externals/grill/flext/source/flattr.cpp')
-rw-r--r--externals/grill/flext/source/flattr.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/externals/grill/flext/source/flattr.cpp b/externals/grill/flext/source/flattr.cpp
index 7cb3a7b9..4890e62a 100644
--- a/externals/grill/flext/source/flattr.cpp
+++ b/externals/grill/flext/source/flattr.cpp
@@ -25,10 +25,10 @@ WARRANTIES, see the file, "license.txt," in this distribution.
#define STD
#endif
-flext_base::AttrItem::AttrItem(metharg tp,methfun f,int fl):
+flext_base::AttrItem::AttrItem(const t_symbol *t,metharg tp,methfun f,int fl):
Item(NULL),index(0),
flags(fl|afl_shown),
- argtp(tp),fun(f),
+ argtp(tp),fun(f),tag(t),
counter(NULL)
{}
@@ -50,7 +50,7 @@ void flext_base::AddAttrib(ItemCont *aa,ItemCont *ma,const char *attr,metharg tp
if(sfun) // if commented out, there will be a warning at run-time (more user-friendly)
{
- a = new AttrItem(tp,sfun,AttrItem::afl_set);
+ a = new AttrItem(asym,tp,sfun,AttrItem::afl_set);
a->index = aa->Members();
aa->Add(a,asym);
@@ -64,7 +64,7 @@ void flext_base::AddAttrib(ItemCont *aa,ItemCont *ma,const char *attr,metharg tp
if(gfun) // if commented out, there will be a warning at run-time (more user-friendly)
{
- b = new AttrItem(tp,gfun,AttrItem::afl_get);
+ b = new AttrItem(asym,tp,gfun,AttrItem::afl_get);
b->index = aa->Members();
aa->Add(b,asym);
@@ -337,11 +337,14 @@ bool flext_base::GetAttrib(const t_symbol *s,AtomList &a) const
return attr && GetAttrib(s,attr,a);
}
+//! \param tag symbol "get[attribute]"
bool flext_base::DumpAttrib(const t_symbol *tag,AttrItem *a) const
{
AtomList la;
bool ret = GetAttrib(tag,a,la);
- if(ret) ToOutAnything(GetOutAttr(),tag,la.Count(),la.Atoms());
+ if(ret) {
+ ToOutAnything(GetOutAttr(),a->tag,la.Count(),la.Atoms());
+ }
return ret;
}