Designing issue, help wanted



Hi

I am trying to make a adapter program.
-There can be different kind of adapters, which each can take data from
one source.
-It should be possible to plugin the new adapter for a new source of
data.
-The adapters all make a common structure to give it to the connected
clients. (I have implemented this part).
-Each adapter uses a specific API to collect data from data source.

How the design of the adapter class should look like? Which design
pattern?
One of the adapters inherits already from couple of data source API
classes.

The question is how to make a design so I can add/plugin the third
adapter, using completely third API to collect data, easily to the
system. The adapters all make the common structure data for all
connected clients.

Thanks.

Regards
mojtaba


Reply »


From: mojtaba_danai@xxxxxxxxx - view profile
Date: Fri, Jun 30 2006 12:10 pm
Email: "mojtaba_da...@xxxxxxxxx" <mojtaba_da...@xxxxxxxxx>
Groups: comp.lang.c++
Not yet ratedRating:
show options


Reply | Reply to Author | Forward | Print | Individual Message | Show
original | Remove | Report Abuse | Find messages by this author


Hi again
Just wanted to add:

There should probably be a superclass for all adapters, right? But they

use different APIs, as I said before, and one of the adapters inherits
already from couple of data source API classes.


Thanks.

.



Relevant Pages

  • Re: Designing issue, help wanted
    ... I do not answer questions on behalf of my employer. ... -There can be different kind of adapters, which each can take data from ... One of the adapters inherits already from couple of data source API ...
    (comp.software.patterns)
  • Re: Designing issue
    ... -There can be different kind of adapters, which each can take data from ... -Each adapter uses a specific API to collect data from data source. ... How the design of the adapter class should look like? ...
    (comp.object)
  • switchmode AC adapters
    ... higher power output than older AC adapters. ... Do the switchmode AC adapters implement ... this type of design or are they using a simpler/different design? ...
    (sci.electronics.design)
  • Re: A new pseudo-disk for Apple 2.
    ... adapters. ... faster SUDOKU v2.0 solver for Apple II's! ... "The wastebasket is our most important design ...
    (comp.sys.apple2)
  • Re: small and board mount solutions for +5VDC AC-DC supply?
    ... > Hi - I have a board I'm finishing up the design of right now that needs a ... radioshack.com and looked up "adapters". ... Rich ... Prev by Date: ...
    (sci.electronics.design)