directives.h 695 B

1234567891011121314151617181920212223242526272829
  1. #ifndef DIRECTIVES_H_62B23520_7C8E_11DE_8A39_0800200C9A66
  2. #define DIRECTIVES_H_62B23520_7C8E_11DE_8A39_0800200C9A66
  3. #if defined(_MSC_VER) || \
  4. (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \
  5. (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4
  6. #pragma once
  7. #endif
  8. #include <string>
  9. #include <map>
  10. namespace YAML {
  11. struct Version {
  12. bool isDefault;
  13. int major, minor;
  14. };
  15. struct Directives {
  16. Directives();
  17. std::string TranslateTagHandle(const std::string& handle) const;
  18. Version version;
  19. std::map<std::string, std::string> tags;
  20. };
  21. }
  22. #endif // DIRECTIVES_H_62B23520_7C8E_11DE_8A39_0800200C9A66