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 <Standard_Type.hxx>
#include <Handle_IFSelect_SessionPilot.hxx>
#include <IFSelect_ReturnStatus.hxx>
#include <IFSelect_Activator.hxx>
#include <Standard_CString.hxx>
#include <Standard_Integer.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
Generated on Thu Mar 3 10:39:53 2011 for Open CASCADE Technology by  doxygen 1.6.3