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

Last change on this file since 1026 was 1026, checked in by mhnguyen, 8 years ago

Adding some missing files of previous commit and remove some redundant ones

File size: 532 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} // namespace xios
Note: See TracBrowser for help on using the repository browser.