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

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

suite du précédent commit

File size: 1004 bytes
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 = NoneDu)
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      public : /* virtual */
25
26         virtual ~FieldOperation(void)
27         { /* Ne rien faire de plus */ }
28
29      protected :
30
31      private :
32
33         Duration freqOp;
34
35
36   }; // class FieldOperation
37} // namespace XMLIOSERVER
38
39#endif //__FIELD_OPERATION__
Note: See TracBrowser for help on using the repository browser.