Changeset 8583

Show
Ignore:
Timestamp:
07/15/08 12:45:07
Author:
robert
Message:

Updated wrappers

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • OpenSceneGraph/trunk/src/osgWrappers/osgDB/Archive.cpp

    r6903 r8583  
    4747                  Properties::VIRTUAL, 
    4848                  __bool__acceptsExtension__C5_std_string_R1, 
    49                   "", 
     49                  "return true if ReaderWriter accepts specified file extension. ", 
    5050                  ""); 
    5151        I_Method0(void, close, 
  • OpenSceneGraph/trunk/src/osgWrappers/osgDB/ReaderWriter.cpp

    r8541 r8583  
    2727#undef OUT 
    2828#endif 
     29 
     30TYPE_NAME_ALIAS(std::map< std::string COMMA  std::string >, osgDB::ReaderWriter::FormatDescriptionMap) 
    2931 
    3032BEGIN_ENUM_REFLECTOR(osgDB::ReaderWriter::ArchiveStatus) 
     
    7072                  "return the name of the object's class type. ", 
    7173                  "Must be defined by derived classes. "); 
     74        I_Method0(const osgDB::ReaderWriter::FormatDescriptionMap &, supportedProtocols, 
     75                  Properties::VIRTUAL, 
     76                  __C5_FormatDescriptionMap_R1__supportedProtocols, 
     77                  "return which protocols are supported by ReaderWriter. ", 
     78                  ""); 
     79        I_Method0(const osgDB::ReaderWriter::FormatDescriptionMap &, supportedExtensions, 
     80                  Properties::VIRTUAL, 
     81                  __C5_FormatDescriptionMap_R1__supportedExtensions, 
     82                  "return which list of file extensions supported by ReaderWriter. ", 
     83                  ""); 
     84        I_Method0(const osgDB::ReaderWriter::FormatDescriptionMap &, supportedOptions, 
     85                  Properties::VIRTUAL, 
     86                  __C5_FormatDescriptionMap_R1__supportedOptions, 
     87                  "return which list of file extensions supported by ReaderWriter. ", 
     88                  ""); 
    7289        I_Method1(bool, acceptsExtension, IN, const std::string &, x, 
    7390                  Properties::VIRTUAL, 
    7491                  __bool__acceptsExtension__C5_std_string_R1, 
    75                   "", 
     92                  "return true if ReaderWriter accepts specified file extension. ", 
    7693                  ""); 
    7794        I_MethodWithDefaults4(osgDB::ReaderWriter::ReadResult, openArchive, IN, const std::string &, x, , IN, osgDB::ReaderWriter::ArchiveStatus, x, , IN, unsigned, int, 4096, IN, const osgDB::ReaderWriter::Options *, x, NULL, 
     
    185202                              "", 
    186203                              ""); 
     204        I_ProtectedMethod2(void, supportsProtocol, IN, const std::string &, fmt, IN, const std::string &, description, 
     205                           Properties::NON_VIRTUAL, 
     206                           Properties::NON_CONST, 
     207                           __void__supportsProtocol__C5_std_string_R1__C5_std_string_R1, 
     208                           "", 
     209                           ""); 
     210        I_ProtectedMethod2(void, supportsExtension, IN, const std::string &, fmt, IN, const std::string &, description, 
     211                           Properties::NON_VIRTUAL, 
     212                           Properties::NON_CONST, 
     213                           __void__supportsExtension__C5_std_string_R1__C5_std_string_R1, 
     214                           "", 
     215                           ""); 
     216        I_ProtectedMethod2(void, supportsOption, IN, const std::string &, fmt, IN, const std::string &, description, 
     217                           Properties::NON_VIRTUAL, 
     218                           Properties::NON_CONST, 
     219                           __void__supportsOption__C5_std_string_R1__C5_std_string_R1, 
     220                           "", 
     221                           ""); 
    187222END_REFLECTOR 
    188223 
  • OpenSceneGraph/trunk/src/osgWrappers/osgDB/Registry.cpp

    r8541 r8583  
    6969END_REFLECTOR 
    7070 
     71TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgDB::ReaderWriter > >, osgDB::Registry::ReaderWriterList) 
     72 
    7173BEGIN_OBJECT_REFLECTOR(osgDB::Registry) 
    7274        I_DeclaringFile("osgDB/Registry"); 
     
    141143                  __ReaderWriter_P1__getReaderWriterForExtension__C5_std_string_R1, 
    142144                  "get a reader writer which handles specified extension. ", 
     145                  ""); 
     146        I_Method0(osgDB::Registry::ReaderWriterList &, getReaderWriterList, 
     147                  Properties::NON_VIRTUAL, 
     148                  __ReaderWriterList_R1__getReaderWriterList, 
     149                  "get list of all registered ReaderWriters. ", 
     150                  ""); 
     151        I_Method0(const osgDB::Registry::ReaderWriterList &, getReaderWriterList, 
     152                  Properties::NON_VIRTUAL, 
     153                  __C5_ReaderWriterList_R1__getReaderWriterList, 
     154                  "get const list of all registered ReaderWriters. ", 
    143155                  ""); 
    144156        I_Method2(osg::Object *, readObjectOfType, IN, const osg::Object &, compObj, IN, osgDB::Input &, fr, 
     
    579591                         __ReadFileCallback_P1__getReadFileCallback,  
    580592                         __void__setReadFileCallback__ReadFileCallback_P1); 
     593        I_SimpleProperty(osgDB::Registry::ReaderWriterList &, ReaderWriterList,  
     594                         __ReaderWriterList_R1__getReaderWriterList,  
     595                         0); 
    581596        I_SimpleProperty(osgDB::SharedStateManager *, SharedStateManager,  
    582597                         __SharedStateManager_P1__getSharedStateManager,  
     
    682697END_REFLECTOR 
    683698 
     699BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgDB::ReaderWriter >) 
     700        I_DeclaringFile("osg/ref_ptr"); 
     701        I_Constructor0(____ref_ptr, 
     702                       "", 
     703                       ""); 
     704        I_Constructor1(IN, osgDB::ReaderWriter *, ptr, 
     705                       Properties::NON_EXPLICIT, 
     706                       ____ref_ptr__T_P1, 
     707                       "", 
     708                       ""); 
     709        I_Constructor1(IN, const osg::ref_ptr< osgDB::ReaderWriter > &, rp, 
     710                       Properties::NON_EXPLICIT, 
     711                       ____ref_ptr__C5_ref_ptr_R1, 
     712                       "", 
     713                       ""); 
     714        I_Method0(osgDB::ReaderWriter *, get, 
     715                  Properties::NON_VIRTUAL, 
     716                  __T_P1__get, 
     717                  "", 
     718                  ""); 
     719        I_Method0(bool, valid, 
     720                  Properties::NON_VIRTUAL, 
     721                  __bool__valid, 
     722                  "", 
     723                  ""); 
     724        I_Method0(osgDB::ReaderWriter *, release, 
     725                  Properties::NON_VIRTUAL, 
     726                  __T_P1__release, 
     727                  "", 
     728                  ""); 
     729        I_Method1(void, swap, IN, osg::ref_ptr< osgDB::ReaderWriter > &, rp, 
     730                  Properties::NON_VIRTUAL, 
     731                  __void__swap__ref_ptr_R1, 
     732                  "", 
     733                  ""); 
     734        I_SimpleProperty(osgDB::ReaderWriter *, ,  
     735                         __T_P1__get,  
     736                         0); 
     737END_REFLECTOR 
     738 
     739STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgDB::ReaderWriter > >) 
     740