Last change
on this file since 1653 was
1653,
checked in by oabramkina, 5 years ago
|
Developments for visualization of XIOS workflow.
Branch is spawned from trunk r1649.
Boost library is used for producing Graphviz DOT files. Current results: a DOT file representing a static workflow. For a complete proof of concept, DOT files for each timestamp should be generated. The necessary information has been collected by XIOS, it only requires rearranging the information for graphing (changes in classes CWorkflowGraph and CGraphviz).
|
File size:
865 bytes
|
Rev | Line | |
---|
[1026] | 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."); |
---|
[1653] | 14 | filterId = InvalidableObject::count; |
---|
| 15 | InvalidableObject::count++; |
---|
[1026] | 16 | } |
---|
| 17 | |
---|
| 18 | void CFileServerWriterFilter::onInputReady(std::vector<CDataPacketPtr> data) |
---|
| 19 | { |
---|
| 20 | field->writeUpdateData(data[0]->data); |
---|
| 21 | } |
---|
[1158] | 22 | |
---|
[1358] | 23 | bool CFileServerWriterFilter::mustAutoTrigger() const |
---|
| 24 | { |
---|
| 25 | return true; |
---|
| 26 | } |
---|
| 27 | |
---|
[1158] | 28 | bool CFileServerWriterFilter::isDataExpected(const CDate& date) const |
---|
| 29 | { |
---|
| 30 | return true; |
---|
| 31 | } |
---|
[1653] | 32 | |
---|
| 33 | int CFileServerWriterFilter::getFilterId(void) |
---|
| 34 | { |
---|
| 35 | return filterId; |
---|
| 36 | } |
---|
| 37 | |
---|
[1026] | 38 | } // namespace xios |
---|
Note: See
TracBrowser
for help on using the repository browser.