Last change
on this file since 1241 was
1158,
checked in by oabramkina, 7 years ago
|
Two server levels: merging with trunk r1137.
There are bugs.
|
File size:
1.1 KB
|
Rev | Line | |
---|
[1026] | 1 | #ifndef __XIOS_CFileServerWriterFilter__ |
---|
| 2 | #define __XIOS_CFileServerWriterFilter__ |
---|
| 3 | |
---|
| 4 | #include "input_pin.hpp" |
---|
| 5 | |
---|
| 6 | namespace xios |
---|
| 7 | { |
---|
| 8 | class CField; |
---|
| 9 | |
---|
| 10 | /*! |
---|
| 11 | * A terminal filter which writes the packets it receives in a file. |
---|
| 12 | */ |
---|
| 13 | class CFileServerWriterFilter : public CInputPin |
---|
| 14 | { |
---|
| 15 | public: |
---|
| 16 | /*! |
---|
| 17 | * Constructs the filter (with one input slot) associated to the specified field |
---|
| 18 | * and a garbage collector. |
---|
| 19 | * |
---|
| 20 | * \param gc the associated garbage collector |
---|
| 21 | * \param field the associated field |
---|
| 22 | */ |
---|
| 23 | CFileServerWriterFilter(CGarbageCollector& gc, CField* field); |
---|
| 24 | |
---|
[1158] | 25 | bool virtual isDataExpected(const CDate& date) const; |
---|
[1026] | 26 | protected: |
---|
| 27 | /*! |
---|
| 28 | * Callbacks a field to write a packet to a file. |
---|
| 29 | * |
---|
| 30 | * \param data a vector of packets corresponding to each slot |
---|
| 31 | */ |
---|
| 32 | void virtual onInputReady(std::vector<CDataPacketPtr> data); |
---|
| 33 | |
---|
| 34 | private: |
---|
| 35 | CField* field; //<! The associated field |
---|
| 36 | std::map<Time, CDataPacketPtr> packets; //<! The stored packets |
---|
| 37 | }; // class CFileServerWriterFilter |
---|
| 38 | } // namespace xios |
---|
| 39 | |
---|
| 40 | #endif //__XIOS_CFileServerWriterFilter__ |
---|
Note: See
TracBrowser
for help on using the repository browser.