lazhen
2025-01-09 8afe90b633046db39042aada36b88193062f8cff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Quintiq file version 2.0
#parent: #root
Method GetSetTypeOfInterest (NamedValueTree nvt_i, Boolean isRegex_i, Boolean setTypeFoundRequired_i, 
  output String feedback_o) as owning LibDMF_SetTypes
{
  Description: 'Retrieve the SetType in the DataManager which the SOC is interested in (based on NVT), returns null if not used in DataManager.'
  TextBody:
  [*
    // Get the Set based on the information that is provided in the header of the NVT.
    sourceKind  := LibInt_MessageAccessor::GetHeaderPropertyAsString( nvt_i, LibDMF_CommunicationChannel::HEADER_SOURCEKIND()  );
    sourceName  := LibInt_MessageAccessor::GetHeaderPropertyAsString( nvt_i, LibDMF_CommunicationChannel::HEADER_SOURCENAME()  );
    setTypeName := LibInt_MessageAccessor::GetHeaderPropertyAsString( nvt_i, LibDMF_CommunicationChannel::HEADER_SETTYPENAME() );
    
    // Get the already existing Set.
    settype := this.GetSetTypeOfInterest( this.GetSystemOnChannel( sourceKind, sourceName ), setTypeName, isRegex_i,
                                          setTypeFoundRequired_i, feedback_o );
    
    return &settype;
  *]
}