Show
Ignore:
Timestamp:
01/16/08 16:07:40 (1 year ago)
Author:
cneumann
Message:

changed: - factory functions return a TransitPtr? that can not be implicitly

converted to C Ptr. Should help with porting.

added: - GlobalRefPtr?, needed for cases where upon return from main

a RefPtr? goes out of scope (it would attempt to access the
FCFactory which is already shutdown at that point).

status: - vrml loader does not compile (needs porting to ref ptr)

  • tutorials compile, run and exit cleanly
  • multithreading and cluster are untested, yet
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork2/Source/System/FileIO/Base/OSGSceneFileHandler.h

    r785 r1039  
    6666    /*==========================  PUBLIC  =================================*/ 
    6767 
    68     typedef NodePtr (*FileIOReadCBF )(      SceneFileType *type, 
    69                                             std::istream  &is,  
    70                                       const Char8         *ext ); 
    71  
    72     typedef bool    (*FileIOWriteCBF)(      SceneFileType *type, 
    73                                       const NodePtr       &node,  
    74                                             std::ostream  &os, 
    75                                       const Char8         *ext,  
    76                                             bool           compress); 
     68    typedef NodeTransitPtr (*FileIOReadCBF )(      SceneFileType *type, 
     69                                                   std::istream  &is,  
     70                                             const Char8         *ext ); 
     71 
     72    typedef bool           (*FileIOWriteCBF)(      SceneFileType *type, 
     73                                             const NodePtr       &node,  
     74                                                   std::ostream  &os, 
     75                                             const Char8         *ext,  
     76                                                   bool           compress); 
    7777 
    7878  public: 
    7979 
    80     typedef std::vector<FieldContainerPtr> FCPtrStore; 
     80    typedef std::vector<FieldContainerRefPtr> FCPtrStore; 
    8181 
    8282    /*---------------------------------------------------------------------*/ 
     
    113113    /*! \{                                                                 */ 
    114114 
    115     virtual NodePtr    read        (      std::istream &is,  
    116                                     const Char8        *ext, 
    117                                           GraphOpSeq   *graphOpSeq =  
    118                                                            _defaultgraphOpSeq); 
    119  
    120     virtual FCPtrStore readTopNodes(      std::istream &is,  
    121                                     const Char8        *ext, 
    122                                           GraphOpSeq   *graphOpSeq =  
    123                                                            _defaultgraphOpSeq); 
    124  
    125     virtual NodePtr    read        (const  Char8       *fileName, 
    126                                            GraphOpSeq  *graphOpSeq =  
    127                                                            _defaultgraphOpSeq); 
    128  
    129     virtual FCPtrStore readTopNodes(const  Char8       *fileName, 
    130                                            GraphOpSeq  *graphOpSeq =  
     115    virtual NodeTransitPtr read        (      std::istream &is,  
     116                                        const Char8        *ext, 
     117                                              GraphOpSeq   *graphOpSeq =  
     118                                                           _defaultgraphOpSeq); 
     119 
     120    virtual FCPtrStore     readTopNodes(      std::istream &is,  
     121                                        const Char8        *ext, 
     122                                              GraphOpSeq   *graphOpSeq =  
     123                                                           _defaultgraphOpSeq); 
     124 
     125    virtual NodeTransitPtr read        (const  Char8       *fileName, 
     126                                               GraphOpSeq  *graphOpSeq =  
     127                                                           _defaultgraphOpSeq); 
     128 
     129    virtual FCPtrStore     readTopNodes(const  Char8       *fileName, 
     130                                               GraphOpSeq  *graphOpSeq =  
    131131                                                           _defaultgraphOpSeq); 
    132132