CATPLMIntegrationUse Interface CATIAdpPLMValueWriter

Usage: you must use this class as is. You should never derive it.


interface CATIAdpPLMValueWriter

Interface that gives a write access to an attribute value.

Role: provides a write access to an attribute value.

Example:
 CATIAdpPLMValueWriter * piValueWriter=NULL;
 if(SUCCEEDED(CATAdpPLMAttributeSet::GetAdpValueWriter(piValueWriter)) && piValueWriter)
 {
   if(SUCCEEDED(piValueWriter->SetValue(3.14))) // sets the value with a double.
     ...
   piValueWriter->Release(); piValueWriter=NULL;
 }


Method Index


o SetValue(int)
Sets the value with an integer value.
o SetValue(double)
Sets the value with a double value
Role: Sets an attribute value with a double.
o SetValue(CATTime&)
Sets the value with a time value.
o SetValue(CATBoolean&)
Sets the value with a boolean value.
o SetValue(CATUnicodeString&)
Sets the value with a string value.

Methods


o SetValue
public virtual SetValue( const iValue)
Sets the value with an integer value.
Role: Sets an attribute value with an integer.
Parameters:
iValue
[in] the value
Returns:
  • S_OK if everything ran OK;
  • E_FAIL if this method has been called on an already setted value.
o SetValue
public virtual SetValue( const iValue)
Sets the value with a double value
Role: Sets an attribute value with a double.
  • You can set a value only once.
Parameters:
iValue
[in] the value
Returns:
  • S_OK if everything ran OK;
  • E_FAIL if this method has been called on an already setted value.
o SetValue
public virtual SetValue( const iValue)
Sets the value with a time value.
Role: Sets an attribute value with a time.
  • You can set a value only once.
Parameters:
iValue
[in] the value
Returns:
  • S_OK if everything ran OK;
  • E_FAIL if this method has been called on an already setted value.
o SetValue
public virtual SetValue( const iValue)
Sets the value with a boolean value.
Role: Sets an attribute value with a boolean.
  • You can set a value only once.
Parameters:
iValue
[in] the value
Returns:
  • S_OK if everything ran OK;
  • E_FAIL if this method has been called on an already setted value.
o SetValue
public virtual SetValue( const iValue)
Sets the value with a string value.
Role: Sets an attribute value with a string.
  • You can set a value only once.
Parameters:
iValue
[in] the value
Returns:
  • S_OK if everything ran OK;
  • E_FAIL if this method has been called on an already setted value.

This object is included in the file: CATIAdpPLMValueWriter.h
If needed, your Imakefile.mk should include the module: CATPLMIntegrationUse

Copyright © 1999-2014, Dassault Systèmes. All rights reserved.