projects
/
laserbrain_demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adding exhibit data, starting with descriptions
[laserbrain_demo]
/
src
/
exhibit.cc
diff --git
a/src/exhibit.cc
b/src/exhibit.cc
index
d76b291
..
eaa2251
100644
(file)
--- a/
src/exhibit.cc
+++ b/
src/exhibit.cc
@@
-11,6
+11,8
@@
public:
ExhibitPriv();
};
ExhibitPriv();
};
+
+// selection
ExSelection::ExSelection(Exhibit *ex)
{
this->ex = ex;
ExSelection::ExSelection(Exhibit *ex)
{
this->ex = ex;
@@
-23,11
+25,24
@@
ExSelection::operator bool() const
return ex != 0;
}
return ex != 0;
}
+// Exhibit data
+ExData::ExData()
+{
+ voice = 0;
+}
+
+ExData::~ExData()
+{
+ delete voice;
+}
+
+// private data for each exhibit type
ExhibitPriv::ExhibitPriv()
{
orig_node = 0;
}
ExhibitPriv::ExhibitPriv()
{
orig_node = 0;
}
+// exhibit class
Exhibit::Exhibit()
{
priv = new ExhibitPriv;
Exhibit::Exhibit()
{
priv = new ExhibitPriv;