axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lilantha Darshana" <>
Subject RE: Platform specific class
Date Wed, 05 Jan 2005 15:08:00 GMT
+1 for a Bridge pattern to support. PAL - Platform Abstraction Layer.
Can we think of using APR ( for some of impl. ?


-----Original Message-----
From: John Hawkins []
Sent: Wednesday, January 05, 2005 6:38 AM
To: Apache AXIS C Developers List
Subject: Re: Platform specific class

I was thinking of something like the following:

(See attached file: Platform hierarchy.jpeg)

As you can see the IPlatform interface has base implementations for macros
and pure virtual methods only. This makes it really clear what the
platforms have to implement (with appropriate documentation at this level).
The architecture layer (Windows, Unix etc.) then has platform specific
implementations of the methods and any overriding of the macros that may be
The platform specific layer (WINNT, AIX, HP_UX etc.) then has any more
specific overrides that may be necessary over and above the architecture

The Platform factory is the key class it is set out something like this
(Pseudo) ->

class Platform
      static IPlatform platform;
#ifdef WIN32
      platform = Win32Platform
      * returns the specific instance of Platform
      static IPlatform getplatform();

Thoughts folks?

John Hawkins

             Nadir Amra                                                    
             04/01/2005 18:44          "Apache AXIS C Developers List"     
             Please respond to                                             
              "Apache AXIS C                                       Subject 
             Developers List"          Re: Transport specific class        

I agree, and was thinking of doing that....although do we want a
PlatformServices class or just individual APIs?

Nadir K. Amra
e-Business Technologies - IBM eServer i5/OS
IBM Rochester, MN,  (Tel. 507-253-0645, t/l 553-0645)

John Hawkins <>
01/04/2005 12:40 PM
Please respond to
"Apache AXIS C Developers List"


Transport specific class

Hi Folks,

I've just been putting some error information into transport and realised
few things. (I'm going to start another thread re other issue.)

I just implemented a "getErrorMessage" piece of code which should have
into the platform specifics but it was quite chunky and did not sit easily
with being a macro.

The Platform specific files are not classes - this surprised me - would it
be better to have a platform interface that the specific classes overrode
with their implementation? I understand that the macros are probably fine
for most things but if we had a platform class it would be more explicit
what each method had to achieve. These methods could also return values
more explicitly?

John Hawkins

View raw message