File: TFunction_Driver.hxx

package info (click to toggle)
oce 0.18.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 301,548 kB
  • sloc: cpp: 1,190,609; ansic: 67,225; sh: 11,630; tcl: 7,954; cs: 5,221; python: 2,867; java: 1,522; makefile: 342; xml: 292; perl: 37
file content (102 lines) | stat: -rw-r--r-- 3,017 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _TFunction_Driver_HeaderFile
#define _TFunction_Driver_HeaderFile

#include <Standard.hxx>
#include <Standard_DefineHandle.hxx>
#include <Handle_TFunction_Driver.hxx>

#include <TDF_Label.hxx>
#include <MMgt_TShared.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
class TDF_Label;
class TFunction_Logbook;
class TDF_LabelList;


//! This  driver  class provide  services  around function
//! execution.   One instance of  this class is  built for
//! the whole  session.    The driver  is bound   to   the
//! DriverGUID in the DriverTable class.
//! It allows you to create classes which inherit from
//! this abstract class.
//! These subclasses identify the various algorithms
//! which can be applied to the data contained in the
//! attributes of sub-labels of a model.
//! A single instance of this class and each of its
//! subclasses is built for the whole session.
class TFunction_Driver : public MMgt_TShared
{

public:

  
  //! Initializes the label L for this function prior to its  execution.
  Standard_EXPORT   void Init (const TDF_Label& L) ;
  
  //! Returns the label of the driver for this function.
      TDF_Label Label()  const;
  
  //! Validates labels of a function  in <log>.
  //! This function is the one initialized in this function driver.
  //! Warning
  //! In regeneration mode, the solver must call this
  //! method even if the function is not executed.
  //! execution of function
  //! =====================
  Standard_EXPORT virtual   void Validate (TFunction_Logbook& log)  const;
  
  //! Analyzes the labels in the logbook log.
  //! Returns true if attributes have been modified.
  //! If the function label itself has been modified, the function must be executed.
  Standard_EXPORT virtual   Standard_Boolean MustExecute (const TFunction_Logbook& log)  const;
  
  //! Executes the function in this function driver and
  //! puts the impacted labels in the logbook log.
  //! arguments & results of functions
  //! ================================
  Standard_EXPORT virtual   Standard_Integer Execute (TFunction_Logbook& log)  const = 0;
  
  //! The method fills-in the list by labels,
  //! where the arguments of the function are located.
  Standard_EXPORT virtual   void Arguments (TDF_LabelList& args)  const;
  
  //! The method fills-in the list by labels,
  //! where the results of the function are located.
  Standard_EXPORT virtual   void Results (TDF_LabelList& res)  const;




  DEFINE_STANDARD_RTTI(TFunction_Driver)

protected:

  
  //! initialisation of the driver
  //! ============================
  Standard_EXPORT TFunction_Driver();



private: 


  TDF_Label myLabel;


};


#include <TFunction_Driver.lxx>





#endif // _TFunction_Driver_HeaderFile