Keywords are limited to 16 characters in the class Keydata. It would be nice if this could be raised to let's say 32. And it would be very nice if such restrictions were at least mentioned in the documentation. :-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
where cc is the Common C++ namespace
std::string is the type for the key and int is the type
for the value. The constructor is self explainatory,
except it would take std::string instead of const char * as arguments.
If I ever do, I'll let you know.
Johann
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Keywords are limited to 16 characters in the class Keydata. It would be nice if this could be raised to let's say 32. And it would be very nice if such restrictions were at least mentioned in the documentation. :-)
Well, 16 unique characters :). But yes, maybe that should be bigger, and mentioned somewhere...
Or rewrite the class (or create another one) that
uses std::string. That would mean unlimited size...
I'm dreaming of having the time to make a template
that could be used as folllows:
cc::keydata<std::string, int>
configfile( "filename", "section-name" );
where cc is the Common C++ namespace
std::string is the type for the key and int is the type
for the value. The constructor is self explainatory,
except it would take std::string instead of const char * as arguments.
If I ever do, I'll let you know.
Johann
..except that I think the namespace for Common C++ in 2.0 should be "gnu:" rather than "cc:"...
I'll keep that in mind ...