Bugs item #1905128, was opened at 2008-03-01 16:36
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=723099&aid=1905128&group_id=132078

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: tpserver-cpp
Group: Feature Request
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Tim Ansell (mithro)
Assigned to: Lee Begg (llnz)
Summary: message object should inherit from istringstream

Initial Comment:
It would be really good if the message object inherited from istringstream so 
that you could do something like the following,

    Message* msg = new Message();
    message << "The construction of your new fleet is" << fleetname << "is 
complete and in orbit around" << planet->getName() << endl;
    message << "The fleet consists of: " << endl;
    message << "<ul>" << endl;
    for(std::map<uint32_t,uint32_t>::iterator itcurr = fleettype.begin(); 
itcurr != fleettype.end(); ++itcurr){
        Design* design = 
Game::getGame()->getDesignStore()->getDesign(itcurr->first);

        message << "<li>" << itcurr->second << " * " << design->getName() << 
"</li>" << endl;
    }
    message << "</ul>" << endl;


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=723099&aid=1905128&group_id=132078
_______________________________________________
tp-bugs mailing list
[email protected]
http://mail.thousandparsec.net/cgi-bin/mailman/listinfo/tp-bugs

Reply via email to