summaryrefslogtreecommitdiff
path: root/decoder.h
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-12-28 20:39:20 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-12-28 20:39:20 +0100
commit9bcf29e9ce11bbc6a421b39eded8f4eb7d94a912 (patch)
treedd03b0ab0b037285d1827101abad6023f6c6afaf /decoder.h
parent5fd3fe8704374d9ffc77e61d467e13a587d1aff9 (diff)
Added decoder/encoder factories.
Diffstat (limited to 'decoder.h')
-rw-r--r--decoder.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/decoder.h b/decoder.h
index 7e76088..b4dcdb6 100644
--- a/decoder.h
+++ b/decoder.h
@@ -2,10 +2,20 @@
#define DECODER_H
#include <boost/cstdint.hpp>
+#include <boost/function.hpp>
+#include <boost/functional/factory.hpp>
+#include <boost/functional/value_factory.hpp>
+
+#include <string>
class DecoderBase {
public:
virtual size_t decode(const uint8_t *input, size_t input_size, uint8_t *output, size_t output_size) = 0;
};
+namespace decoder {
+ void init();
+ DecoderBase *get_decoder(const std::string& name);
+};
+
#endif