version 1.23, 2005/05/19 06:04:45
|
version 1.24, 2005/06/03 03:48:17
|
|
|
// Modified By: Yi Zhou (yi_zhou@hp.com) | // Modified By: Yi Zhou (yi_zhou@hp.com) |
// Sushma Fernandes (sushma_fernandes@hp.com) | // Sushma Fernandes (sushma_fernandes@hp.com) |
// Aruran, IBM (ashanmug@in.ibm.com) for Bug# 3614 | // Aruran, IBM (ashanmug@in.ibm.com) for Bug# 3614 |
|
// Vijay Eli, IBM, (vijayeli@in.ibm.com) for Bug# 3613 |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
*/ | */ |
void TracePropertyOwner::getPropertyInfo( | void TracePropertyOwner::getPropertyInfo( |
const String& name, | const String& name, |
Array<String>& propertyInfo) |
Array<String>& propertyInfo) const |
{ | { |
propertyInfo.clear(); | propertyInfo.clear(); |
| |
struct ConfigProperty* configProperty = _lookupConfigProperty(name); |
TracePropertyOwner* const localThis = |
|
const_cast<TracePropertyOwner* const>(this); |
|
struct ConfigProperty * configProperty = |
|
localThis->_lookupConfigProperty(name); |
| |
propertyInfo.append(configProperty->propertyName); | propertyInfo.append(configProperty->propertyName); |
propertyInfo.append(configProperty->defaultValue); | propertyInfo.append(configProperty->defaultValue); |
|
|
/** | /** |
Get default value of the specified property. | Get default value of the specified property. |
*/ | */ |
String TracePropertyOwner::getDefaultValue(const String& name) |
String TracePropertyOwner::getDefaultValue(const String& name) const |
{ | { |
struct ConfigProperty* configProperty = _lookupConfigProperty(name); |
TracePropertyOwner* const localThis = |
|
const_cast<TracePropertyOwner* const>(this); |
|
struct ConfigProperty * configProperty = |
|
localThis->_lookupConfigProperty(name); |
return configProperty->defaultValue; | return configProperty->defaultValue; |
} | } |
| |
/** | /** |
Get current value of the specified property. | Get current value of the specified property. |
*/ | */ |
String TracePropertyOwner::getCurrentValue(const String& name) |
String TracePropertyOwner::getCurrentValue(const String& name) const |
{ | { |
struct ConfigProperty* configProperty = _lookupConfigProperty(name); |
TracePropertyOwner* const localThis = |
|
const_cast<TracePropertyOwner* const>(this); |
|
struct ConfigProperty * configProperty = |
|
localThis->_lookupConfigProperty(name); |
return configProperty->currentValue; | return configProperty->currentValue; |
} | } |
| |
/** | /** |
Get planned value of the specified property. | Get planned value of the specified property. |
*/ | */ |
String TracePropertyOwner::getPlannedValue(const String& name) |
String TracePropertyOwner::getPlannedValue(const String& name) const |
{ | { |
struct ConfigProperty* configProperty = _lookupConfigProperty(name); |
TracePropertyOwner* const localThis = |
|
const_cast<TracePropertyOwner* const>(this); |
|
struct ConfigProperty * configProperty = |
|
localThis->_lookupConfigProperty(name); |
return configProperty->plannedValue; | return configProperty->plannedValue; |
} | } |
| |
|
|
/** | /** |
Checks to see if the given value is valid or not. | Checks to see if the given value is valid or not. |
*/ | */ |
Boolean TracePropertyOwner::isValid(const String& name, const String& value) |
Boolean TracePropertyOwner::isValid(const String& name, const String& value) const |
{ | { |
if (String::equalNoCase(_traceComponents->propertyName, name)) | if (String::equalNoCase(_traceComponents->propertyName, name)) |
{ | { |
|
|
/** | /** |
Checks to see if the specified property is dynamic or not. | Checks to see if the specified property is dynamic or not. |
*/ | */ |
Boolean TracePropertyOwner::isDynamic(const String& name) |
Boolean TracePropertyOwner::isDynamic(const String& name) const |
{ | { |
struct ConfigProperty* configProperty = _lookupConfigProperty(name); |
TracePropertyOwner* const localThis = |
|
const_cast<TracePropertyOwner* const>(this); |
|
struct ConfigProperty * configProperty = |
|
localThis->_lookupConfigProperty(name); |
return (configProperty->dynamic==IS_DYNAMIC); | return (configProperty->dynamic==IS_DYNAMIC); |
} | } |
| |