diff options
Diffstat (limited to '06_performance/src/testApp.h')
| -rw-r--r-- | 06_performance/src/testApp.h | 9 |
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{ |
