| 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_MethodWithDefaults2(bool, write, IN, std::ostream &, fout, , IN, const std::string &, indent, "", |
|---|
| 55 | Properties::NON_VIRTUAL, |
|---|
| 56 | __bool__write__std_ostream_R1__C5_std_string_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_ProtectedMethod2(bool, writeChildren, IN, std::ostream &, fout, IN, const std::string &, indent, |
|---|
| 65 | Properties::NON_VIRTUAL, |
|---|
| 66 | Properties::CONST, |
|---|
| 67 | __bool__writeChildren__std_ostream_R1__C5_std_string_R1, |
|---|
| 68 | "", |
|---|
| 69 | ""); |
|---|
| 70 | I_ProtectedMethod1(bool, writeProperties, IN, std::ostream &, fout, |
|---|
| 71 | Properties::NON_VIRTUAL, |
|---|
| 72 | Properties::CONST, |
|---|
| 73 | __bool__writeProperties__std_ostream_R1, |
|---|
| 74 | "", |
|---|
| 75 | ""); |
|---|
| 76 | I_SimpleProperty(std::string, TrimmedContents, |
|---|
| 77 | __std_string__getTrimmedContents, |
|---|
| 78 | 0); |
|---|
| 79 | I_PublicMemberProperty(osgDB::XmlNode::NodeType, type); |
|---|
| 80 | I_PublicMemberProperty(std::string, name); |
|---|
| 81 | I_PublicMemberProperty(std::string, contents); |
|---|
| 82 | I_PublicMemberProperty(osgDB::XmlNode::Properties, properties); |
|---|
| 83 | I_PublicMemberProperty(osgDB::XmlNode::Children, children); |
|---|
| 84 | END_REFLECTOR |
|---|
| 85 | |
|---|
| 86 | TYPE_NAME_ALIAS(std::string::size_type, osgDB::XmlNode::Input::size_type) |
|---|
| 87 | |
|---|
| 88 | TYPE_NAME_ALIAS(std::map< std::string COMMA int >, osgDB::XmlNode::Input::ControlToCharacterMap) |
|---|
| 89 | |
|---|
| 90 | TYPE_NAME_ALIAS(std::map< int COMMA std::string >, osgDB::XmlNode::Input::CharacterToControlMap) |
|---|
| 91 | |
|---|
| 92 | BEGIN_VALUE_REFLECTOR(osgDB::XmlNode::Input) |
|---|
| 93 | I_DeclaringFile("osgDB/XmlParser"); |
|---|
| 94 | I_Constructor0(____Input, |
|---|
| 95 | "", |
|---|
| 96 | ""); |
|---|
| 97 | I_Constructor1(IN, const osgDB::XmlNode::Input &, x, |
|---|
| 98 | Properties::NON_EXPLICIT, |
|---|
| 99 | ____Input__C5_Input_R1, |
|---|
| 100 | "", |
|---|
| 101 | ""); |
|---|
| 102 | I_Method1(void, open, IN, const std::string &, filename, |
|---|
| 103 | Properties::NON_VIRTUAL, |
|---|
| 104 | __void__open__C5_std_string_R1, |
|---|
| 105 | "", |
|---|
| 106 | ""); |
|---|
| 107 | I_Method1(void, attach, IN, std::istream &, istream, |
|---|
| 108 | Properties::NON_VIRTUAL, |
|---|
| 109 | __void__attach__std_istream_R1, |
|---|
| 110 | "", |
|---|
| 111 | ""); |
|---|
| 112 | I_Method0(void, readAllDataIntoBuffer, |
|---|
| 113 | Properties::NON_VIRTUAL, |
|---|
| 114 | __void__readAllDataIntoBuffer, |
|---|
| 115 | "", |
|---|
| 116 | ""); |
|---|
| 117 | I_Method0(osgDB::XmlNode::Input::size_type, currentPosition, |
|---|
| 118 | Properties::NON_VIRTUAL, |
|---|
| 119 | __size_type__currentPosition, |
|---|
| 120 | "", |
|---|
| 121 | ""); |
|---|
| 122 | I_Method0(int, get, |
|---|
| 123 | Properties::NON_VIRTUAL, |
|---|
| 124 | __int__get, |
|---|
| 125 | "", |
|---|
| 126 | ""); |
|---|
| 127 | I_Method0(void, skipWhiteSpace, |
|---|
| 128 | Properties::NON_VIRTUAL, |
|---|
| 129 | __void__skipWhiteSpace, |
|---|
| 130 | "", |
|---|
| 131 | ""); |
|---|
| 132 | I_MethodWithDefaults2(std::string, substr, IN, osgDB::XmlNode::Input::size_type, pos, , IN, osgDB::XmlNode::Input::size_type, n, std::string::npos, |
|---|
| 133 | Properties::NON_VIRTUAL, |
|---|
| 134 | __std_string__substr__size_type__size_type, |
|---|
| 135 | "", |
|---|
| 136 | ""); |
|---|
| 137 | I_Method1(osgDB::XmlNode::Input::size_type, find, IN, const std::string &, str, |
|---|
| 138 | Properties::NON_VIRTUAL, |
|---|
| 139 | __size_type__find__C5_std_string_R1, |
|---|
| 140 | "", |
|---|
| 141 | ""); |
|---|
| 142 | I_Method1(bool, match, IN, const std::string &, str, |
|---|
| 143 | Properties::NON_VIRTUAL, |
|---|
| 144 | __bool__match__C5_std_string_R1, |
|---|
| 145 | "", |
|---|
| 146 | ""); |
|---|
| 147 | I_Method2(void, addControlToCharacter, IN, const std::string &, control, IN, int, c, |
|---|
| 148 | Properties::NON_VIRTUAL, |
|---|
| 149 | __void__addControlToCharacter__C5_std_string_R1__int, |
|---|
| 150 | "", |
|---|
| 151 | ""); |
|---|
| 152 | I_SimpleProperty(int, , |
|---|
| 153 | __int__get, |
|---|
| 154 | 0); |
|---|
| 155 | I_PublicMemberProperty(osgDB::XmlNode::Input::ControlToCharacterMap, _controlToCharacterMap); |
|---|
| 156 | I_PublicMemberProperty(osgDB::XmlNode::Input::CharacterToControlMap, _characterToControlMap); |
|---|
| 157 | END_REFLECTOR |
|---|
| 158 | |
|---|
| 159 | BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgDB::XmlNode >) |
|---|
| 160 | I_DeclaringFile("osg/ref_ptr"); |
|---|
| 161 | I_Constructor0(____ref_ptr, |
|---|
| 162 | "", |
|---|
| 163 | ""); |
|---|
| 164 | I_Constructor1(IN, osgDB::XmlNode *, ptr, |
|---|
| 165 | Properties::NON_EXPLICIT, |
|---|
| 166 | ____ref_ptr__T_P1, |
|---|
| 167 | "", |
|---|
| 168 | ""); |
|---|
| 169 | I_Constructor1(IN, const osg::ref_ptr< osgDB::XmlNode > &, rp, |
|---|
| 170 | Properties::NON_EXPLICIT, |
|---|
| 171 | ____ref_ptr__C5_ref_ptr_R1, |
|---|
| 172 | "", |
|---|
| 173 | ""); |
|---|
| 174 | I_Method0(osgDB::XmlNode *, get, |
|---|
| 175 | Properties::NON_VIRTUAL, |
|---|
| 176 | __T_P1__get, |
|---|
| 177 | "", |
|---|
| 178 | ""); |
|---|
| 179 | I_Method0(bool, valid, |
|---|
| 180 | Properties::NON_VIRTUAL, |
|---|
| 181 | __bool__valid, |
|---|
| 182 | "", |
|---|
| 183 | ""); |
|---|
| 184 | I_Method0(osgDB::XmlNode *, release, |
|---|
| 185 | Properties::NON_VIRTUAL, |
|---|
| 186 | __T_P1__release, |
|---|
| 187 | "", |
|---|
| 188 | ""); |
|---|
| 189 | I_Method1(void, swap, IN, osg::ref_ptr< osgDB::XmlNode > &, rp, |
|---|
| 190 | Properties::NON_VIRTUAL, |
|---|
| 191 | __void__swap__ref_ptr_R1, |
|---|
| 192 | "", |
|---|
| 193 | ""); |
|---|
| 194 | I_SimpleProperty(osgDB::XmlNode *, , |
|---|
| 195 | __T_P1__get, |
|---|
| 196 | 0); |
|---|
| 197 | END_REFLECTOR |
|---|
| 198 | |
|---|
| 199 | STD_MAP_REFLECTOR(std::map< int COMMA std::string >) |
|---|
| 200 | |
|---|
| 201 | STD_MAP_REFLECTOR(std::map< std::string COMMA int >) |
|---|
| 202 | |
|---|
| 203 | STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgDB::XmlNode > >) |
|---|