summaryrefslogtreecommitdiff
path: root/06_performance/src/testApp.h
diff options
context:
space:
mode:
authorTim <tim@lan184-102.dhcp.ulster.ac.uk>2013-06-20 18:25:10 +0100
committerTim <tim@lan184-102.dhcp.ulster.ac.uk>2013-06-20 18:25:10 +0100
commit1ffdeed6aedb75809255050261af16849cad2258 (patch)
tree191eece9b5994902598f0415ceb2ffb0715c84e9 /06_performance/src/testApp.h
parent138e1b84ee55246bd70e1ca21155de16690ea86d (diff)
very nearly good
Diffstat (limited to '06_performance/src/testApp.h')
-rw-r--r--06_performance/src/testApp.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/06_performance/src/testApp.h b/06_performance/src/testApp.h
index 02ab1ec..bc0b8fb 100644
--- a/06_performance/src/testApp.h
+++ b/06_performance/src/testApp.h
@@ -33,6 +33,15 @@ average them on the fly? seems likely
#define PICTURE 1
#define GRABBER 2
+template <typename OutputIterator>
+int explode(const string &s, const char c, OutputIterator output) {
+ stringstream data(s);
+ string line;
+ int i=0;
+ while(std::getline(data,line,c)) { *output++ = line; i++; }
+ return i;
+}
+
class testApp : public ofBaseApp, public ofxMidiListener{