Boost logo

Boost Users :

Subject: [Boost-users] boost how to map between string and operation
From: Jack Bryan (dtustudy68_at_[hidden])
Date: 2010-07-13 17:23:53


Dear All:
I need to bind some strings with some operations boost map.
For example,
if inputString == "prepareDataVector1" dataVectorRegionRef = prepareDataVector1; loadDataVector.push_back("prepareDataVector1");
else inputString == "prepareDataVector2" dataVectorRegionRef = prepareDataVector2; loadDataVector.push_back("prepareDataVector2");else ... so on
I have checked boost lib, map can do mapping of two class, I need to do mapping between string and operations.
Any help is appreciated.
Jack
July 13 2010
_________________________________________________________________
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net