]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Serializer.hh
extreme refactoring
[chaz/yoink] / src / Moof / Serializer.hh
similarity index 86%
rename from src/serializer.hh
rename to src/Moof/Serializer.hh
index 206a7930fab9903b5ad6e9acd4eb848ddfff9182..7d54834fb01fb4a1e3773ef26afdfe1a8ee30511 100644 (file)
 
 *******************************************************************************/
 
-#ifndef _SERIALIZER_HH_
-#define _SERIALIZER_HH_
+#ifndef _MOOF_SERIALIZER_HH_
+#define _MOOF_SERIALIZER_HH_
 
 /**
- * @file serializer.hh
+ * @file Serializer.hh
  * Serialize structures and types for output on a stream.
  */
 
-#include <ostream>
-#include <string>
 #include <stdexcept>
+#include <string>
+#include <ostream>
 
 #include <boost/shared_ptr.hpp>
 
 
-namespace dc {
+namespace Mf {
 
 
-class serializer
+class Serializer
 {
 public:
 
@@ -57,10 +57,10 @@ public:
         * but will be tightly packed.
         */
 
-       serializer(const std::string& filePath, const std::string& indent = "");
-       serializer(std::ostream& output, const std::string& indent = "");
+       Serializer(const std::string& filePath, const std::string& indent = "");
+       Serializer(std::ostream& output, const std::string& indent = "");
 
-       ~serializer();
+       ~Serializer();
 
        /**
         * Push various types of data onto the stream.
@@ -99,21 +99,21 @@ public:
         * This exception is thrown for serializer-related exceptional errors.
         */
 
-       struct exception : std::runtime_error
+       struct Exception : std::runtime_error
        {
-               explicit exception(const std::string& what_arg) :
+               explicit Exception(const std::string& what_arg) :
                        std::runtime_error(what_arg) {}
        };
 
 private:
-       class serializer_impl;
-       boost::shared_ptr<serializer_impl> impl;
+       class SerializerImpl;
+       boost::shared_ptr<SerializerImpl> impl_;
 };
 
-} // namespace dc
+} // namespace Mf
 
 
-#endif // _SERIALIZER_HH_
+#endif // _MOOF_SERIALIZER_HH_
 
 /** vim: set ts=4 sw=4 tw=80: *************************************************/
 
This page took 0.020606 seconds and 4 git commands to generate.