VISH  0.2
Classes | Public Types | Public Member Functions | Static Public Member Functions
Wizt::VActionNotifier Class Reference

Notifier object for actions. More...

#include </home/werner/origo/vish/ocean/plankton/VActionNotifier.hpp>

List of all members.

Classes

Public Types

Public Member Functions

Static Public Member Functions


Detailed Description

Notifier object for actions.

Certain actions in VISH may be recorded through instances of VActionNotifier's. Events in VISH are broadcasted to all such instances.


Constructor & Destructor Documentation

Wizt::VActionNotifier::VActionNotifier ( )

Constructs a notify callback object.

It will not receive notification callbacks until the activate() function is called.


Member Function Documentation

bool Wizt::VActionNotifier::activate ( )

Activate the current notifier object to receive notification callbacks.

Note:
This function must be called only after a strong reference pointer has been established to hold this object alive.
Returns:
false, if there is no strong reference pointer.
bool Wizt::VActionNotifier::attachPrefix ( const RefPtr< VParameter > &  ProvidedParam,
const RefPtr< VSlot > &  DestSlot 
) [virtual]

The attach() function is called whenever a parameter is attached to the slot of an object.

It is called just before this attachment takes place.

Parameters:
DestSlotThe slot within object VObjDst whose parameter will be modified.
ProvidedParamThe parameter that will replace the one in the slot
void Wizt::VActionNotifier::createVObject ( const RefPtr< VObject > &  vobj,
const Intercube CreationContext,
const WeakPtr< VCreatorBase > &  crec 
) [virtual]

Virtual action of a notifyer object which is hereby informed about the new creation of an object.

Parameters:
CreationContextSome context information specific to this creation. It may hold arbitrary Interfaces.
crecThe Creator object. It may be Null if the VObject was created by other means.

Reimplemented in Wizt::RemoteVish::MyActionNotifier.

bool Wizt::VActionNotifier::ProgressInfo ( progress_id_t  Pid,
const string name,
int  CurrentValue,
int  MaxValue 
) [static]

Display some progress.

Parameters:
PidA unique ID per progress.
nameSome informative text to be displayed with this progress.
CurrentValueCurrent value, if it's same as MaxValue then this progress is finished.
MaxValueMaximal value.
Examples:
ComputeGridStreamLines.cpp, and ComputeMultiStreamLines.cpp.
void Wizt::VActionNotifier::VObjectCreation ( const RefPtr< VObject > &  vobj,
const Intercube CreationContext,
const WeakPtr< VCreatorBase > &  crec = NullPtr() 
) [static]

When a new VObject is created, call all of the registered Notifier objects.

Parameters:
CreationContextSome context information specific to this creation.
crecThe Creator object. It may be Null if the VObject was created by other means.
void Wizt::VActionNotifier::VObjectDeletion ( const string name) [static]

Global call to inform that an object has been deleted.

This call is automatically issued by the VObject::remove() call.


The documentation for this class was generated from the following files: