Last change
on this file since 641 was
639,
checked in by rlacroix, 9 years ago
|
Add a basic garbage collector to ensure no packets linger in the filter graph.
|
File size:
494 bytes
|
Rev | Line | |
---|
[638] | 1 | #include "file_writer_filter.hpp" |
---|
| 2 | #include "exception.hpp" |
---|
| 3 | #include "field.hpp" |
---|
| 4 | |
---|
| 5 | namespace xios |
---|
| 6 | { |
---|
[639] | 7 | CFileWriterFilter::CFileWriterFilter(CGarbageCollector& gc, CField* field) |
---|
| 8 | : CInputPin(gc, 1) |
---|
[638] | 9 | , field(field) |
---|
| 10 | { |
---|
| 11 | if (!field) |
---|
| 12 | ERROR("CFileWriterFilter::CFileWriterFilter(CField* field)", |
---|
| 13 | "The field cannot be null."); |
---|
| 14 | } |
---|
| 15 | |
---|
| 16 | void CFileWriterFilter::onInputReady(std::vector<CDataPacketPtr> data) |
---|
| 17 | { |
---|
| 18 | field->sendUpdateData(data[0]->data); |
---|
| 19 | } |
---|
| 20 | } // namespace xios |
---|
Note: See
TracBrowser
for help on using the repository browser.