Permalink
Browse files

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

  • Loading branch information...
1 parent 489a7b9 commit 5b190cda954a53ff1c81a56cbdaa84d4c1664238 @mhroth committed Sep 9, 2011
Showing with 5 additions and 0 deletions.
  1. +4 −0 src/MessageMessageBox.cpp
  2. +1 −0 src/ObjectFactoryMap.cpp
@@ -23,6 +23,10 @@
#include "MessageMessageBox.h"
#include "PdGraph.h"
+MessageObject *MessageMessageBox::newObject(PdMessage *initString, PdGraph *graph) {
+ return new MessageMessageBox(initString->getSymbol(0), graph);
+}
+
/*
* The message box is overloaded with many kinds of functionality.
* A) The simplest case is one where only one message is specified, including a list of primitives
@@ -188,6 +188,7 @@ ObjectFactoryMap::ObjectFactoryMap() {
objectFactoryMap[string(MessageLogicalAnd::getObjectLabel())] = &MessageLogicalAnd::newObject;
objectFactoryMap[string(MessageLogicalOr::getObjectLabel())] = &MessageLogicalOr::newObject;
objectFactoryMap[string(MessageMaximum::getObjectLabel())] = &MessageMaximum::newObject;
+ objectFactoryMap[string(MessageMessageBox::getObjectLabel())] = &MessageMessageBox::newObject;
objectFactoryMap[string(MessageMetro::getObjectLabel())] = &MessageMetro::newObject;
objectFactoryMap[string(MessageMidiToFrequency::getObjectLabel())] = &MessageMidiToFrequency::newObject;
objectFactoryMap[string(MessageMinimum::getObjectLabel())] = &MessageMinimum::newObject;

0 comments on commit 5b190cd

Please sign in to comment.