virtual ~Codec() { }
+ /**
+ Returns the name of the encoding handled by this codec.
+ */
+ virtual const char *get_name() const =0;
+
/**
Creates an encoder for this codec.
*/
*/
Codec *create_codec(const std::string &);
+/**
+Automatically detects the encoding of a string and creates a codec for it.
+The codec must be deleted when it's no longer needed.
+*/
+Codec *detect_codec(const std::string &);
+
} // namespace Codecs
} // namespace Msp