diff --git a/src/reader_yaml.hh b/src/reader_yaml.hh index ecf4c09..62b5829 100644 --- a/src/reader_yaml.hh +++ b/src/reader_yaml.hh @@ -2,18 +2,18 @@ * vim: set tw=80: * Eryn Wells */ + +#ifndef __READERYAML_HH__ +#define __READERYAML_HH__ + +#include "reader.hh" +#include "scene.hh" + +namespace charles { + /** * 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 { @@ -21,9 +21,9 @@ struct YAMLReader : Reader(scene) { } - ~YAMLReader() { } - ssize_t read_file(const std::string& filename); }; +} /* namespace charles */ + #endif /* __READER_YAML_HH__ */ diff --git a/src/scene.hh b/src/scene.hh index 7283d62..14031e5 100644 --- a/src/scene.hh +++ b/src/scene.hh @@ -1,4 +1,4 @@ -/* scene.h +/* scene.hh * vim: tw=80: * Eryn Wells */ @@ -17,11 +17,11 @@ #include "basics/basics.hh" +namespace charles { + class Writer; -namespace charles { - /** * Scenes are the top level object in charles. Scenes contain objects, lights, a * camera, etc. and can be rendered to pixel data and written to a file. diff --git a/src/writer.h b/src/writer.h index 1d3bee1..981a17e 100644 --- a/src/writer.h +++ b/src/writer.h @@ -11,7 +11,9 @@ #include -class Scene; +namespace charles { + +struct Scene; class Writer @@ -24,4 +26,6 @@ public: virtual int write_scene(const Scene &scene, const std::string &filename) = 0; }; +} /* namespace charles */ + #endif diff --git a/src/writer_png.h b/src/writer_png.h index 5a3918f..0507aea 100644 --- a/src/writer_png.h +++ b/src/writer_png.h @@ -1,16 +1,19 @@ /* writer_png.h - * - * Declaration of the PNG writer. - * + * vim: set tw=80: * Eryn Wells */ -#ifndef __WRITER_PNG_H__ -#define __WRITER_PNG_H__ +#ifndef __WRITERPNG_HH__ +#define __WRITERPNG_HH__ #include "writer.h" +namespace charles { + +/** + * Write for producing PNG files. + */ class PNGWriter : public Writer { @@ -18,4 +21,6 @@ public: int write_scene(const Scene &scene, const std::string &filename); }; +} /* namespace charles */ + #endif