summaryrefslogtreecommitdiff
path: root/src/TFunction/TFunction_Driver.cxx
blob: 6084ff6339bed5100ab8a39f846164e411ffc376 (plain)
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
// File:	TFunction_Driver.cxx
// Created:	Fri Jun 11 09:24:43 1999
// Author:	Vladislav ROMASHKO
//		<vro@flox.nnov.matra-dtv.fr>


#include <TFunction_Driver.ixx>

#include <TDF_Label.hxx>
#include <TDF_ListIteratorOfLabelList.hxx>


//=======================================================================
//function : TFunction_Driver
//purpose  : Constructor
//=======================================================================

TFunction_Driver::TFunction_Driver()
{

}


//=======================================================================
//function : Init
//purpose  : Initialization
//=======================================================================

void TFunction_Driver::Init(const TDF_Label& L)
{
  myLabel = L;
}


//=======================================================================
//function : Validate
//purpose  : Validates labels of a function
//=======================================================================

void TFunction_Driver::Validate(TFunction_Logbook& log) const
{
  TDF_LabelList res;
  Results(res);
  TDF_ListIteratorOfLabelList itr(res);
  for (; itr.More(); itr.Next())
  {
    log.SetValid(itr.Value(), Standard_True);
  }
}


//=======================================================================
//function : MustExecute
//purpose  : Analyzes the labels in the logbook
//=======================================================================

Standard_Boolean TFunction_Driver::MustExecute(const TFunction_Logbook& log) const
{
  // Check modification of arguments.
  TDF_LabelList args;
  Arguments(args);
  TDF_ListIteratorOfLabelList itr(args);
  for (; itr.More(); itr.Next())
  {
    if (log.IsModified(itr.Value()))
      return Standard_True;
  }
  return Standard_False;
}


//=======================================================================
//function : Arguments
//purpose  : The method fills-in the list by labels, 
//           where the arguments of the function are located.
//=======================================================================

void TFunction_Driver::Arguments(TDF_LabelList& ) const
{

}


//=======================================================================
//function : Results
//purpose  : The method fills-in the list by labels,
//           where the results of the function are located.
//=======================================================================

void TFunction_Driver::Results(TDF_LabelList& ) const
{

}