aboutsummaryrefslogtreecommitdiff
path: root/lout/identity.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2013-03-20 12:25:24 +0100
committerSebastian Geerken <devnull@localhost>2013-03-20 12:25:24 +0100
commit686c09d54408562c7df08b06fb89c4efe5152704 (patch)
tree640180ddb6aa1943a95122baf7c9865f0bd45d56 /lout/identity.cc
parentadc95374e65635d5e1251fc6eed4818a9e22df4a (diff)
Some cleanup.
Diffstat (limited to 'lout/identity.cc')
-rw-r--r--lout/identity.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/lout/identity.cc b/lout/identity.cc
index ebe95ef0..aecd9d5f 100644
--- a/lout/identity.cc
+++ b/lout/identity.cc
@@ -39,6 +39,22 @@ IdentifiableObject::Class::Class (IdentifiableObject::Class *parent, int id,
this->className = className;
}
+void IdentifiableObject::Class::intoStringBuffer(misc::StringBuffer *sb)
+{
+ sb->append ("<class ");
+ sb->append (className);
+ sb->append (" (");
+ sb->appendInt (id);
+ sb->append (")");
+
+ if (parent) {
+ sb->append (", parent: ");
+ parent->intoStringBuffer (sb);
+ }
+
+ sb->append (">");
+}
+
HashTable <ConstString, IdentifiableObject::Class>
*IdentifiableObject::classesByName =
new HashTable<ConstString, IdentifiableObject::Class> (true, true);