Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #9256

Re: Mapping operations to codes

From "Default User" <defaultuserbr@yahoo.com>
Newsgroups comp.lang.c++
Subject Re: Mapping operations to codes
Date 2011-08-23 17:05 -0500
Message-ID <9bimhfFsesU1@mid.individual.net> (permalink)
References (1 earlier) <j30pb0$1pi$1@dont-email.me> <9bidfjFom5U1@mid.individual.net> <j3128j$2kc$1@dont-email.me> <9biiotF1hlU1@mid.individual.net> <j316se$3vm$1@dont-email.me>

Show all headers | View raw


"Victor Bazarov" <v.bazarov@comcast.invalid> wrote in message 
news:j316se$3vm$1@dont-email.me...
> On 8/23/2011 5:01 PM, Default User wrote:
>> [..]
>> At the driver level, I need to map operation codes to driver functions. 
>> The
>> original code had large case statements. I've been breaking that into
>> smaller "handlers" for the various op codes.
>
> I still don't see the need to keep a map at the driver level and per 
> instance, sorry.  It can only be necessary if two drivers of the *same* 
> type could report different pointers-to-member for the same op code, in 
> certain conditions (say, depending on their states).

Where would you want to map them?


Brian


Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Mapping operations to codes "Default User" <defaultuserbr@yahoo.com> - 2011-08-23 11:17 -0500
  Re: Mapping operations to codes Paul <pchristor@yahoo.co.uk> - 2011-08-23 10:33 -0700
  Re: Mapping operations to codes Victor Bazarov <v.bazarov@comcast.invalid> - 2011-08-23 13:51 -0400
    Re: Mapping operations to codes "Default User" <defaultuserbr@yahoo.com> - 2011-08-23 14:30 -0500
      Re: Mapping operations to codes Victor Bazarov <v.bazarov@comcast.invalid> - 2011-08-23 16:23 -0400
        Re: Mapping operations to codes "Default User" <defaultuserbr@yahoo.com> - 2011-08-23 16:01 -0500
          Re: Mapping operations to codes Victor Bazarov <v.bazarov@comcast.invalid> - 2011-08-23 17:42 -0400
            Re: Mapping operations to codes "Default User" <defaultuserbr@yahoo.com> - 2011-08-23 17:05 -0500
              Re: Mapping operations to codes Paul <pchristor@yahoo.co.uk> - 2011-08-24 03:23 -0700

csiph-web