Method Update A and B

 

Your_Class::Update_A

Your_Class::Update_B

 

By default,  the "Update_A()" and "Update_B()" methods do not do anything.

 

When sliceOmatic process the "Flag_Update" variable, it call all registered update functions, and it also runs down the database tree and call the "Update_A()" and "Update_B()" methods for all the elements of the tree.

 

The Update_A() method is called once per event loop, the Update_B() method is only called once sliceOmatic has process all current events.

 

 

Syntax

 

int Your_Class::Update_A(

          UInt64 flag_update

)

 

int Your_Class::Update_B(

          UInt64 flag_update

)

 

 

Parameters

 

flag_update

is the value of the Flag_Update variable. (also see Updates in the Ctrl section)

 

 

Return value

 

This method returns "0" if an error occurred, "1" otherwise.

 

 

Remarks

 

 

Requirements

 

Header:

          sliceO_include.hpp

 

Library:

          sliceO_Structures.lib

 

 

Example

 

The default method

 

// ---------------------------------------------------------------------------

//

//          Update_A()

//

//          High priority update of this element

//

//          param:          flag (unsigned int)          Update flag

//

//          return:          (void)

//

// ----------------------------------------------------------------------------

int          SliceO_Class::Update_A( UInt64 flag_update )

{

          return( 1 ) ;

}

 

// ---------------------------------------------------------------------------

//

//          Update_B()

//

//          Low priority update of this element

//

//          param:          flag (unsigned int)          Update flag

//

//          return:          (void)

//

// ----------------------------------------------------------------------------

int          SliceO_Class::Update_B( UInt64 flag_update )

{

          return( 1 ) ;

}

 

See also