Re: [Cppcms-users] Migration Guide
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-03-05 16:04:05
|
>> CppCMS json parser supports two extensions to the standard json syntax, >> that make it very easy to use for configuration: > > Yeah, that are useful extensions but in the end it is not json anymore. > Perl implemented # comments and others may do other or do not support them > at all. I mean in context of the configuration file context not in general >>> What do you think >>> about a patch which let you switch to http://www.libelektra.org/ at >>> compiletime if preferred? >>> >> >> What is the license libelektra distributed under? > > It is BSD licenced. And as described: you can choose at build time if you > want that dependency or not. > From what I can seen from the quick glance that libelektra does not support arrays. Many data structures in the CppCMS configuration files are arrays and they are not 1-to-1 convertible to "registry" style operations. In any case, CppCMS's settings is based on JSON, if you want to use other formats it should be possible to convert them to JSON object and then you can start CppCMS main service as cppcms::json::value settings; settings = // load from whatever you want from cppcms::service srv(settings); Including converting from example from "Elektra" format to JSON one. If you want to create a patch that allows converting elektra to cppcms::json::value then I can put it under "contrib" section. Please note this Copyrights section http://cppcms.com/wikipp/en/page/cppcms_1x_coding_standards#Copyrights For submitting patches. Best Regards, Artyom |