aboutsummaryrefslogtreecommitdiffstats
path: root/src/pad_common.h
diff options
context:
space:
mode:
authorStefan Pöschel <spoeschel@irt.de>2017-02-06 15:51:15 +0100
committerStefan Pöschel <spoeschel@irt.de>2017-02-06 15:51:15 +0100
commit0f3a52cbc8abde43ef6ed584eb2403960d994fc1 (patch)
treed6421600c621dce2c610f5ccc64ee0c1d5570ffe /src/pad_common.h
parent421ad8b206668e6168c4ed583d1a68741a4490b4 (diff)
downloadODR-PadEnc-0f3a52cbc8abde43ef6ed584eb2403960d994fc1.tar.gz
ODR-PadEnc-0f3a52cbc8abde43ef6ed584eb2403960d994fc1.tar.bz2
ODR-PadEnc-0f3a52cbc8abde43ef6ed584eb2403960d994fc1.zip
PAD: make PADPacketizer queue private
Diffstat (limited to 'src/pad_common.h')
-rw-r--r--src/pad_common.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/pad_common.h b/src/pad_common.h
index 064774c..c997d83 100644
--- a/src/pad_common.h
+++ b/src/pad_common.h
@@ -65,6 +65,8 @@ private:
const bool short_xpad;
const size_t max_cis;
+ std::deque<DATA_GROUP*> queue;
+
size_t xpad_size;
uint8_t subfields[4*48];
size_t subfields_size;
@@ -98,11 +100,12 @@ public:
static const size_t VARSIZE_PAD_MAX;
static const std::string ALLOWED_PADLEN;
- std::deque<DATA_GROUP*> queue;
-
PADPacketizer(size_t pad_size);
~PADPacketizer();
+ void AddDG(DATA_GROUP* dg, bool prepend);
+ void AddDGs(const std::vector<DATA_GROUP*>& dgs, bool prepend);
+
pad_t* GetPAD();
// will be removed, when pull (instead of push) approach is implemented!