X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FSerializer.hh;fp=src%2Fserializer.hh;h=7d54834fb01fb4a1e3773ef26afdfe1a8ee30511;hp=206a7930fab9903b5ad6e9acd4eb848ddfff9182;hb=c2321281bf12a7efaedde930422c7ddbc92080d4;hpb=87bc17e55b0c1dc73ecc66df856d3f08fd7a7724 diff --git a/src/serializer.hh b/src/Moof/Serializer.hh similarity index 86% rename from src/serializer.hh rename to src/Moof/Serializer.hh index 206a793..7d54834 100644 --- a/src/serializer.hh +++ b/src/Moof/Serializer.hh @@ -26,25 +26,25 @@ *******************************************************************************/ -#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 -#include #include +#include +#include #include -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 impl; + class SerializerImpl; + boost::shared_ptr impl_; }; -} // namespace dc +} // namespace Mf -#endif // _SERIALIZER_HH_ +#endif // _MOOF_SERIALIZER_HH_ /** vim: set ts=4 sw=4 tw=80: *************************************************/