Metric3rdPartyWrapper.h 743 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef Metric3rdPartyWrapper_h
#define Metric3rdPartyWrapper_h

#include "Example3rdPartyCode.h"
#include "Interfaces.hxx"
namespace elx
{
// An Optimizer3rdParty expects that Metric3rdParty will be set as input. All accepted interfaces by the Optimizer3rdPartyCompoment will be delegated to the Metric3rdPartyWrapper object.
  class Metric3rdPartyWrapper : public Example3rdParty::Metric3rdPartyBase  {
public:
  void SetMetricValueComponent(MetricValueInterface*);
  void SetMetricDerivativeComponent(MetricDerivativeInterface*);
  virtual int GetValue();
  virtual int GetDerivative();
private:
  MetricValueInterface* metricval;
  MetricDerivativeInterface* metricderiv;
};
} // end namespace elx
#endif // #define Metric3rdPartyWrapper_h