1 #ifndef VALUE_PARSE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
2 #define VALUE_PARSE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
4 #if defined(_MSC_VER) || \
5 (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \
6 (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4
14 #include "yaml-cpp/dll.h"
20 * Loads the input string as a single YAML document.
22 * @throws {@link ParserException} if it is malformed.
24 YAML_CPP_API Node Load(const std::string& input);
27 * Loads the input string as a single YAML document.
29 * @throws {@link ParserException} if it is malformed.
31 YAML_CPP_API Node Load(const char* input);
34 * Loads the input stream as a single YAML document.
36 * @throws {@link ParserException} if it is malformed.
38 YAML_CPP_API Node Load(std::istream& input);
41 * Loads the input file as a single YAML document.
43 * @throws {@link ParserException} if it is malformed.
44 * @throws {@link BadFile} if the file cannot be loaded.
46 YAML_CPP_API Node LoadFile(const std::string& filename);
49 * Loads the input string as a list of YAML documents.
51 * @throws {@link ParserException} if it is malformed.
53 YAML_CPP_API std::vector<Node> LoadAll(const std::string& input);
56 * Loads the input string as a list of YAML documents.
58 * @throws {@link ParserException} if it is malformed.
60 YAML_CPP_API std::vector<Node> LoadAll(const char* input);
63 * Loads the input stream as a list of YAML documents.
65 * @throws {@link ParserException} if it is malformed.
67 YAML_CPP_API std::vector<Node> LoadAll(std::istream& input);
70 * Loads the input file as a list of YAML documents.
72 * @throws {@link ParserException} if it is malformed.
73 * @throws {@link BadFile} if the file cannot be loaded.
75 YAML_CPP_API std::vector<Node> LoadAllFromFile(const std::string& filename);
78 #endif // VALUE_PARSE_H_62B23520_7C8E_11DE_8A39_0800200C9A66