| 29 | #include <sstream> |
| 30 | |
| 31 | int YamlHelper::InitParser(const char* pPathname) |
| 32 | { |
| 33 | m_hFile = fopen(pPathname, "r"); |
| 34 | if (m_hFile == NULL) |
| 35 | { |
| 36 | return 0; |
| 37 | } |
| 38 | |
| 39 | if (!yaml_parser_initialize(&m_parser)) |
| 40 | { |
| 41 | return 0; |
| 42 | } |
| 43 | |
| 44 | // Note: C/C++ > Pre-Processor: YAML_DECLARE_STATIC; |
| 45 | yaml_parser_set_input_file(&m_parser, m_hFile); |
| 46 | |
| 47 | return 1; |
| 48 | } |
| 49 | |
| 50 | void YamlHelper::FinaliseParser(void) |
| 51 | { |
no test coverage detected