tag.h (722B)
1 #ifndef TAG_H_62B23520_7C8E_11DE_8A39_0800200C9A66 2 #define TAG_H_62B23520_7C8E_11DE_8A39_0800200C9A66 3 4 #if defined(_MSC_VER) || \ 5 (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \ 6 (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4 7 #pragma once 8 #endif 9 10 #include <string> 11 12 namespace YAML { 13 struct Directives; 14 struct Token; 15 16 struct Tag { 17 enum TYPE { 18 VERBATIM, 19 PRIMARY_HANDLE, 20 SECONDARY_HANDLE, 21 NAMED_HANDLE, 22 NON_SPECIFIC 23 }; 24 25 Tag(const Token& token); 26 const std::string Translate(const Directives& directives); 27 28 TYPE type; 29 std::string handle, value; 30 }; 31 } 32 33 #endif // TAG_H_62B23520_7C8E_11DE_8A39_0800200C9A66