Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add "msg" and Message Box factory method to ObjectFactoryMap.

  • Loading branch information...
commit 5b190cda954a53ff1c81a56cbdaa84d4c1664238 1 parent 489a7b9
Martin Roth authored September 09, 2011
4  src/MessageMessageBox.cpp
@@ -23,6 +23,10 @@
23 23
 #include "MessageMessageBox.h"
24 24
 #include "PdGraph.h"
25 25
 
  26
+MessageObject *MessageMessageBox::newObject(PdMessage *initString, PdGraph *graph) {
  27
+  return new MessageMessageBox(initString->getSymbol(0), graph);
  28
+}
  29
+
26 30
 /*
27 31
  * The message box is overloaded with many kinds of functionality.
28 32
  * A) The simplest case is one where only one message is specified, including a list of primitives
1  src/ObjectFactoryMap.cpp
@@ -188,6 +188,7 @@ ObjectFactoryMap::ObjectFactoryMap() {
188 188
   objectFactoryMap[string(MessageLogicalAnd::getObjectLabel())] = &MessageLogicalAnd::newObject;
189 189
   objectFactoryMap[string(MessageLogicalOr::getObjectLabel())] = &MessageLogicalOr::newObject;
190 190
   objectFactoryMap[string(MessageMaximum::getObjectLabel())] = &MessageMaximum::newObject;
  191
+  objectFactoryMap[string(MessageMessageBox::getObjectLabel())] = &MessageMessageBox::newObject;
191 192
   objectFactoryMap[string(MessageMetro::getObjectLabel())] = &MessageMetro::newObject;
192 193
   objectFactoryMap[string(MessageMidiToFrequency::getObjectLabel())] = &MessageMidiToFrequency::newObject;
193 194
   objectFactoryMap[string(MessageMinimum::getObjectLabel())] = &MessageMinimum::newObject;

0 notes on commit 5b190cd

Please sign in to comment.
Something went wrong with that request. Please try again.