Last change
on this file since 1954 was
1358,
checked in by rlacroix, 7 years ago
|
Support reentrant workflows and workflows with temporal integration for fields read from files.
|
File size:
712 bytes
|
Line | |
---|
1 | #include "file_server_writer_filter.hpp" |
---|
2 | #include "exception.hpp" |
---|
3 | #include "field.hpp" |
---|
4 | |
---|
5 | namespace xios |
---|
6 | { |
---|
7 | CFileServerWriterFilter::CFileServerWriterFilter(CGarbageCollector& gc, CField* field) |
---|
8 | : CInputPin(gc, 1) |
---|
9 | , field(field) |
---|
10 | { |
---|
11 | if (!field) |
---|
12 | ERROR("CFileServerWriterFilter::CFileServerWriterFilter(CField* field)", |
---|
13 | "The field cannot be null."); |
---|
14 | } |
---|
15 | |
---|
16 | void CFileServerWriterFilter::onInputReady(std::vector<CDataPacketPtr> data) |
---|
17 | { |
---|
18 | field->writeUpdateData(data[0]->data); |
---|
19 | } |
---|
20 | |
---|
21 | bool CFileServerWriterFilter::mustAutoTrigger() const |
---|
22 | { |
---|
23 | return true; |
---|
24 | } |
---|
25 | |
---|
26 | bool CFileServerWriterFilter::isDataExpected(const CDate& date) const |
---|
27 | { |
---|
28 | return true; |
---|
29 | } |
---|
30 | } // namespace xios |
---|
Note: See
TracBrowser
for help on using the repository browser.