Add YAML reader
This commit is contained in:
parent
357bcc19c0
commit
b4327303ee
4 changed files with 271 additions and 1 deletions
29
src/reader_yaml.hh
Normal file
29
src/reader_yaml.hh
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
/* reader_yaml.hh
|
||||
* vim: set tw=80:
|
||||
* Eryn Wells <eryn@erynwells.me>
|
||||
*/
|
||||
/**
|
||||
* An input file reader for YAML files.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef __READER_YAML_HH__
|
||||
#define __READER_YAML_HH__
|
||||
|
||||
#include "reader.hh"
|
||||
#include "scene.h"
|
||||
|
||||
|
||||
struct YAMLReader
|
||||
: public Reader
|
||||
{
|
||||
YAMLReader(Scene& scene)
|
||||
: Reader(scene)
|
||||
{ }
|
||||
|
||||
~YAMLReader() { }
|
||||
|
||||
ssize_t read_file(const std::string& filename);
|
||||
};
|
||||
|
||||
#endif /* __READER_YAML_HH__ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue