Open CASCADE Technology 6.6.0
Data Structures
IFSelect_Act.hxx File Reference
#include <Standard.hxx>
#include <Standard_DefineHandle.hxx>
#include <Handle_IFSelect_Act.hxx>
#include <TCollection_AsciiString.hxx>
#include <IFSelect_ActFunc.hxx>
#include <IFSelect_Activator.hxx>
#include <Standard_CString.hxx>
#include <IFSelect_ReturnStatus.hxx>
#include <Standard_Integer.hxx>
#include <Handle_IFSelect_SessionPilot.hxx>

Data Structures

class  IFSelect_Act
 Act gives a simple way to define and add functions to be ran
from a SessionPilot, as follows :

Define a function as
static IFSelect_RetStatus myfunc
(const Standard_CString name,
const Handle(IFSelect_SessionPilot)& pilot)
{ ... }
When ran, it receives the exact name (string) of the called
function, and the SessionPilot which brings other infos

Add it by
IFSelect_Act::AddFunc (name,help,myfunc);
for a normal function, or
IFSelect_Act::AddFSet (name,help,myfunc);
for a function which is intended to create a control item
name and help are given as CString

Then, it is available for run
More...
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines