|
Boost : |
Subject: [boost] Is there any interest in a library for application : Boost.Application, new version: Boost.Application_beta_3a_release_2
From: Renato Forti (re.tf_at_[hidden])
Date: 2013-09-21 10:34:59
Hi,
Thanks for your comments!
>> Why did you not make the app framework a base class that is extended by
the application? [
]
In first release (my first attempt to design this lib) I have not used
templates, I used inheritance like you suggest.
But I do not liked of the result, so I went to the design of "templates", of
the current version!
I think that is more boost way, and is more extensible, mainly because of
use of Boost.Parameter that gives flexibility for future extensions.
For sample I have plan to support other types of specific application
(Apache Module, CGI, FastCGI, MPI, IIS) that can need more complicated
handler that Template Parameter can provide.
I will wait more comments on this subject, then I can go to the correct way,
thanks for comments!
>> Also, it would be nice to have a getops style arg parser function, so
that you could help automate getting args and generating help messages for
command line apps.
I let this as user option, for sample user can use Boost.Program_options to
do this (I use it on a lot of samples), or user can choose other way.
I think that this is like log case, we have many option, and application
class let user choose what he want.
-- retf -----Mensagem original----- De: Boost [mailto:boost-bounces_at_[hidden]] Em nome de David Hagood Enviada em: sábado, 21 de setembro de 2013 08:46 Para: boost_at_[hidden] Assunto: Re: [boost] Is there any interest in a library for application : Boost.Application, new version: Boost.Application_beta_3a_release_2 That looks very interesting, but I have a couple of questions: Why did you not make the app framework a base class that is extended by the application? It seems to me that would allow you to enforce the API (by making the application entry point pure virtual), make passing in the parameters and control easier (make them members of the base class), and potentially handle main() (base class has a list of applications to run, application ctor registers in list, application is a static instance). Also, it would be nice to have a getops style arg parser function, so that you could help automate getting args and generating help messages for command line apps. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk