version 1.16, 2006/01/30 16:17:35
|
version 1.17, 2006/11/14 18:34:49
|
|
|
// | // |
//============================================================================== | //============================================================================== |
// | // |
// Author: Nag Boranna (nagaraja_boranna@hp.com) |
|
// |
|
// Modified By: Sushma Fernandes, Hewlett-Packard Company, sushma_fernandes@hp.com |
|
// Chip Vincent (cvincent@us.ibm.com) |
|
// Aruran, IBM (ashanmug@in.ibm.com) for Bug# 3614 |
|
// David Dillard, VERITAS Software Corp. |
|
// (david.dillard@veritas.com) |
|
// Vijay Eli, IBM, (vijayeli@in.ibm.com) for Bug# 3613 |
|
// |
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
| |
|
|
/** Constructors */ | /** Constructors */ |
ConfigPropertyOwner() { } | ConfigPropertyOwner() { } |
| |
|
|
/** Destructor */ | /** Destructor */ |
virtual ~ConfigPropertyOwner() { } | virtual ~ConfigPropertyOwner() { } |
| |
|
|
*/ | */ |
virtual void initialize() = 0; | virtual void initialize() = 0; |
| |
|
|
/** | /** |
Get information about the specified property. | Get information about the specified property. |
| |
|
|
virtual void getPropertyInfo(const String& name, | virtual void getPropertyInfo(const String& name, |
Array<String>& propertyInfo) const = 0; | Array<String>& propertyInfo) const = 0; |
| |
|
|
/** | /** |
Get default value of the specified property. | Get default value of the specified property. |
| |
|
|
*/ | */ |
virtual String getDefaultValue(const String& name) const = 0; | virtual String getDefaultValue(const String& name) const = 0; |
| |
|
|
/** | /** |
Get current value of the specified property. | Get current value of the specified property. |
| |
@param name The name of the property. | @param name The name of the property. |
@return string containing the currnet value of the property specified. |
@return string containing the current value of the property specified. |
@exception UnrecognizedConfigProperty if the property is not defined. | @exception UnrecognizedConfigProperty if the property is not defined. |
*/ | */ |
virtual String getCurrentValue(const String& name) const = 0; | virtual String getCurrentValue(const String& name) const = 0; |
| |
|
|
/** | /** |
Get planned value of the specified property. | Get planned value of the specified property. |
| |
|
|
*/ | */ |
virtual String getPlannedValue(const String& name) const = 0; | virtual String getPlannedValue(const String& name) const = 0; |
| |
|
|
/** | /** |
Init current value of the specified property to the specified value. | Init current value of the specified property to the specified value. |
This method is expected to be called only once at the start of the | This method is expected to be called only once at the start of the |
|
|
*/ | */ |
virtual void initCurrentValue(const String& name, const String& value) = 0; | virtual void initCurrentValue(const String& name, const String& value) = 0; |
| |
|
|
/** | /** |
Init planned value of the specified property to the specified value. | Init planned value of the specified property to the specified value. |
This method is expected to be called only once at the start of the | This method is expected to be called only once at the start of the |
|
|
*/ | */ |
virtual void initPlannedValue(const String& name, const String& value) = 0; | virtual void initPlannedValue(const String& name, const String& value) = 0; |
| |
|
|
/** | /** |
Update current value of the specified property to the specified value. | Update current value of the specified property to the specified value. |
The property value will be updated only if the property is dynamically | The property value will be updated only if the property is dynamically |
|
|
//throw (NonDynamicConfigProperty, InvalidPropertyValue, | //throw (NonDynamicConfigProperty, InvalidPropertyValue, |
// UnrecognizedConfigProperty) = 0; | // UnrecognizedConfigProperty) = 0; |
| |
|
|
/** | /** |
Update planned value of the specified property to the specified value. | Update planned value of the specified property to the specified value. |
| |
|
|
const String& name, | const String& name, |
const String& value) = 0; | const String& value) = 0; |
| |
|
|
/** | /** |
Checks to see if the given value is valid or not. | Checks to see if the given value is valid or not. |
| |
|
|
*/ | */ |
virtual Boolean isValid(const String& name, const String& value)const = 0; | virtual Boolean isValid(const String& name, const String& value)const = 0; |
| |
|
|
/** | /** |
Checks to see if the specified property is dynamic or not. | Checks to see if the specified property is dynamic or not. |
| |
|
|
ConfigDynamic dynamic; // Dynamic or non dynamic property | ConfigDynamic dynamic; // Dynamic or non dynamic property |
char** domain; // List of valid values of a config property | char** domain; // List of valid values of a config property |
Uint32 domainSize; // Size of the domain | Uint32 domainSize; // Size of the domain |
ConfigVisible externallyVisible; // Determines whether a property wants to be |
// Determines whether a property wants to be externally visible or not. |
// externally visible or not. |
// If a property chooses not to be externally visible, it is not listed |
// If a property chooses not to be externally |
// as a configurable property but is still configurable. |
// visible, it is not listed as a configurable |
ConfigVisible externallyVisible; |
// property but is still configurable. |
|
}; | }; |
| |
/////////////////////////////////////////////////////////////////////////////// | /////////////////////////////////////////////////////////////////////////////// |