CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2010
    Posts
    5

    how to use map to bind string and operation

    Dear All:

    I need to bind some strings with some operations by 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

  2. #2
    Join Date
    Aug 2005
    Location
    San Diego, CA
    Posts
    1,054

    Re: how to use map to bind string and operation

    Can you be more specific about the program requirements please? Your example doesn't really help very much.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured