Boost.Application (Pre Alpha) Release 2 available

Hi All! There is a new version of "Boost.Application" available in SF (http://sourceforge.net/projects/boostapp/)
Boost.Application_pre_alpha_2.zip (http://sourceforge.net/projects/boostapp/files/Boost.Application_pre_alpha_ 2.zip/download)
This version is based on received comments ! Please, install it: 1) Copy: Boost.Application_pre_alpha_2\boost\application To: boost_1_48_0\boost and, Boost.Application_pre_alpha_2\libs\application To: boost_1_48_0\libs 2) Build (bjam link=shared) . 3) And, to see what has changed, please see the tutorial in help (doc): boost_1_48_0\libs\application\doc\html\application\tutorial.html I will wait for comments! Thanks Renato

Hi,
This version is based on received comments !
I have only read the tutorial and some of the source. I have not tried to install it now, but this looks great to me. Just one minor thing: do I understand it correctly, that app.status() actually runs the application? I am not sure, I if I really understood your code there. For me that would be a bit odd. I'd have expected something like app.run(), or even better app(): int main(int argc, char *argv[]) { try { boost::application::application<myapp> app( argc, argv ); return app(); } catch(const boost::application::application_error &e) { std::cout << e.what() << std::endl; } return 1; }; status() looks like just getting the status, which I would expect to be a lightweight operation. A convenience extension could be to have a standard main() implementation: int main(int argc, char *argv[]) { return boost::application::run_application<myapp>( argc, argv ); }; Maybe that is an idea for the future. Also for the future I'd like to think about more sophisticated application types, like e.g. web applications with various APIs, e.g. CGI, FastCGI, apache Module, IIS Module, etc. Do you think, that your solution would be extensible enough for something like that? Christof -- okunah gmbh Software nach Maß Werner-Haas-Str. 8 www.okunah.de 86153 Augsburg cd@okunah.de Registergericht Augsburg Geschäftsführer Augsburg HRB 21896 Christof Donat UStID: DE 248 815 055

Hi Christof,
I have only read the tutorial and some of the source. I have not tried to install it now, but this looks great to me.
Your comments were very important and help a lot! Thanks!
Just one minor thing: do I understand it correctly, that app.status()
The "app.status()" only return the status of app, not run app. The way the application is started, depends on the platform and the type of application. For example: if we have a windows server, who will start the application will be the SCM, thats block main thread and calls "service_main_entry". If you try run windows server (service) in console, the "app.status()" will return: 1063 (this is only a status code) "The service process could not connect to the service controller"
A convenience extension could be to have a standard main() implementation:
Nice, I will add this!
Also for the future I'd like to think about more sophisticated application types, like e.g. web applications with various APIs, e.g. CGI, FastCGI, apache Module, IIS Module, etc. Do you think, that your solution would be extensible enough for something like that?
Yes! I think so, for next version (3) I'm thinking of just that. On how to make it better prepared to be extensible! On both sides: "Application Engine" and "Application Installation and configuration" For the next version, I have to solve the " wide string " problem too! For these specific cases (CGI, FastCGI, apache Module, IIS Module and so on), we can have: cgi_application, apache_module_application, fast_cgi_application, iis_application, ... FUTURE If someone (thats know one of these APIS or other) wants to join the project and contribute with it, it would be great! And I have plan to (in future) develop a "service model" using Boost.Extension (for sample) to provide dynamically late bind extension (Plug-in System). Thanks to all! -----Mensagem original----- De: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] Em nome de Christof Donat Enviada em: domingo, 12 de fevereiro de 2012 09:47 Para: boost@lists.boost.org Assunto: Re: [boost] Boost.Application (Pre Alpha) Release 2 available Hi,
This version is based on received comments !
I have only read the tutorial and some of the source. I have not tried to install it now, but this looks great to me. Just one minor thing: do I understand it correctly, that app.status() actually runs the application? I am not sure, I if I really understood your code there. For me that would be a bit odd. I'd have expected something like app.run(), or even better app(): int main(int argc, char *argv[]) { try { boost::application::application<myapp> app( argc, argv ); return app(); } catch(const boost::application::application_error &e) { std::cout << e.what() << std::endl; } return 1; }; status() looks like just getting the status, which I would expect to be a lightweight operation. A convenience extension could be to have a standard main() implementation: int main(int argc, char *argv[]) { return boost::application::run_application<myapp>( argc, argv ); }; Maybe that is an idea for the future. Also for the future I'd like to think about more sophisticated application types, like e.g. web applications with various APIs, e.g. CGI, FastCGI, apache Module, IIS Module, etc. Do you think, that your solution would be extensible enough for something like that? Christof -- okunah gmbh Software nach Maß Werner-Haas-Str. 8 www.okunah.de 86153 Augsburg cd@okunah.de Registergericht Augsburg Geschäftsführer Augsburg HRB 21896 Christof Donat UStID: DE 248 815 055 _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (2)
-
Christof Donat
-
Renato Tegon Forti