X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fstringcodec%2Fiso2022jp.h;h=a3f425a95d9c9dd1ddf4a215cdd7454aa3d838a9;hp=91f0166e19a5e0e6f533304c46dba6a5ee679e78;hb=d3fc0bf0f20f100f2831188c1ce21461d21c2c7a;hpb=94ee3a1040f67d9de2e92fc34049642b08d65b3e diff --git a/source/stringcodec/iso2022jp.h b/source/stringcodec/iso2022jp.h index 91f0166..a3f425a 100644 --- a/source/stringcodec/iso2022jp.h +++ b/source/stringcodec/iso2022jp.h @@ -6,7 +6,7 @@ namespace Msp { namespace StringCodec { -class Iso2022Jp: public Codec +class Iso2022Jp: public StandardCodec { public: enum Mode @@ -47,10 +47,9 @@ public: void switch_mode(Mode); }; - virtual const char *get_name() const { return "ISO-2022-JP"; } + Iso2022Jp(ErrorMode em = THROW_ON_ERROR): StandardCodec(em) { } - virtual Encoder *create_encoder(ErrorMode em = THROW_ON_ERROR) const { return new Encoder(em); } - virtual Decoder *create_decoder(ErrorMode em = THROW_ON_ERROR) const { return new Decoder(em); } + virtual const char *get_name() const { return "ISO-2022-JP"; } }; } // namespace StringCodec