Show
Ignore:
Timestamp:
10/20/07 18:11:52 (10 months ago)
Author:
cneumann
Message:

added: RootObjectT template paremter for ReferenceCountPointer?

and ParentPointer? templates - allows use for FieldBundles?

compile fixes - but still not done

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork/Source/Base/Field/OSGBaseFieldTraits.h

    r928 r976  
    8888 
    8989    static OSG_BASE_DLLMAPPING 
    90                  DataType &getType      (void); 
    91  
    92     static const Char8    *getSName     (void) { return "SFColor3f";   } 
    93  
    94     static const Char8    *getMName     (void) { return "MFColor3f";   } 
    95  
    96     static const Color3f   getDefault   (void) { return Color3f();     } 
     90           DataType      &getType   (void); 
     91 
     92    static Char8 const   *getSName  (void) { return "SFColor3f";   } 
     93 
     94    static Char8 const   *getMName  (void) { return "MFColor3f";   } 
     95 
     96    static Color3f const  getDefault(void) { return Color3f();     } 
    9797}; 
    9898 
     
    124124 
    125125    static OSG_BASE_DLLMAPPING 
    126                  DataType &getType      (void); 
    127  
    128     static const Char8    *getSName     (void) { return "SFColor3fx";   } 
    129  
    130     static const Char8    *getMName     (void) { return "MFColor3fx";   } 
    131  
    132     static const Color3fx  getDefault   (void) { return Color3fx();     } 
     126           DataType       &getType   (void); 
     127 
     128    static Char8 const    *getSName  (void) { return "SFColor3fx";   } 
     129 
     130    static Char8 const    *getMName  (void) { return "MFColor3fx";   } 
     131 
     132    static Color3fx const  getDefault(void) { return Color3fx();     } 
    133133}; 
    134134 
     
    160160 
    161161    static OSG_BASE_DLLMAPPING 
    162                  DataType &getType      (void); 
    163  
    164     static const Char8    *getSName     (void) { return "SFColor4f";   } 
    165  
    166     static const Char8    *getMName     (void) { return "MFColor4f";   } 
    167  
    168     static       Color4f   getDefault   (void){ return Color4f();      } 
     162           DataType      &getType   (void); 
     163 
     164    static Char8 const   *getSName  (void) { return "SFColor4f";   } 
     165 
     166    static Char8 const   *getMName  (void) { return "MFColor4f";   } 
     167 
     168    static Color4f const  getDefault(void) { return Color4f();     } 
    169169}; 
    170170 
     
    196196 
    197197    static OSG_BASE_DLLMAPPING 
    198                  DataType &getType      (void); 
    199  
    200     static const Char8    *getSName     (void) { return "SFColor4fx";   } 
    201  
    202     static const Char8    *getMName     (void) { return "MFColor4fx";   } 
    203  
    204     static       Color4fx  getDefault   (void){ return Color4fx();      } 
     198           DataType       &getType   (void); 
     199 
     200    static Char8 const    *getSName  (void) { return "SFColor4fx";   } 
     201 
     202    static Char8 const    *getMName  (void) { return "MFColor4fx";   } 
     203 
     204    static Color4fx const  getDefault(void) { return Color4fx();      } 
    205205}; 
    206206 
     
    231231 
    232232    static OSG_BASE_DLLMAPPING 
    233                  DataType &getType      (void); 
    234  
    235     static const Char8    *getSName     (void) { return "SFColor3ub";  } 
    236     static const Char8    *getMName     (void) { return "MFColor3ub";  } 
    237  
    238     static       Color3ub  getDefault   (void) { return Color3ub();    } 
     233           DataType       &getType   (void); 
     234 
     235    static Char8 const    *getSName  (void) { return "SFColor3ub";  } 
     236    static Char8 const    *getMName  (void) { return "MFColor3ub";  } 
     237 
     238    static Color3ub const  getDefault(void) { return Color3ub();    } 
    239239}; 
    240240 
     
    265265 
    266266    static OSG_BASE_DLLMAPPING 
    267                  DataType &getType      (void); 
    268  
    269     static const Char8    *getSName     (void) { return "SFColor4ub";  } 
    270  
    271     static const Char8    *getMName     (void) { return "MFColor4ub";  } 
    272  
    273     static       Color4ub  getDefault   (void) { return Color4ub();    } 
     267           DataType       &getType   (void); 
     268 
     269    static Char8 const    *getSName  (void) { return "SFColor4ub";  } 
     270 
     271    static Char8 const    *getMName  (void) { return "MFColor4ub";  } 
     272 
     273    static Color4ub const  getDefault(void) { return Color4ub();    } 
    274274}; 
    275275 
     
    300300 
    301301    static OSG_BASE_DLLMAPPING 
    302                  DataType   &getType      (void); 
    303  
    304     static const Char8      *getSName     (void) { return "SFString";    } 
    305  
    306     static const Char8      *getMName     (void) { return "MFString";    } 
    307  
    308     static       std::string getDefault   (void) { return std::string(); } 
     302           DataType    &getType   (void); 
     303 
     304    static Char8 const *getSName  (void) { return "SFString";    } 
     305 
     306    static Char8 const *getMName  (void) { return "MFString";    } 
     307 
     308    static std::string  getDefault(void) { return std::string(); } 
    309309 
    310310    static void putToStream(const std::string &val, 
     
    402402 
    403403    static OSG_BASE_DLLMAPPING 
    404                  DataType &getType      (void); 
    405  
    406     static const Char8    *getSName     (void) { return "SFTime";      } 
    407  
    408     static const Char8    *getMName     (void) { return "MFTime";      } 
    409  
    410     static       Time      getDefault   (void) { return Time();        } 
     404           DataType    &getType   (void); 
     405 
     406    static Char8 const *getSName  (void) { return "SFTime";      } 
     407 
     408    static Char8 const *getMName  (void) { return "MFTime";      } 
     409 
     410    static Time const   getDefault(void) { return Time();        } 
    411411}; 
    412412 
     
    438438 
    439439    static OSG_BASE_DLLMAPPING 
    440                  DataType     &getType     (void); 
    441  
    442     static const Char8        *getSName    (void) { return "SFDynamicVolume"; } 
    443  
    444     static const Char8        *getMName    (void) { return "MFDynamicVolume"; } 
    445  
    446     static const DynamicVolume getDefault  (void) { return DynamicVolume();   } 
     440           DataType            &getType     (void); 
     441 
     442    static Char8 const         *getSName    (void) { return "SFDynamicVolume"; } 
     443 
     444    static Char8 const         *getMName    (void) { return "MFDynamicVolume"; } 
     445 
     446    static DynamicVolume const getDefault  (void) { return DynamicVolume();   } 
    447447 
    448448 
     
    768768 
    769769    static OSG_BASE_DLLMAPPING 
    770                  DataType  &getType     (void); 
    771  
    772     static const Char8     *getSName    (void) { return "SFBoxVolume"; } 
    773  
    774     static const Char8     *getMName    (void) { return "MFBoxVolume"; } 
    775  
    776     static const BoxVolume  getDefault  (void) { return BoxVolume();   } 
     770           DataType        &getType   (void); 
     771 
     772    static Char8 const     *getSName  (void) { return "SFBoxVolume"; } 
     773 
     774    static Char8 const     *getMName  (void) { return "MFBoxVolume"; } 
     775 
     776    static BoxVolume const  getDefault(void) { return BoxVolume();   } 
    777777 
    778778 
     
    960960 
    961961    static OSG_BASE_DLLMAPPING 
    962                  DataType  &getType (void); 
    963  
    964     static const Char8     *getSName(void)  { return "SFBitVector";   } 
    965  
    966     static const Char8     *getMName(void)  { return "MFBitVector";   } 
    967  
    968     static       BitVector  getDefault(void) { return BitVector();     } 
     962           DataType        &getType  (void); 
     963 
     964    static Char8 const     *getSName  (void) { return "SFBitVector";   } 
     965 
     966    static Char8 const     *getMName  (void) { return "MFBitVector";   } 
     967 
     968    static BitVector const  getDefault(void) { return BitVector();     } 
    969969}; 
    970970 
     
    995995 
    996996    static OSG_BASE_DLLMAPPING 
    997            DataType &getType      (void); 
    998  
    999     static Char8    *getSName     (void) { return "SFGLenum";          } 
    1000     static Char8    *getMName     (void) { return "MFGLenum";          } 
    1001  
    1002     static GLenum    getDefault   (void) { return 0;                   } 
     997           DataType     &getType   (void); 
     998 
     999    static Char8 const  *getSName  (void) { return "SFGLenum";          } 
     1000    static Char8 const  *getMName  (void) { return "MFGLenum";          } 
     1001 
     1002    static GLenum const  getDefault(void) { return 0;                   } 
    10031003 
    10041004    static void putToStream(const GLenum    &val, 
     
    10391039 
    10401040    static OSG_BASE_DLLMAPPING 
    1041                  DataType &getType      (void); 
    1042  
    1043     static const Char8    *getSName     (void) { return "SFPlane";      } 
    1044  
    1045     static const Char8    *getMName     (void) { return "MFPlane";      } 
    1046  
    1047     static       Plane     getDefault   (void) { return Plane();        } 
     1041           DataType    &getType   (void); 
     1042 
     1043    static Char8 const *getSName  (void) { return "SFPlane";      } 
     1044 
     1045    static Char8 const *getMName  (void) { return "MFPlane";      } 
     1046 
     1047    static Plane const  getDefault(void) { return Plane();        } 
    10481048 
    10491049    static       UInt32    getBinSize (const Plane &)