Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

osg::Path Namespace Reference


Functions

static void fixWinNetworkPath (std::string &path)


Function Documentation

static void osg::Path::fixWinNetworkPath std::string &  path  )  [inline, static]
 

Definition at line 367 of file OSGFileSystem.inl.

00368     {
00369 #ifdef WIN32
00370         // HACK but on windows network paths like \\Server\bla doesn't work, 
00371         // but //Server/bla works ...
00372 
00373         if((path.length() >  2   ) &&
00374            (path[0]       == '\\') &&
00375            (path[1]       == '\\')  )
00376         {
00377             for(Int32 i = 0; i < path.length(); ++i)
00378             {
00379                 if(path[i] == '\\')
00380                 {
00381                     path[i] = '/';
00382                 }
00383             }
00384         }
00385 #endif
00386     }


Generated on Thu Aug 25 04:55:14 2005 for OpenSG by  doxygen 1.4.3