Changeset 1013

Show
Ignore:
Timestamp:
11/09/07 12:34:27 (8 months ago)
Author:
cneumann
Message:

added: helper functions for construction of field names.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork2/Source/System/FieldContainer/Fields/OSGFieldTraitsParentPointerFieldBase.h

    r1012 r1013  
    9191    /*! \}                                                                 */ 
    9292    /*---------------------------------------------------------------------*/ 
     93    /*! \name Name Construction                                            */ 
     94    /*! \{                                                                 */ 
     95     
     96    static std::string buildParentPtrName(std::string const &objectTypeName); 
     97     
     98    /*! \}                                                                 */ 
     99    /*---------------------------------------------------------------------*/ 
    93100}; 
    94101 
  • branches/Carsten_PtrWork2/Source/System/FieldContainer/Fields/OSGFieldTraitsParentPointerFieldBase.inl

    r1012 r1013  
    138138} 
    139139 
     140/*-------------------------------------------------------------------------*/ 
     141/* Name Construction                                                       */ 
     142 
     143template <class ValueT, Int32 NamespaceI> 
     144inline std::string 
     145FieldTraitsParentPointerFieldBase<ValueT, NamespaceI>::buildParentPtrName( 
     146    std::string const &objectTypeName) 
     147{ 
     148    return objectTypeName + "ParentPtrField"; 
     149} 
     150 
    140151OSG_END_NAMESPACE 
  • branches/Carsten_PtrWork2/Source/System/FieldContainer/Fields/OSGFieldTraitsPointerFieldBase.h

    r1012 r1013  
    8686                            FieldContainerPtr        *pObjectStore, 
    8787                            UInt32             const  uiNumObjects ); 
    88                              
     88     
     89    /*! \}                                                                 */ 
     90    /*---------------------------------------------------------------------*/ 
     91    /*! \name Name Construction                                            */ 
     92    /*! \{                                                                 */  
     93     
     94    static std::string buildChildPtrName   (std::string const &objectTypeName); 
     95    static std::string buildInternalPtrName(std::string const &objectTypeName); 
     96    static std::string buildWeakPtrName    (std::string const &objectTypeName); 
     97     
    8998    /*! \}                                                                 */ 
    9099    /*---------------------------------------------------------------------*/ 
  • branches/Carsten_PtrWork2/Source/System/FieldContainer/Fields/OSGFieldTraitsPointerFieldBase.inl

    r1012 r1013  
    137137} 
    138138 
     139/*-------------------------------------------------------------------------*/ 
     140/* Name Construction                                                       */ 
     141 
     142template <class ValueT, Int32 NamespaceI> 
     143inline std::string 
     144FieldTraitsPointerFieldBase<ValueT, NamespaceI>::buildChildPtrName( 
     145    std::string const &objectTypeName) 
     146{ 
     147    return objectTypeName + "ChildPtrField"; 
     148} 
     149 
     150template <class ValueT, Int32 NamespaceI> 
     151inline std::string 
     152FieldTraitsPointerFieldBase<ValueT, NamespaceI>::buildInternalPtrName( 
     153    std::string const &objectTypeName) 
     154{ 
     155    return objectTypeName + "InternalPtrField"; 
     156} 
     157 
     158template <class ValueT, Int32 NamespaceI> 
     159inline std::string 
     160FieldTraitsPointerFieldBase<ValueT, NamespaceI>::buildWeakPtrName( 
     161    std::string const &objectTypeName) 
     162{ 
     163    return objectTypeName + "WeakPtrField"; 
     164} 
     165 
    139166OSG_END_NAMESPACE