4 Account_i::Account_i ()
8 Account_i::Account_i (const char *name
,
11 name_ (CORBA::string_dup (name
))
16 Account_i::~Account_i ()
20 // Set the ORB pointer.
22 Account_i::orb (CORBA::ORB_ptr o
)
24 this->orb_
= CORBA::ORB::_duplicate (o
);
27 // Return the current balance on the server.
35 Account_i::deposit (CORBA::Float deposit
)
41 Account_i::withdraw (CORBA::Float withdrawl
)
43 if (balance_
>= withdrawl
)
44 balance_
-= withdrawl
;
46 throw Bank::Account::Overdraft ("Exception::Overdraft\n");
52 return CORBA::string_dup (this->name_
.in ());
56 Account_i::name (const char *name
)
58 this->name_
= CORBA::string_dup (name
);