Show
Ignore:
Timestamp:
02/27/08 09:30:29 (9 months ago)
Author:
cneumann
Message:

fixed: Overzealous use of RefPtr? replaced with InternalRefPtr?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork2/Source/System/FileIO/OSB/OSGNFIOBase.cpp

    r1039 r1063  
    7878\***************************************************************************/ 
    7979 
    80 NFIOOptions                     NFIOBase::_options; 
    81  
    82 NFIOBase::BinaryReadHandler     *NFIOBase::_in = NULL; 
    83 NFIOBase::BinaryWriteHandler    *NFIOBase::_out = NULL; 
    84  
    85 //UInt32                          NFIOBase::_id = 1; 
    86 NFIOBase::fcMap                 NFIOBase::_fcMap; 
    87 std::list<NFIOBase::fcInfo>     NFIOBase::_fieldList; 
    88  
    89 std::list<FieldContainerRefPtr> NFIOBase::_fcList; 
    90 std::set<UInt32>                NFIOBase::_fcSet; 
    91 //NFIOBase::IdMap                 NFIOBase::_ids; 
    92  
    93 UInt16                          NFIOBase::_header_version = 0; 
     80NFIOOptions                             NFIOBase::_options; 
     81 
     82NFIOBase::BinaryReadHandler            *NFIOBase::_in = NULL; 
     83NFIOBase::BinaryWriteHandler           *NFIOBase::_out = NULL; 
     84 
     85//UInt32                                  NFIOBase::_id = 1; 
     86NFIOBase::fcMap                         NFIOBase::_fcMap; 
     87std::list<NFIOBase::fcInfo>             NFIOBase::_fieldList; 
     88 
     89std::list<FieldContainerInternalRefPtr> NFIOBase::_fcList; 
     90std::set<UInt32>                        NFIOBase::_fcSet; 
     91//NFIOBase::IdMap                         NFIOBase::_ids; 
     92 
     93UInt16                                  NFIOBase::_header_version = 0; 
    9494 
    9595/***************************************************************************\ 
     
    124124    _in = new BinaryReadHandler(is); 
    125125 
    126     NodeRefPtr node; 
    127  
    128     FieldContainerRefPtr fc = readFieldContainer(); 
     126    NodeInternalRefPtr           node; 
     127    FieldContainerInternalRefPtr fc   = readFieldContainer(); 
    129128     
    130129    node = boost::dynamic_pointer_cast<Node>(fc); 
     
    232231    std::string typeName; 
    233232    UInt32 id; 
    234     FieldContainerRefPtr root; 
    235     FieldContainerRefPtr fc; 
     233    FieldContainerInternalRefPtr root; 
     234    FieldContainerInternalRefPtr fc; 
    236235 
    237236    // Keep reading field containers until end of file 
     
    677676    // Note: list grows in reachability behind the scenes as side-effect of writeFC 
    678677    FieldContainerPtr lfc; 
    679     for(std::list<FieldContainerRefPtr>::iterator i = _fcList.begin(); 
     678    for(std::list<FieldContainerInternalRefPtr>::iterator i = _fcList.begin(); 
    680679        i != _fcList.end(); ++i) 
    681680    { 
     
    890889    { 
    891890        _fcSet.insert(id); 
    892         _fcList.push_back(FieldContainerRefPtr(fc)); 
     891        _fcList.push_back(FieldContainerInternalRefPtr(fc)); 
    893892    } 
    894893}