source: XMLIO_V2/dev/dev_rv/src/XMLIO/field_operation.hpp @ 126

Last change on this file since 126 was 124, checked in by hozdoba, 14 years ago

Commit pour sauvegarde - diverses corrections de bogues et améliorations du code.

File size: 1.1 KB
Line 
1#ifndef __FIELD_OPERATION__
2#define __FIELD_OPERATION__
3
4namespace XMLIOSERVER
5{
6
7   class FieldOperation : public AbstractObject
8   {
9      public :
10
11         FieldOperation(const string& _id = string("inst"), const Duration& _dr = Hour)
12            : AbstractObject(_id), freqOp(_dr)
13         { /* Ne rien faire de plus */ }
14
15         friend std::ostream& operator<<(std::ostream& out, const FieldOperation& fo)
16         { out << fo.getId(); return (out); }
17
18         friend std::istream& operator>>(std::istream& in, FieldOperation& fo)
19         { string __id; in >> __id; fo.setId(__id); return (in); }
20
21         const Duration& getFreqOp(void) const { return (freqOp); }
22         void setFreqOp(const Duration& _dr) { freqOp = _dr; }
23
24         //void getOutputField(const Array<double, 1>& inField, Array<double, 1>& outField) const
25
26         //void getStoreField(const Array<double, 1>& inField, Array<double, 1>& outField) const
27
28         virtual ~FieldOperation()
29         { /* Ne rien faire de plus */ }
30
31
32      protected :
33
34      private :
35
36         Duration freqOp;
37
38
39   }; // class FieldOperation
40} // namespace XMLIOSERVER
41
42#endif //__FIELD_OPERATION__
Note: See TracBrowser for help on using the repository browser.