By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,148 Members | 1,342 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,148 IT Pros & Developers. It's quick & easy.

CORBA/C++(returning reference to object)

P: 1
I am busy writing a program in CORBA.It is about a bank and it's accounts .I am doing this in CORBA.The client has to enter he's name and password.Then these details should be send to a function in the header file
open(name,passw) which should greate a new account if the name is new else it should return a reference to the already greated account.
I have declared a struct Person which contain each client's name,password and balance.
I have used a map to store the details of each user and his details.
To create an account I just add to the map,but how should I return a reference to an already created account ?
(Would it be possible to use an iterator ?.I could search for the account in the map and return the iterator to the main function.)

I aprreciate any help
Jun 16 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.