source:
XIOS3/dev/XIOS_FILE_SERVICES/src/filter/server_from_client_source_filter.hpp
Last change on this file was 1930, checked in by ymipsl, 4 years ago | |
---|---|
|
|
File size: 1.6 KB |
Line | |
---|---|
1 | #ifndef __XIOS_SERVER_FROM_CLIENT_SOURCE_FILTER__ |
2 | #define __XIOS_SERVER_FROM_CLIENT_SOURCE_FILTER__ |
3 | |
4 | #include "output_pin.hpp" |
5 | #include "event_server.hpp" |
6 | |
7 | namespace xios |
8 | { |
9 | class CGrid; |
10 | |
11 | /*! |
12 | * A source filter is the entry point of the data in the graph of filters. |
13 | */ |
14 | class CServerFromClientSourceFilter : public COutputPin |
15 | { |
16 | public: |
17 | /*! |
18 | * Constructs a source filter accepting data attached to the specified grid. |
19 | * |
20 | * \param gc the garbage collector associated with this filter |
21 | * \param grid the grid to which the data is attached |
22 | * \param compression |
23 | * \param mask |
24 | * \param offset the offset applied to the timestamp of all packets |
25 | * \param manualTrigger whether the output should be triggered manually |
26 | * \param hasMissingValue whether data has missing value |
27 | * \param defaultValue missing value to detect |
28 | */ |
29 | CServerFromClientSourceFilter(CGarbageCollector& gc, CGrid* grid); |
30 | |
31 | /*! |
32 | * Transforms the data received from the model into a packet and send it |
33 | * in the filter graph. The array containing the data can safely be reused |
34 | * immediately after this method returns. |
35 | * |
36 | * \param date the date associated to the data |
37 | * \param data an array containing the data |
38 | */ |
39 | void streamData(CEventServer& event); |
40 | |
41 | private: |
42 | CGrid* grid_; //!< The grid attached to the data the filter can accept |
43 | |
44 | }; // class CServerFromClientSourceFilter |
45 | } // namespace xios |
46 | |
47 | #endif // __XIOS_SERVER_FROM_CLIENT_SOURCE_FILTER__ |
Note: See TracBrowser
for help on using the repository browser.