yaml-cpp

FORK: A YAML parser and emitter in C++
git clone https://git.neptards.moe/neptards/yaml-cpp.git
Log | Files | Refs | README | LICENSE

directives.h (701B)


      1 #ifndef DIRECTIVES_H_62B23520_7C8E_11DE_8A39_0800200C9A66
      2 #define DIRECTIVES_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 #include <map>
     12 
     13 namespace YAML {
     14 struct Version {
     15   bool isDefault;
     16   int major, minor;
     17 };
     18 
     19 struct Directives {
     20   Directives();
     21 
     22   const std::string TranslateTagHandle(const std::string& handle) const;
     23 
     24   Version version;
     25   std::map<std::string, std::string> tags;
     26 };
     27 }
     28 
     29 #endif  // DIRECTIVES_H_62B23520_7C8E_11DE_8A39_0800200C9A66