[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Apso-devel] about the refactor

From: Jeronimo Pellegrini
Subject: Re: [Apso-devel] about the refactor
Date: Wed, 15 Nov 2006 05:17:06 -0200
User-agent: Mutt/1.5.13 (2006-08-11)

On Wed, Nov 15, 2006 at 10:10:05AM +0800, Stuart Hu wrote:
> Hi J,


>         I write a crypt engine factory in case of that one day you are 
> going to use multiple crypt library.
>         I write a vcrepositary factory to produce vc in a polymorphic way.

Thanks a lot!
We'll probably have new vcrepository classes soon.

>         I tried to use your directory.h but fail to compile.

Strange... It compiles here. Did you get the latest version?

>         Facade is not a good idea since it will handle all the command in 
> itself. My suggestion is to use a pure virtual base class called "command" 
> instead.
>         class command : public Directory<command>
>         {
>         public:
>                 virtual run()=0;
>         }
>         Then you can add new command subclass such as grant,revoke.

Yes, good. But it wouldn't hurt to have a Facade as a wrapper over
command. That way, people could call it even from C programs. :-)
(And the interface would be familiar to C programmers)

But anyway, that is not necessary now. 

Thanks Stuart!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]