Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-16 09:59:57

0001 #ifndef VALUE_PARSE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
0002 #define VALUE_PARSE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
0003 
0004 #if defined(_MSC_VER) ||                                            \
0005     (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \
0006      (__GNUC__ >= 4))  // GCC supports "pragma once" correctly since 3.4
0007 #pragma once
0008 #endif
0009 
0010 #include <iosfwd>
0011 #include <string>
0012 #include <vector>
0013 
0014 #include "yaml-cpp/dll.h"
0015 
0016 namespace YAML {
0017 class Node;
0018 
0019 /**
0020  * Loads the input string as a single YAML document.
0021  *
0022  * @throws {@link ParserException} if it is malformed.
0023  */
0024 YAML_CPP_API Node Load(const std::string& input);
0025 
0026 /**
0027  * Loads the input string as a single YAML document.
0028  *
0029  * @throws {@link ParserException} if it is malformed.
0030  */
0031 YAML_CPP_API Node Load(const char* input);
0032 
0033 /**
0034  * Loads the input stream as a single YAML document.
0035  *
0036  * @throws {@link ParserException} if it is malformed.
0037  */
0038 YAML_CPP_API Node Load(std::istream& input);
0039 
0040 /**
0041  * Loads the input file as a single YAML document.
0042  *
0043  * @throws {@link ParserException} if it is malformed.
0044  * @throws {@link BadFile} if the file cannot be loaded.
0045  */
0046 YAML_CPP_API Node LoadFile(const std::string& filename);
0047 
0048 /**
0049  * Loads the input string as a list of YAML documents.
0050  *
0051  * @throws {@link ParserException} if it is malformed.
0052  */
0053 YAML_CPP_API std::vector<Node> LoadAll(const std::string& input);
0054 
0055 /**
0056  * Loads the input string as a list of YAML documents.
0057  *
0058  * @throws {@link ParserException} if it is malformed.
0059  */
0060 YAML_CPP_API std::vector<Node> LoadAll(const char* input);
0061 
0062 /**
0063  * Loads the input stream as a list of YAML documents.
0064  *
0065  * @throws {@link ParserException} if it is malformed.
0066  */
0067 YAML_CPP_API std::vector<Node> LoadAll(std::istream& input);
0068 
0069 /**
0070  * Loads the input file as a list of YAML documents.
0071  *
0072  * @throws {@link ParserException} if it is malformed.
0073  * @throws {@link BadFile} if the file cannot be loaded.
0074  */
0075 YAML_CPP_API std::vector<Node> LoadAllFromFile(const std::string& filename);
0076 }  // namespace YAML
0077 
0078 #endif  // VALUE_PARSE_H_62B23520_7C8E_11DE_8A39_0800200C9A66