source: XMLIO_V2/dev/common/src/xmlio/functor.hpp @ 231

Last change on this file since 231 was 219, checked in by hozdoba, 13 years ago

Préparation nouvelle arborescence

File size: 1.5 KB
Line 
1#ifndef __XMLIO_CFunctor__
2#define __XMLIO_CFunctor__
3
4/// xmlioserver headers ///
5#include "xmlioserver_spl.hpp"
6#include "exception.hpp"
7#include "array.hpp"
8
9namespace xmlioserver
10{
11   namespace func
12   {
13      /// ////////////////////// Déclarations ////////////////////// ///
14      class CFunctor : public CObject
15      {
16         /// Définition de type ///
17         typedef CObject SuperClass;
18         typedef ARRAY(double, 1) DoubleArray;
19
20         public :
21
22            /// Accesseurs ///
23            DoubleArray getDataOutput(void) const;
24            /// Opérateur ///
25            DoubleArray operator ()(const DoubleArray dinput);
26
27            /// Destructeur ///
28            virtual ~CFunctor(void);
29
30         protected :
31
32            /// Traitement ///
33            virtual void apply(const DoubleArray dinput, DoubleArray doutput) = 0;
34
35            /// Autres ///
36            virtual StdString toString(void) const;
37            virtual void fromString(const StdString & str);
38
39            /// Constructeurs ///
40            CFunctor(void);                             // Not implemented.
41            CFunctor(const StdString & id, DoubleArray doutput);
42            CFunctor(const CFunctor & functor);         // Not implemented.
43            CFunctor(const CFunctor * const functor);   // Not implemented.
44
45         private :
46
47            /// Propriétés privées ///
48            DoubleArray doutput;
49           
50      }; // class CFunctor
51   } // namespace func
52} // namespace xmlioserver
53
54#include "functor_type.hpp"
55
56#endif // __XMLIO_CFunctor__
Note: See TracBrowser for help on using the repository browser.