Show
Ignore:
Timestamp:
12/29/06 10:28:00 (2 years ago)
Author:
cneumann
Message:

- regenerated all base files to include the full set

of access functions for non-ptr mfields.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Source/System/NodeCores/Groups/Misc/OSGInlineBase.cpp

    r435 r459  
    8383     
    8484*/ 
     85 
    8586/*! \var bool            InlineBase::_sfLoaded 
    8687     
    8788*/ 
     89 
    8890 
    8991void InlineBase::classDescInserter(TypeObject &oType) 
     
    240242 
    241243 
     244/*********************************** Non-ptr code ********************************/ 
     245void InlineBase::pushToUrl(const std::string& value) 
     246{ 
     247    editMField(UrlFieldMask, _mfUrl); 
     248    _mfUrl.push_back(value); 
     249} 
     250 
     251void InlineBase::insertIntoUrl(UInt32                uiIndex, 
     252                                                   const std::string& value   ) 
     253{ 
     254    editMField(UrlFieldMask, _mfUrl); 
     255 
     256    MFString::iterator fieldIt = _mfUrl.begin(); 
     257 
     258    fieldIt += uiIndex; 
     259 
     260    _mfUrl.insert(fieldIt, value); 
     261} 
     262 
     263void InlineBase::replaceInUrl(UInt32                uiIndex, 
     264                                                       const std::string& value   ) 
     265{ 
     266    if(uiIndex >= _mfUrl.size()) 
     267        return; 
     268 
     269    editMField(UrlFieldMask, _mfUrl); 
     270 
     271    _mfUrl[uiIndex] = value; 
     272} 
     273 
     274void InlineBase::replaceInUrl(const std::string& pOldElem, 
     275                                                        const std::string& pNewElem) 
     276{ 
     277    Int32  elemIdx = _mfUrl.findIndex(pOldElem); 
     278 
     279    if(elemIdx != -1) 
     280    { 
     281        editMField(UrlFieldMask, _mfUrl); 
     282 
     283        MFString::iterator fieldIt = _mfUrl.begin(); 
     284 
     285        fieldIt += elemIdx; 
     286 
     287        (*fieldIt) = pNewElem; 
     288    } 
     289} 
     290 
     291void InlineBase::removeFromUrl(UInt32 uiIndex) 
     292{ 
     293    if(uiIndex < _mfUrl.size()) 
     294    { 
     295        editMField(UrlFieldMask, _mfUrl); 
     296 
     297        MFString::iterator fieldIt = _mfUrl.begin(); 
     298 
     299        fieldIt += uiIndex; 
     300        _mfUrl.erase(fieldIt); 
     301    } 
     302} 
     303 
     304void InlineBase::removeFromUrl(const std::string& value) 
     305{ 
     306    Int32 iElemIdx = _mfUrl.findIndex(value); 
     307 
     308    if(iElemIdx != -1) 
     309    { 
     310        editMField(UrlFieldMask, _mfUrl); 
     311 
     312        MFString::iterator fieldIt = _mfUrl.begin(); 
     313 
     314        fieldIt += iElemIdx; 
     315 
     316        _mfUrl.erase(fieldIt); 
     317    } 
     318} 
     319 
     320void InlineBase::clearUrl(void) 
     321{ 
     322    editMField(UrlFieldMask, _mfUrl); 
     323 
     324    _mfUrl.clear(); 
     325} 
     326 
     327 
    242328/*------------------------------ access -----------------------------------*/ 
    243329