rem: << std::endl;
add: << endLog;
context: int main(int argc, char **argv){    char     *opt;    NodePtr   scene=NullFC;    // OSG init    osgInit(argc,argv);    // GLUT init    int winid = setupGLUT(&argc, argv);    // the connection between GLUT and OpenSG    MultiDisplayWindowPtr mwin= MultiDisplayWindow::create();    // all changes must be enclosed in beginEditCP and endEditCP    // otherwise the changes will not be transfered over the network.    beginEditCP(mwin);    // evaluate params    for(int a=1 ; a<argc ; ++a)    {        if(argv[a][0] == '-')        {            switch(argv[a][1])            {                case 'm': mwin->setConnectionType("Multicast");                          break;                case 'f': opt = argv[a][2] ? argv[a]+2 : argv[++a];                          if(opt != argv[argc])                              scene = SceneFileHandler::the().read(                                  opt,0);                          break;                case 'x': opt = argv[a][2] ? argv[a]+2 : argv[++a];                          if(opt != argv[argc])                              mwin->setHServers(atoi(opt));                          break;                case 'y': opt = argv[a][2] ? argv[a]+2 : argv[++a];                          if(opt != argv[argc])                              mwin->setVServers(atoi(opt));                          break;                default:  std::cout << argv[0]                                      << " -m"                                    << " -f file"                                    << " -x horizontal server cnt"                                    << " -y vertical server cnt"                                    << std::endl;                          return 0;            }        }        else        {            printf("%s\n",argv[a]);            mwin->getServers().push_back(argv[a]);        }    }    // dummy size for navigator    mwin->setSize(300,300);    // end edit of cluster window    endEditCP(mwin);    // create default scene    if(scene == NullFC)       scene = makeTorus(.5, 2, 16, 16);    // create the SimpleSceneManager helper    mgr = new SimpleSceneManager;    // tell the manager what to manage    mgr->setWindow(mwin );    mgr->setRoot  (scene);    // show the whole scene    mgr->showAll();        // initialize window    mwin->init();        // GLUT main loop    glutMainLoop();    return 0;}