encoders as namespaces
Change-Id: I992fae12d89e4e156015bb5660d02932b32c57b6
diff --git a/src/detail/info-encoder.hpp b/src/detail/info-encoder.hpp
index 93e4d97..48a1d82 100644
--- a/src/detail/info-encoder.hpp
+++ b/src/detail/info-encoder.hpp
@@ -25,23 +25,20 @@
namespace ndn {
namespace ndncert {
-
-class InfoEncoder
-{
-public:
+namespace infoEncoder {
/**
* Encode CA configuration and its certificate into a TLV block as INFO Data packet content.
*/
- static Block
+ Block
encodeDataContent(const CaProfile& caConfig, const security::Certificate& certificate);
/**
* Decode CA configuration from the TLV block of INFO Data packet content.
*/
- static CaProfile
+ CaProfile
decodeDataContent(const Block& block);
-};
+} // namespace InfoEncoder
} // namespace ndncert
} // namespace ndn