Hi,
I'm having a little problem with IniFileConfiguration Class, when using setString from AbstractConfiguration.
From my class, the following code works without problem:
From header file:
string File = "/etc/my.config";
AutoPtr< IniFileConfiguration > _ifc;
construction {
_ifc = new IniFileConfiguration;
try {
_ifc->load( File );
} catch( FileNotFoundException &fnte ) {
std::cerr << "File Not Found: " << File << std::endl;
} catch( FileAccessDeniedException &fade ) {
std::cerr << "No access or permission: " << File << std::endl;
}
}
bool getKey( const string Section, const string Key, string Ret ) {
try {
Ret = _ifc->getString( Section + "." + Key );
} catch( NotFoundException &nfe ) {
std::cerr << "Could not load " << Key << " in section " << Section << std::endl;
return false;
}
}
But the following function from same class works with a problem:
bool setKey( const string Section, const string Key, string Value ) {
try {
_ifc->setString( Section + "." + Key, Value );
} catch( Exception& e ) {
std::cerr << "Error: " << e.what() << "
Could not set " << Value << " in section " << Section << "." << Key << std::endl;
return false;
}
return true;
}
The return is:
Error: Not implemented
Could not set Value in section Sectio.Key
What means the return, Not Implemented? Did I compile without something?
My Poco version is: poco-1.3.1-ssl.tar.bz2
Any Idea?
Thanks.





