Dawn/src/dawntools/locale/languagegen/LanguageGen.hpp

34 lines
746 B
C++

// Copyright (c) 2023 Dominic Masters
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#pragma once
#include "util/DawnTool.hpp"
namespace Dawn {
struct LanguageString {
std::string key;
std::string value;
};
class LanguageGen : public DawnTool {
protected:
int32_t parseGroup(
xml_t *node,
std::string key,
std::map<std::string, std::vector<struct LanguageString>> *strings
);
int32_t parseString(
xml_t *node,
std::string key,
std::map<std::string, std::vector<struct LanguageString>> *strings
);
public:
LanguageGen(const int argc, const char *argv[]);
int32_t start() override;
};
}