version 1.20, 2006/01/30 16:17:35
|
version 1.21, 2006/11/14 18:34:49
|
|
|
// | // |
//============================================================================== | //============================================================================== |
// | // |
// Author: Nag Boranna (nagaraja_boranna@hp.com) |
|
// |
|
// Modified By: Yi Zhou (yi_zhou@hp.com) |
|
// : Sushma Fernandes (sushma_fernandes@hp.com) |
|
// Carol Ann Krug Graves, Hewlett-Packard Company |
|
// (carolann_graves@hp.com) |
|
// Vijay Eli, IBM, (vijayeli@in.ibm.com), bug#3609. |
|
// |
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
| |
|
|
{ | { |
// unable to create file | // unable to create file |
PEG_TRACE_STRING(TRC_CONFIG, Tracer::LEVEL4, | PEG_TRACE_STRING(TRC_CONFIG, Tracer::LEVEL4, |
"Failed to create config file: " + cFile + ", " + strerror(errno)); |
"Failed to create config file: " + cFile + ", " + |
|
strerror(errno)); |
throw NoSuchFile(cFile); | throw NoSuchFile(cFile); |
} | } |
ofs.close(); | ofs.close(); |
|
|
*/ | */ |
ConfigFileHandler::~ConfigFileHandler () | ConfigFileHandler::~ConfigFileHandler () |
{ | { |
|
|
// | // |
// delete tables | // delete tables |
// | // |
|
|
if (!ofs) | if (!ofs) |
{ | { |
PEG_TRACE_STRING(TRC_CONFIG, Tracer::LEVEL4, | PEG_TRACE_STRING(TRC_CONFIG, Tracer::LEVEL4, |
"Failed to create config file: " + pFile + ", " + strerror(errno)); |
"Failed to create config file: " + pFile + ", " + |
|
strerror(errno)); |
throw NoSuchFile(pFile); | throw NoSuchFile(pFile); |
} | } |
ofs.close(); | ofs.close(); |
|
|
/** | /** |
Get the current property value for the specified property name. | Get the current property value for the specified property name. |
*/ | */ |
Boolean ConfigFileHandler::getCurrentValue (const CIMName& name, String& value) |
Boolean ConfigFileHandler::getCurrentValue( |
const |
const CIMName& name, |
|
String& value) const |
{ | { |
if (_currentFileExist) | if (_currentFileExist) |
{ | { |
|
|
/** | /** |
Get the planned property value for the specified property name. | Get the planned property value for the specified property name. |
*/ | */ |
Boolean ConfigFileHandler::getPlannedValue (const CIMName& name, String& value) |
Boolean ConfigFileHandler::getPlannedValue( |
const |
const CIMName& name, |
|
String& value) const |
{ | { |
if (_plannedFileExist) | if (_plannedFileExist) |
{ | { |
|
|
/** | /** |
Get all current property names. | Get all current property names. |
*/ | */ |
void ConfigFileHandler::getAllCurrentPropertyNames (Array<CIMName>& propertyNames) |
void ConfigFileHandler::getAllCurrentPropertyNames( |
|
Array<CIMName>& propertyNames) |
{ | { |
propertyNames.clear(); | propertyNames.clear(); |
| |
|
|
} | } |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |
|
|