// $RCSfile: TopAccountingAdapter.cpp,v $
#include "TopAccountingAdapter.h"
void TopAccountingAdapter::
     postReceivable(CreditPayment *p) {
  accounts->receipt(p->description(),
		    p->pennies());
}

void TopAccountingAdapter::
     postSale(Reservation *r) {
  accounts->sale(r->description(),
		 r->pennies());
}

TopAccountingAdapter::
 ~TopAccountingAdapter() {
  delete accounts;
}

TopAccountingAdapter::
  TopAccountingAdapter(
      const TopAccountingAdapter & x) {
  accounts =
     new TopAccounting(*(x.accounts));
}
