Show
Ignore:
Timestamp:
06/04/09 16:07:12 (6 years ago)
Author:
robert
Message:

Implemented updating of revision files as new data is writing to the FileCache?

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgdatabaserevisions/osgdatabaserevisions.cpp

    r10310 r10311  
    6767#endif 
    6868 
    69     std::string url, username, password; 
    70     while(arguments.read("--login",url, username, password)) 
    71     { 
    72         if (!osgDB::Registry::instance()->getAuthenticationMap()) 
    73         { 
    74             osgDB::Registry::instance()->setAuthenticationMap(new osgDB::AuthenticationMap); 
    75             osgDB::Registry::instance()->getAuthenticationMap()->addAuthenticationDetails( 
    76                 url, 
    77                 new osgDB::AuthenticationDetails(username, password) 
    78             ); 
    79         } 
    80     } 
    81  
    8269    // set up the camera manipulators. 
    8370    { 
     
    136123    if (fileCache) 
    137124    { 
    138         osg::notify(osg::NOTICE)<<"We have FileCache "<<fileCache<<std::endl; 
    139125        fileCache->loadDatabaseRevisionsForFile(file); 
     126 
     127        // fileCache->loadDatabaseRevisionsForFile(file); // test to make sure that repeated loads of same revision file doesn't cause problems 
    140128    } 
     129 
    141130 
    142131    // load the data