Show
Ignore:
Timestamp:
03/10/09 13:21:13 (6 years ago)
Author:
robert
Message:

From Stephan Huber,
"Attached you'll find a proposal for using different
protocols. The idea behind the new code is:

1.) plugins/apps register protocols which they can handle. This is done
via osgDB::Registry::registerProtocol(aProtocolName). Plugins register
supported protocols as usual via ReaderWriter::supportsProtocol(..), the
Registry is updated accordingly.

2.) osgDB::containsServerAddress checks first for an appearance of "://"
in the filename and then checks the protocol against the set of
registered protocols via Registry::isProtocolRegistered(aProtocollName)

3.) the other getServer*-functions changed as well, there's even a
getServerProtocol-function

With these changes filenames/Urls get routed to loaded plugins even with
different protocols than 'http'."

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osgDB/FileNameUtils

    r8912 r9884  
    4141 
    4242extern OSGDB_EXPORT bool containsServerAddress(const std::string& filename); 
     43extern OSGDB_EXPORT std::string getServerProtocol(const std::string& filename); 
    4344extern OSGDB_EXPORT std::string getServerAddress(const std::string& filename); 
    4445extern OSGDB_EXPORT std::string getServerFileName(const std::string& filename);