#ifndef _MORTGAGE_H
#define _MORTGAGE_H

#include "MortgageS.h"
#include "MortgageC.h"

#include <tao/corba.h>

#include "macro.h"

#ifndef OPENFUSION_MORTGAGE_DLL
#define OPENFUSION_MORTGAGE_DLL
#endif

class OPENFUSION_MORTGAGE_DLL MortgageImpl
  : public POA_Mortgage
{
public:

  MortgageImpl (const char *name, CORBA::Float rate);

  virtual char *name (void);

  virtual CORBA::Float rate (void);

  virtual void calculateMortgage (CORBA::Long loan_amount, CORBA::Short years);

private:

  ACE_CString name_;

  CORBA::Float rate_;
};

#endif
