*******************************************************************************/
-#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:
* 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.
* 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: *************************************************/