Setting Operation Actual Parameters

ostc_Operation::setArgument()

virtual void setArgument(
      oscs_ConstString name, 
      oscs_Int32 value
) ; 

Sets the value of the actual parameter named name to value.

ostc_UnknownAttribute is thrown if there is no argument with the specified name.

ostc_DatatypeMismatch is thrown if the formal parameter with the specified name does not have the type oscs_Int32.

virtual void setArgument(
      oscs_ConstString name, 
      oscs_Int64 value
) ; 

Sets the value of the actual parameter named name to value.

ostc_UnknownAttribute is thrown if there is no argument with the specified name.

ostc_DatatypeMismatch is thrown if the formal parameter with the specified name does not have the type oscs_Int64.

virtual void setArgument(
      oscs_ConstString name, 
      oscs_ConstString value
);

Sets the value of the actual parameter named name to value.

ostc_UnknownAttribute is thrown if there is no argument with the specified name.

ostc_DatatypeMismatch is thrown if the formal parameter with the specified name does not have the type oscs_string.

virtual void setArgument(
      oscs_ConstString name, 
      oscs_Float value
) ;

Sets the value of the actual parameter named name to value.

ostc_UnknownAttribute is thrown if there is no argument with the specified name.

ostc_DatatypeMismatch is thrown if the formal parameter with the specified name does not have the type oscs_Float.

virtual void setArgument(
      oscs_ConstString name, 
      oscs_Double value
) ;

Sets the value of the actual parameter named name to value.

ostc_UnknownAttribute is thrown if there is no argument with the specified name.

ostc_DatatypeMismatch is thrown if the formal parameter with the specified name does not have the type oscs_Double.

virtual void setArgument(
      oscs_ConstString name, 
      ostc_OID* value
) ;

Sets the value of the actual parameter named name to value.

ostc_UnknownAttribute is thrown if there is no argument with the specified name.

ostc_DatatypeMismatch is thrown if the formal parameter with the specified name does not have the type ostc_OID*.

virtual void setArgument(
      oscs_ConstString name, 
      void* value, 
      oscs_Uint32 length
) ;

Sets the value of the actual parameter named name to the bit stream value.

length is the length of the value.

ostc_UnknownAttribute is thrown if there is no argument with the specified name.

ostc_DatatypeMismatch is thrown if the formal parameter with the specified name does not have the type ostc_binary.

ostc_OperationSet

Instances of this class are unordered collections of ostc_Operations.

Cursor Validity

A set's associated cursor is valid if it is positioned at an element of the set, and is invalid if it is not positioned at any element of the set. Each set's cursor is initially invalid. Calling either ostc_OperationSet::first() or ostc_OperationSet::next() on the set renders the cursor valid.

ostc_OperationSet::first()

virtual ostc_Operation* first() ;

Positions the set's cursor at the set's first element, and returns that element. If the set is empty, returns 0. The ordering used is arbitrary, but stable across traversals of the set.

ostc_OperationSet::next()

virtual ostc_Operation* next() ;

If this set's cursor is valid and is not positioned at the set's last element, next()

If the cursor is positioned at the set's last element, next()

If the cursor is invalid and the set is nonempty, next()

If the set is empty, next() returns 0.

The ordering used is arbitrary, but stable across traversals of the set.

ostc_OperationSet::more()

virtual oscs_Bool more() ;

Returns oscs_True if this's cursor is valid, that is, positioned at an element of the set. Returns oscs_False otherwise.

ostc_OperationSet::cardinality()

virtual oscs_Uint32 cardinality() ;

Returns the number of elements in the specified set.

ostc_OperationSet::getOperation()

virtual ostc_Operation* getOperation(oscs_ConstString name) ;

Returns the element of this that points to the operation with the specified name. Returns 0 if there is no such element.

ostc_AttributeDescriptor

Instances of this class are used to specify ostc_Object attribute types and operation formal parameters.

ostc_AttributeDescriptor::getName()

virtual oscs_String getName() ;

Returns the name of the specified attribute descriptor.

ostc_AttributeDescriptor::getType()

virtual ostc::types getType() ;

Returns an enumerator indicating the type of the specified attribute descriptor.

ostc_AttributeDescriptor::getMaxLength()

virtual oscs_Uint32 getMaxLength() ;

Returns the value passed as maxlength in the last call to ostc_ServerOperation::addReturnSetAttribute() or ostc_ServerOperation::addArgument() that passed the name of this as the name argument. Returns 0 if there was no such call.

ostc_AttributeDescriptorList

Instances of this class are ordered collections of ostc_AttributeDescriptors. This class defines functions for the following tasks:



[previous] [next]