(file) Return to TracePropertyOwner.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Config

Diff for /pegasus/src/Pegasus/Config/TracePropertyOwner.cpp between version 1.23 and 1.24

version 1.23, 2005/05/19 06:04:45 version 1.24, 2005/06/03 03:48:17
Line 32 
Line 32 
 // 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
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
Line 222 
Line 223 
 */ */
 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);
Line 253 
Line 257 
 /** /**
 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;
 } }
  
Line 403 
Line 416 
 /** /**
 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))
     {     {
Line 457 
Line 470 
 /** /**
 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);
 } }
  


Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2