yanweiyuan3
2023-08-09 588bc7829387dfc761cc25f06f77d4c81818bd10
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 GetSetOfInterest (NamedValueTree nvt_i, Boolean setFoundRequired_i, output String feedback_o) as LibDMF_Set
{
  Description: 'Retrieve the Set 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() );
    setName     := LibInt_MessageAccessor::GetHeaderPropertyAsString( nvt_i, LibDMF_CommunicationChannel::HEADER_SETNAME()     );
    
    // Get the already existing Set.
    set := this.GetSetOfInterest( this.GetSystemOnChannel( sourceKind, sourceName ), setTypeName, setName,
                                  setFoundRequired_i, feedback_o );
    
    return set;
  *]
}