source: XIOS/dev/dev_olga/src/filter/file_server_writer_filter.cpp @ 1654

Last change on this file since 1654 was 1654, checked in by oabramkina, 3 years ago

Corrections for workflow visualization.

File size: 796 bytes
Line 
1#include "file_server_writer_filter.hpp"
2#include "exception.hpp"
3#include "field.hpp"
4
5namespace 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
31  int CFileServerWriterFilter::getFilterId(void)
32  {
33    return filterId;
34  }
35
36} // namespace xios
Note: See TracBrowser for help on using the repository browser.