File indexing completed on 2025-05-12 09:08:10
0001 #ifndef TAG_H_62B23520_7C8E_11DE_8A39_0800200C9A66
0002 #define TAG_H_62B23520_7C8E_11DE_8A39_0800200C9A66
0003
0004 #if defined(_MSC_VER) || \
0005 (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \
0006 (__GNUC__ >= 4))
0007 #pragma once
0008 #endif
0009
0010 #include <string>
0011
0012 namespace SHERPA_YAML {
0013 struct Directives;
0014 struct Token;
0015
0016 struct Tag {
0017 enum TYPE {
0018 VERBATIM,
0019 PRIMARY_HANDLE,
0020 SECONDARY_HANDLE,
0021 NAMED_HANDLE,
0022 NON_SPECIFIC
0023 };
0024
0025 Tag(const Token& token);
0026 const std::string Translate(const Directives& directives);
0027
0028 TYPE type;
0029 std::string handle, value;
0030 };
0031 }
0032
0033 #endif