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


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

Re: Mapping operations to codes

From Victor Bazarov <v.bazarov@comcast.invalid>
Newsgroups comp.lang.c++
Subject Re: Mapping operations to codes
Date 2011-08-23 17:42 -0400
Organization A noiseless patient Spider
Message-ID <j316se$3vm$1@dont-email.me> (permalink)
References <9bi243F224U1@mid.individual.net> <j30pb0$1pi$1@dont-email.me> <9bidfjFom5U1@mid.individual.net> <j3128j$2kc$1@dont-email.me> <9biiotF1hlU1@mid.individual.net>

Show all headers | View raw


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).  Perhaps it's just 
me, and somebody will step up and offer a brilliant solution within your 
limitations.

V
-- 
I do not respond to top-posted replies, please don't ask

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