Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-18 09:22:09

0001 // Created on: 2007-12-04
0002 // Created by: Sergey ZARITCHNY
0003 // Copyright (c) 2007-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _TDataStd_DeltaOnModificationOfExtStringArray_HeaderFile
0017 #define _TDataStd_DeltaOnModificationOfExtStringArray_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 
0021 #include <Standard_Integer.hxx>
0022 #include <NCollection_Array1.hxx>
0023 #include <NCollection_HArray1.hxx>
0024 #include <TCollection_ExtendedString.hxx>
0025 #include <TDF_DeltaOnModification.hxx>
0026 class TDataStd_ExtStringArray;
0027 
0028 //! This class provides default services for an
0029 //! AttributeDelta on a MODIFICATION action.
0030 class TDataStd_DeltaOnModificationOfExtStringArray : public TDF_DeltaOnModification
0031 {
0032 
0033 public:
0034   //! Initializes a TDF_DeltaOnModification.
0035   Standard_EXPORT TDataStd_DeltaOnModificationOfExtStringArray(
0036     const occ::handle<TDataStd_ExtStringArray>& Arr);
0037 
0038   //! Applies the delta to the attribute.
0039   Standard_EXPORT void Apply() override;
0040 
0041   DEFINE_STANDARD_RTTIEXT(TDataStd_DeltaOnModificationOfExtStringArray, TDF_DeltaOnModification)
0042 
0043 private:
0044   occ::handle<NCollection_HArray1<int>>                        myIndxes;
0045   occ::handle<NCollection_HArray1<TCollection_ExtendedString>> myValues;
0046   int                                                          myUp1;
0047   int                                                          myUp2;
0048 };
0049 
0050 #endif // _TDataStd_DeltaOnModificationOfExtStringArray_HeaderFile