search for: parsefrom

Displaying 1 result from an estimated 1 matches for "parsefrom".

Did you mean: parseform
2012 Dec 11
0
libnutconf: Basic UTs for libnutconf pushed
...t exhaustive; however, they test the most prominent (sample) configuration settings (de)serialisation. The code should also give you an idea about how to write a simple configuration manipulation program using the library. E.g. something like this should work: nut::UpsConfiguration config; config.parseFrom(nut::NutFile( "/usr/local/ups/etc/ups.conf", nut::NutFile::READ_ONLY)); std::cout << "my-ups description: " << config.getDescription("my-ups") << std::endl; // ... config.setDriver("my-ups", "snmp-ups"); config.writeTo(nut::N...