From c5c817ddbf1cdaacaeb92893bc99e436182e63af Mon Sep 17 00:00:00 2001 From: Terraneo Federico <fede.tft@miosix.org> Date: Sun, 6 May 2018 23:02:16 +0200 Subject: [PATCH] More encapsulation --- tscpp.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tscpp.h b/tscpp.h index 0d0664d..8c58635 100644 --- a/tscpp.h +++ b/tscpp.h @@ -79,7 +79,18 @@ public: callback(t); }); } + + /** + * \internal + */ + int unserializeUnknownImpl(const char *name, const void *buffer, int bufSize) const; + + /** + * \internal + */ + void unserializeUnknownImpl(const std::string& name, std::istream& is, std::streampos pos) const; +private: /** * \internal */ @@ -91,18 +102,7 @@ public: int size; std::function<void (const void*)> usc; }; - - /** - * \internal - */ - int unserializeUnknownImpl(const char *name, const void *buffer, int bufSize) const; - - /** - * \internal - */ - void unserializeUnknownImpl(const std::string& name, std::istream& is, std::streampos pos) const; - -private: + std::map<std::string,UnserializerImpl> types; ///< Registered types }; -- GitLab