diff --git a/tscpp.h b/tscpp.h index 0d0664d880f347719b6d5cb650d3460522d193ad..8c586352c1b582673e91df16560318153cd15f2d 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 };