GDOptimizer4thPartyComponent.h 1022 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
#ifndef GDOptimizer4thPartyComponent_h
#define GDOptimizer4thPartyComponent_h

#include "ComponentBase.h"
#include "Interfaces.hxx"
#include "Example4thPartyCode.h"
#include "Metric4thPartyWrapper.h"

namespace elx
{
  // wrapping into components: 
12
13
14
  class GDOptimizer4thPartyComponent : 
    public Implements <
    Accepting< MetricValueInterface >,
15
    Providing < OptimizerUpdateInterface, ConflictinUpdateInterface >
16
17
    >

18
19
20
  {
  public:
    GDOptimizer4thPartyComponent();
21
    virtual ~GDOptimizer4thPartyComponent();
22
23
    Example4thParty::GDOptimizer4thParty* theImplementation;
    Metric4thPartyWrapper* MetricObject;
24
    //virtual int ConnectFrom(const char *, ComponentBase*);
25
26
    int Set(MetricValueInterface*);
    int Update();
27
28
29
30

    //template <class ConflictinUpdateInterface> virtual int Update() { return 5; };
    // "error" : member function templates cannot be virtual
    int Update(ConflictinUpdateInterface*) { return 5; };
31
32
33
34
  };

} //end namespace elx
#endif // #define GDOptimizer4thPartyComponent_h