diff options
Diffstat (limited to 'libs/installer_bsplugins/src/TESData/BranchConflictParser.h')
| -rw-r--r-- | libs/installer_bsplugins/src/TESData/BranchConflictParser.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/libs/installer_bsplugins/src/TESData/BranchConflictParser.h b/libs/installer_bsplugins/src/TESData/BranchConflictParser.h new file mode 100644 index 0000000..c2083bd --- /dev/null +++ b/libs/installer_bsplugins/src/TESData/BranchConflictParser.h @@ -0,0 +1,40 @@ +#ifndef TESDATA_BRANCHCONFLICTPARSER_H +#define TESDATA_BRANCHCONFLICTPARSER_H + +#include "PluginList.h" +#include "RecordPath.h" + +#include <istream> +#include <vector> + +namespace TESData +{ + +class BranchConflictParser final +{ +public: + BranchConflictParser(PluginList* pluginList, const std::string& pluginName, + const RecordPath& path); + + bool Group(TESFile::GroupData group); + void EndGroup(); + bool Form(TESFile::FormData form); + void EndForm(); + bool Chunk(TESFile::Type type); + void Data(std::istream& stream); + +private: + PluginList* m_PluginList; + std::string m_PluginName; + TESData::RecordPath m_Path; + + std::vector<std::string> m_Masters; + RecordPath m_CurrentPath; + TESFile::Type m_CurrentType; + TESFile::Type m_CurrentChunk; + std::string m_CurrentName; +}; + +} // namespace TESData + +#endif // TESDATA_BRANCHCONFLICTPARSER_H |
