1 // LoggingConsumerApp.cpp 2 // 3 // HISTORY 4 // eamoon@meadgroup.com 11june99 5 // [origin: Be Developer Newsletter III.18: 5may99] 6 7 #include "NodeHarnessApp.h" 8 #include "MediaNodeControlApp.h" 9 #include <cstdio> 10 #include <cstring> 11 #include <cstdlib> 12 13 const char* const g_pAppSignature = "application/x-vnd.Be.LoggingConsumerApp"; 14 15 int main(int argc, char** argv) { 16 if(argc < 2 || strstr(argv[1], "node=") != argv[1]) { 17 // start in standalone app mode 18 NodeHarnessApp app(g_pAppSignature); 19 app.Run(); 20 } 21 else { 22 // start node control panel 23 media_node_id id = atol(argv[1] + 5); 24 MediaNodeControlApp app(g_pAppSignature, id); 25 app.Run(); 26 } 27 return 0; 28 } 29 30 // END -- LoggingConsumerApp.cpp -- 31