From: Pavan S. <pav...@go...> - 2012-12-26 18:03:03
|
Hi all, I am using boost tokenizer to parse the data from a csv file. However, once the data has been parsed, I wish to store each line as a record. For example, lets say one line is as follows: Trade ID, counterparty, currency, tradetype, notional, ..expirydate 20 bank A EUR Option 100 12/26/2012 I want to store this line as a record so that when I want to , I can retreive all of these attributes related to a particular trade-id. Its like a lookup table/map but with one key and many mapped values. I have an entire file full of these types of rows. Is there something in STL or Boost or QuantLib that will allow me to store so many attributes that map to one key like a trade-id? I was thinking about about a multimap. any ideas please? thanks Pavan |