| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | #include <osgIntrospection/ReflectionMacros> |
|---|
| 9 | #include <osgIntrospection/TypedMethodInfo> |
|---|
| 10 | #include <osgIntrospection/StaticMethodInfo> |
|---|
| 11 | #include <osgIntrospection/Attributes> |
|---|
| 12 | |
|---|
| 13 | #include <osgDB/XmlParser> |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | #ifdef IN |
|---|
| 17 | #undef IN |
|---|
| 18 | #endif |
|---|
| 19 | #ifdef OUT |
|---|
| 20 | #undef OUT |
|---|
| 21 | #endif |
|---|
| 22 | |
|---|
| 23 | BEGIN_ENUM_REFLECTOR(osgDB::XmlNode::NodeType) |
|---|
| 24 | I_DeclaringFile("osgDB/XmlParser"); |
|---|
| 25 | I_EnumLabel(osgDB::XmlNode::UNASSIGNED); |
|---|
| 26 | I_EnumLabel(osgDB::XmlNode::ATOM); |
|---|
| 27 | I_EnumLabel(osgDB::XmlNode::NODE); |
|---|
| 28 | I_EnumLabel(osgDB::XmlNode::GROUP); |
|---|
| 29 | I_EnumLabel(osgDB::XmlNode::ROOT); |
|---|
| 30 | I_EnumLabel(osgDB::XmlNode::COMMENT); |
|---|
| 31 | I_EnumLabel(osgDB::XmlNode::INFORMATION); |
|---|
| 32 | END_REFLECTOR |
|---|
| 33 | |
|---|
| 34 | TYPE_NAME_ALIAS(std::map< std::string COMMA std::string >, osgDB::XmlNode::Properties) |
|---|
| 35 | |
|---|
| 36 | TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgDB::XmlNode > >, osgDB::XmlNode::Children) |
|---|
| 37 | |
|---|
| 38 | BEGIN_OBJECT_REFLECTOR(osgDB::XmlNode) |
|---|
| 39 | I_DeclaringFile("osgDB/XmlParser"); |
|---|
| 40 | I_BaseType(osg::Referenced); |
|---|
| 41 | I_Constructor0(____XmlNode, |
|---|
| 42 | "", |
|---|
| 43 | ""); |
|---|
| 44 | I_Method0(std::string, getTrimmedContents, |
|---|
| 45 | Properties::NON_VIRTUAL, |
|---|
| 46 | __std_string__getTrimmedContents, |
|---|
| 47 | "", |
|---|
| 48 | ""); |
|---|
| 49 | I_Method1(bool, read, IN, osgDB::XmlNode::Input &, input, |
|---|
| 50 | Properties::NON_VIRTUAL, |
|---|
| 51 | __bool__read__Input_R1, |
|---|
| 52 | "", |
|---|
| 53 | ""); |
|---|
| 54 | I_Method1(bool, write, IN, std::ostream &, fout, |
|---|
| 55 | Properties::NON_VIRTUAL, |
|---|
| 56 | __bool__write__std_ostream_R1, |
|---|
| 57 | "", |
|---|
| 58 | ""); |
|---|
| 59 | I_Method2(bool, writeString, IN, std::ostream &, fout, IN, const std::string &, str, |
|---|
| 60 | Properties::NON_VIRTUAL, |
|---|
| 61 | __bool__writeString__std_ostream_R1__C5_std_string_R1, |
|---|
| 62 | "", |
|---|
| 63 | ""); |
|---|
| 64 | I_SimpleProperty(std::string, TrimmedContents, |
|---|
| 65 | __std_string__getTrimmedContents, |
|---|
| 66 | 0); |
|---|
| 67 | I_PublicMemberProperty(osgDB::XmlNode::NodeType, type); |
|---|
| 68 | I_PublicMemberProperty(std::string, name); |
|---|
| 69 | I_PublicMemberProperty(std::string, contents); |
|---|
| 70 | I_PublicMemberProperty(osgDB::XmlNode::Properties, properties); |
|---|
| 71 | I_PublicMemberProperty(osgDB::XmlNode::Children, children); |
|---|
| 72 | END_REFLECTOR |
|---|
| 73 | |
|---|
| 74 | TYPE_NAME_ALIAS(std::string::size_type, osgDB::XmlNode::Input::size_type) |
|---|
| 75 | |
|---|
| 76 | TYPE_NAME_ALIAS(std::map< std::string COMMA int >, osgDB::XmlNode::Input::ControlToCharacterMap) |
|---|
| 77 | |
|---|
| 78 | TYPE_NAME_ALIAS(std::map< int COMMA std::string >, osgDB::XmlNode::Input::CharacterToControlMap) |
|---|
| 79 | |
|---|
| 80 | BEGIN_VALUE_REFLECTOR(osgDB::XmlNode::Input) |
|---|
| 81 | I_DeclaringFile("osgDB/XmlParser"); |
|---|
| 82 | I_Constructor0(____Input, |
|---|
| 83 | "", |
|---|
| 84 | ""); |
|---|
| 85 | I_Constructor1(IN, const osgDB::XmlNode::Input &, x, |
|---|
| 86 | Properties::NON_EXPLICIT, |
|---|
| 87 | ____Input__C5_Input_R1, |
|---|
| 88 | "", |
|---|
| 89 | ""); |
|---|
| 90 | I_Method1(void, open, IN, const std::string &, filename, |
|---|
| 91 | Properties::NON_VIRTUAL, |
|---|
| 92 | __void__open__C5_std_string_R1, |
|---|
| 93 | "", |
|---|
| 94 | ""); |
|---|
| 95 | I_Method1(void, attach, IN, std::istream &, istream, |
|---|
| 96 | Properties::NON_VIRTUAL, |
|---|
| 97 | __void__attach__std_istream_R1, |
|---|
| 98 | "", |
|---|
| 99 | ""); |
|---|
| 100 | I_Method0(void, readAllDataIntoBuffer, |
|---|
| 101 | Properties::NON_VIRTUAL, |
|---|
| 102 | __void__readAllDataIntoBuffer, |
|---|
| 103 | "", |
|---|
| 104 | ""); |
|---|
| 105 | I_Method0(osgDB::XmlNode::Input::size_type, currentPosition, |
|---|
| 106 | Properties::NON_VIRTUAL, |
|---|
| 107 | __size_type__currentPosition, |
|---|
| 108 | "", |
|---|
| 109 | ""); |
|---|
| 110 | I_Method0(int, get, |
|---|
| 111 | Properties::NON_VIRTUAL, |
|---|
| 112 | __int__get, |
|---|
| 113 | "", |
|---|
| 114 | ""); |
|---|
| 115 | I_Method0(void, skipWhiteSpace, |
|---|
| 116 | Properties::NON_VIRTUAL, |
|---|
| 117 | __void__skipWhiteSpace, |
|---|
| 118 | "", |
|---|
| 119 | ""); |
|---|
| 120 | I_MethodWithDefaults2(std::string, substr, IN, osgDB::XmlNode::Input::size_type, pos, , IN, osgDB::XmlNode::Input::size_type, n, std::string::npos, |
|---|
| 121 | Properties::NON_VIRTUAL, |
|---|
| 122 | __std_string__substr__size_type__size_type, |
|---|
| 123 | "", |
|---|
| 124 | ""); |
|---|
| 125 | I_Method1(osgDB::XmlNode::Input::size_type, find, IN, const std::string &, str, |
|---|
| 126 | Properties::NON_VIRTUAL, |
|---|
| 127 | __size_type__find__C5_std_string_R1, |
|---|
| 128 | "", |
|---|
| 129 | ""); |
|---|
| 130 | I_Method1(bool, match, IN, const std::string &, str, |
|---|
| 131 | Properties::NON_VIRTUAL, |
|---|
| 132 | __bool__match__C5_std_string_R1, |
|---|
| 133 | "", |
|---|
| 134 | ""); |
|---|
| 135 | I_Method2(void, addControlToCharacter, IN, const std::string &, control, IN, int, c, |
|---|
| 136 | Properties::NON_VIRTUAL, |
|---|
| 137 | __void__addControlToCharacter__C5_std_string_R1__int, |
|---|
| 138 | "", |
|---|
| 139 | ""); |
|---|
| 140 | I_SimpleProperty(int, , |
|---|
| 141 | __int__get, |
|---|
| 142 | 0); |
|---|
| 143 | I_PublicMemberProperty(osgDB::XmlNode::Input::ControlToCharacterMap, _controlToCharacterMap); |
|---|
| 144 | I_PublicMemberProperty(osgDB::XmlNode::Input::CharacterToControlMap, _characterToControlMap); |
|---|
| 145 | END_REFLECTOR |
|---|
| 146 | |
|---|
| 147 | BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgDB::XmlNode >) |
|---|
| 148 | I_DeclaringFile("osg/ref_ptr"); |
|---|
| 149 | I_Constructor0(____ref_ptr, |
|---|
| 150 | "", |
|---|
| 151 | ""); |
|---|
| 152 | I_Constructor1(IN, osgDB::XmlNode *, ptr, |
|---|
| 153 | Properties::NON_EXPLICIT, |
|---|
| 154 | ____ref_ptr__T_P1, |
|---|
| 155 | "", |
|---|
| 156 | ""); |
|---|
| 157 | I_Constructor1(IN, const osg::ref_ptr< osgDB::XmlNode > &, rp, |
|---|
| 158 | Properties::NON_EXPLICIT, |
|---|
| 159 | ____ref_ptr__C5_ref_ptr_R1, |
|---|
| 160 | "", |
|---|
| 161 | ""); |
|---|
| 162 | I_Method0(osgDB::XmlNode *, get, |
|---|
| 163 | Properties::NON_VIRTUAL, |
|---|
| 164 | __T_P1__get, |
|---|
| 165 | "", |
|---|
| 166 | ""); |
|---|
| 167 | I_Method0(bool, valid, |
|---|
| 168 | Properties::NON_VIRTUAL, |
|---|
| 169 | __bool__valid, |
|---|
| 170 | "", |
|---|
| 171 | ""); |
|---|
| 172 | I_Method0(osgDB::XmlNode *, release, |
|---|
| 173 | Properties::NON_VIRTUAL, |
|---|
| 174 | __T_P1__release, |
|---|
| 175 | "", |
|---|
| 176 | ""); |
|---|
| 177 | I_Method1(void, swap, IN, osg::ref_ptr< osgDB::XmlNode > &, rp, |
|---|
| 178 | Properties::NON_VIRTUAL, |
|---|
| 179 | __void__swap__ref_ptr_R1, |
|---|
| 180 | "", |
|---|
| 181 | ""); |
|---|
| 182 | I_SimpleProperty(osgDB::XmlNode *, , |
|---|
| 183 | __T_P1__get, |
|---|
| 184 | 0); |
|---|
| 185 | END_REFLECTOR |
|---|
| 186 | |
|---|
| 187 | STD_MAP_REFLECTOR(std::map< int COMMA std::string >) |
|---|
| 188 | |
|---|
| 189 | STD_MAP_REFLECTOR(std::map< std::string COMMA int >) |
|---|
| 190 | |
|---|
| 191 | STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgDB::XmlNode > >) |
|---|