History log of /haiku/src/kits/shared/DriverSettingsMessageAdapter.cpp
Revision Date Author Comments
# c4b6278c 17-Jun-2015 Axel Dörfler <axeld@pinc-software.de>

DriverSettingsMessageAdapter: added "wildcard" support.

* You can now add arbitrarily named fields to the message as well,
without having them all specified in the template.
* Also added a missing converter method that is called when there
are no values to add, and implemented all methods in the base
class, so that you only have to implement the methods you actually
need.


# 687d0bc2 23-Mar-2015 Axel Dörfler <axeld@pinc-software.de>

DriverSettingsMessageAdapter: fixed converter signature.

* The ConvertFromDriverSettings() method missed the current value
index.
* Completed unit tests, and enabled them all.


# 9f218b4e 20-Mar-2015 Axel Dörfler <axeld@pinc-software.de>

DriverSettingsMessageAdapter: fixed various issues.

* _AddParameter() would ignore all BMessage::Add*() errors.
* _ConvertFromDriverParameter() would ignore most intermediate error,
but would fail badly over some incorrect settings file.
* Also, it checked for the parent value for each parameter, which
doesn't make any sense, but would add as often as there are
parameters -- which also may be none, in which case the value
got ignored.


# 18811c71 04-Mar-2015 Axel Dörfler <axeld@pinc-software.de>

DriverSettingsMessageAdapter: hide empty message.

* Empty messages no longer end up as empty section - instead, they are
just empty.


# 3211cbcd 03-Mar-2015 Axel Dörfler <axeld@pinc-software.de>

DriverSettingsMessageAdapter: optional field converter.

* You can now optionally specify a converter that does the actual
message to settings conversion, and vice versa.
* This allows for more sophisticated and custom conversions.


# 3aeed660 07-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

include strings.h where appriopriate...

instead or additionally to string.h, in preparation for functions move.
* moves str[n]casecmp() functions and others to strings.h.
* strings.h doesn't include string.h anymore.
* this solves #10949


# 6229115b 16-Jun-2014 Humdinger <humdingerb@gmail.com>

More small C++11 tweaks.


# cf06f966 29-Sep-2013 Axel Dörfler <axeld@pinc-software.de>

libshared: Factored out driver settings class from net_server.

* The new class is called DriverSettingsMessageAdapter which can translate
between a driver_settings file, and a BMessage.
* The net_server Settings class is now just using this class.


# c4b6278c027f29e1b0954e2f80281f9efd9c4d04 17-Jun-2015 Axel Dörfler <axeld@pinc-software.de>

DriverSettingsMessageAdapter: added "wildcard" support.

* You can now add arbitrarily named fields to the message as well,
without having them all specified in the template.
* Also added a missing converter method that is called when there
are no values to add, and implemented all methods in the base
class, so that you only have to implement the methods you actually
need.


# 687d0bc272d1070b797fac07b0f854377605c688 23-Mar-2015 Axel Dörfler <axeld@pinc-software.de>

DriverSettingsMessageAdapter: fixed converter signature.

* The ConvertFromDriverSettings() method missed the current value
index.
* Completed unit tests, and enabled them all.


# 9f218b4e2d05bab14e78a4e6932e73e27c529b57 20-Mar-2015 Axel Dörfler <axeld@pinc-software.de>

DriverSettingsMessageAdapter: fixed various issues.

* _AddParameter() would ignore all BMessage::Add*() errors.
* _ConvertFromDriverParameter() would ignore most intermediate error,
but would fail badly over some incorrect settings file.
* Also, it checked for the parent value for each parameter, which
doesn't make any sense, but would add as often as there are
parameters -- which also may be none, in which case the value
got ignored.


# 18811c71ae11cd386d206e21efeb088bd9a86804 04-Mar-2015 Axel Dörfler <axeld@pinc-software.de>

DriverSettingsMessageAdapter: hide empty message.

* Empty messages no longer end up as empty section - instead, they are
just empty.


# 3211cbcd15edef9bf49cfc7b58baf412d27142f5 03-Mar-2015 Axel Dörfler <axeld@pinc-software.de>

DriverSettingsMessageAdapter: optional field converter.

* You can now optionally specify a converter that does the actual
message to settings conversion, and vice versa.
* This allows for more sophisticated and custom conversions.


# 3aeed6607cd07762c0e709633c012b3a632dbad9 07-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

include strings.h where appriopriate...

instead or additionally to string.h, in preparation for functions move.
* moves str[n]casecmp() functions and others to strings.h.
* strings.h doesn't include string.h anymore.
* this solves #10949


# 6229115bacb6fe085dcef68cbde071632e05bb68 16-Jun-2014 Humdinger <humdingerb@gmail.com>

More small C++11 tweaks.


# cf06f96628c2f515759163e439bcb0d502497118 29-Sep-2013 Axel Dörfler <axeld@pinc-software.de>

libshared: Factored out driver settings class from net_server.

* The new class is called DriverSettingsMessageAdapter which can translate
between a driver_settings file, and a BMessage.
* The net_server Settings class is now just using this class.