aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flatom.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2003-08-01 02:32:50 +0000
committerThomas Grill <xovo@users.sourceforge.net>2003-08-01 02:32:50 +0000
commit18dbae9c9ffe5baa09e220c9f74af2dd7c0aa3f5 (patch)
treeb3b42426bd069faf6aed68f6016bd1b4d52794a3 /externals/grill/flext/source/flatom.cpp
parent694319f36d9cad2c8e48e24a7b45338a9d7004a5 (diff)
""
svn path=/trunk/; revision=810
Diffstat (limited to 'externals/grill/flext/source/flatom.cpp')
-rw-r--r--externals/grill/flext/source/flatom.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/externals/grill/flext/source/flatom.cpp b/externals/grill/flext/source/flatom.cpp
index 45739e66..afed8dec 100644
--- a/externals/grill/flext/source/flatom.cpp
+++ b/externals/grill/flext/source/flatom.cpp
@@ -91,6 +91,19 @@ int flext::AtomList::Compare(const AtomList &a) const
return Count() < a.Count()?-1:1;
}
+std::string flext::AtomList::Print() const
+{
+ char buffer[256];
+ std::string ret;
+ for(int i = 0; i < Count(); ++i) {
+ char *b = buffer;
+ if(i) *(b++) = ' '; // prepend space
+ PrintAtom((*this)[i],b,sizeof buffer-1);
+ ret += buffer;
+ }
+ return ret;
+}
+
#if FLEXT_SYS != FLEXT_SYS_JMAX
// not for jmax as long as t_symbol * == char *