// // Copyright (c) 2008-2020 the Urho3D project. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // #pragma once #include #include #include #include using namespace std; using namespace pugi; namespace SourceData { // All classes and structs extern unordered_map classesByID_; // id -> compounddef // All classes and structs from Urho3D namepace extern unordered_map classesByName_; // name -> compounddef // Huge table with all members of all classes and structs extern unordered_map members_; // id -> memberdef // All enums from Urho3D namepace extern unordered_map enums_; // name -> memberdef // List of all defines. Used to detect that some function is a define actually extern vector defines_; // Namespace Urho3D contains enums, global functions and global variables extern xml_node namespaceUrho3D_; // compounddef from file namespace_urho3_d.xml // All usings from namespace Urho3D extern vector usings_; // memberdefs // Header files with @nobindfile mark at the beginning extern vector ignoredHeaders_; // Init all variables above void LoadAllXmls(const string& dir); }