| 40 | } |
| 41 | |
| 42 | MetaParser::MetaParser(const std::string project_input_file, |
| 43 | const std::string include_file_path, |
| 44 | const std::string include_path, |
| 45 | const std::string sys_include, |
| 46 | const std::string module_name, |
| 47 | bool is_show_errors) : |
| 48 | m_project_input_file(project_input_file), |
| 49 | m_source_include_file_name(include_file_path), m_index(nullptr), m_translation_unit(nullptr), |
| 50 | m_sys_include(sys_include), m_module_name(module_name), m_is_show_errors(is_show_errors) |
| 51 | { |
| 52 | m_work_paths = Utils::split(include_path, ";"); |
| 53 | |
| 54 | m_generators.emplace_back(new Generator::SerializerGenerator( |
| 55 | m_work_paths[0], std::bind(&MetaParser::getIncludeFile, this, std::placeholders::_1))); |
| 56 | m_generators.emplace_back(new Generator::ReflectionGenerator( |
| 57 | m_work_paths[0], std::bind(&MetaParser::getIncludeFile, this, std::placeholders::_1))); |
| 58 | } |
| 59 | |
| 60 | MetaParser::~MetaParser(void) |
| 61 | { |