Overview
Features
Download
Documentation
Community
Add-Ons & Services

Poco::Util::AbstractConfiguration::getData

Discussion of ideas for features and new projects based on POCO.

Poco::Util::AbstractConfiguration::getData

Postby elemings » 02 Dec 2010, 02:05

Something like the following:

Code: Select all
class AbstractConfiguration
{
public:
    typedef unsigned char Byte;
    typedef Poco::Buffer<Byte> Data;
    Data getData (const std::string& key);
protected:
    size_t getRawData (const std::string& key, Byte* data) = 0;
};
elemings
 
Posts: 20
Joined: 02 Nov 2010, 18:17

Re: Poco::Util::AbstractConfiguration::getData

Postby guenter » 03 Dec 2010, 08:41

what would getData() do that getString() couldn't? Base64 or BinHex decoding?
guenter
 
Posts: 1129
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: Poco::Util::AbstractConfiguration::getData

Postby elemings » 15 Dec 2010, 18:30

Good point. The extended interface is for convenience I suppose. It unburdens clients from having to do the encoding/decoding themselves.
elemings
 
Posts: 20
Joined: 02 Nov 2010, 18:17


Return to Wishlist

Who is online

Users browsing this forum: No registered users and 1 guest