tageditor/cli/fieldmapping.h

28 lines
596 B
C
Raw Normal View History

2018-01-15 00:14:53 +01:00
#ifndef CLI_FIELDMAPPING
#define CLI_FIELDMAPPING
#include <array>
2018-01-15 00:14:53 +01:00
#include <cstddef>
2018-03-06 23:10:13 +01:00
namespace TagParser {
2018-01-15 00:14:53 +01:00
enum class KnownField : unsigned int;
}
namespace Cli {
namespace FieldMapping {
struct Mapping {
const char *knownDenotation;
TagParser::KnownField knownField;
};
2018-03-06 23:10:13 +01:00
const char *fieldDenotation(TagParser::KnownField knownField);
TagParser::KnownField knownField(const char *fieldDenotation, std::size_t fieldDenotationSize);
using MappingType = std::array<Mapping, 100>;
const MappingType &mapping();
2018-01-15 00:14:53 +01:00
2018-03-07 01:18:01 +01:00
} // namespace FieldMapping
} // namespace Cli
2018-01-15 00:14:53 +01:00
#endif // CLI_FIELDMAPPING