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
RevLine 
[123]1#ifndef __FIELD_OPERATION__
2#define __FIELD_OPERATION__
3
4namespace XMLIOSERVER
5{
6
7   class FieldOperation : public AbstractObject
8   {
9      public :
10
[127]11         FieldOperation(const string& _id = string("inst"), const Duration& _dr = NoneDu)
[124]12            : AbstractObject(_id), freqOp(_dr)
[123]13         { /* Ne rien faire de plus */ }
14
[124]15         friend std::ostream& operator<<(std::ostream& out, const FieldOperation& fo)
16         { out << fo.getId(); return (out); }
[123]17
[124]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
[127]24      public : /* virtual */
[124]25
[127]26         virtual ~FieldOperation(void)
[123]27         { /* Ne rien faire de plus */ }
28
29      protected :
30
31      private :
32
[124]33         Duration freqOp;
[123]34
[124]35
[123]36   }; // class FieldOperation
37} // namespace XMLIOSERVER
38
39#endif //__FIELD_OPERATION__
Note: See TracBrowser for help on using the repository browser.