encoders as namespaces
Change-Id: I992fae12d89e4e156015bb5660d02932b32c57b6
diff --git a/src/detail/error-encoder.hpp b/src/detail/error-encoder.hpp
index 6d60462..d8f6ea4 100644
--- a/src/detail/error-encoder.hpp
+++ b/src/detail/error-encoder.hpp
@@ -25,23 +25,21 @@
namespace ndn {
namespace ndncert {
+namespace errorEncoder {
-class ErrorEncoder
-{
-public:
/**
* Encode error information into a Data content TLV
*/
- static Block
+ Block
encodeDataContent(ErrorCode errorCode, const std::string& description);
/**
* Decode error information from Data content TLV
*/
- static std::tuple<ErrorCode, std::string>
+ std::tuple<ErrorCode, std::string>
decodefromDataContent(const Block& block);
-};
+} // namespace ErrorEncoder
} // namespace ndncert
} // namespace ndn