diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-12-28 20:39:20 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-12-28 20:39:20 +0100 |
commit | 9bcf29e9ce11bbc6a421b39eded8f4eb7d94a912 (patch) | |
tree | dd03b0ab0b037285d1827101abad6023f6c6afaf /encoder.h | |
parent | 5fd3fe8704374d9ffc77e61d467e13a587d1aff9 (diff) |
Added decoder/encoder factories.
Diffstat (limited to 'encoder.h')
-rw-r--r-- | encoder.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -2,6 +2,11 @@ #define ENCODER_H #include <boost/cstdint.hpp> +#include <boost/function.hpp> +#include <boost/functional/factory.hpp> +#include <boost/functional/value_factory.hpp> + +#include <string> class EncoderBase { public: @@ -9,4 +14,9 @@ class EncoderBase { virtual size_t flush(uint8_t *output, size_t output_size) = 0; }; +namespace encoder { + void init(); + EncoderBase *get_encoder(const std::string& name); +}; + #endif |