Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-16 09:18:39

0001 // Created on: 1997-05-09
0002 // Created by: Christian CAILLET
0003 // Copyright (c) 1997-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _StepData_ECDescr_HeaderFile
0018 #define _StepData_ECDescr_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <Standard_Transient.hxx>
0024 #include <NCollection_Sequence.hxx>
0025 #include <StepData_EDescr.hxx>
0026 #include <Standard_Integer.hxx>
0027 #include <TCollection_AsciiString.hxx>
0028 #include <NCollection_HSequence.hxx>
0029 #include <Standard_CString.hxx>
0030 class StepData_ESDescr;
0031 class StepData_Described;
0032 
0033 //! Describes a Complex Entity (Plex) as a list of Simple ones
0034 class StepData_ECDescr : public StepData_EDescr
0035 {
0036 
0037 public:
0038   //! Creates an ECDescr, empty
0039   Standard_EXPORT StepData_ECDescr();
0040 
0041   //! Adds a member
0042   //! Warning : members are added in alphabetic order
0043   Standard_EXPORT void Add(const occ::handle<StepData_ESDescr>& member);
0044 
0045   //! Returns the count of members
0046   Standard_EXPORT int NbMembers() const;
0047 
0048   //! Returns a Member from its rank
0049   Standard_EXPORT occ::handle<StepData_ESDescr> Member(const int num) const;
0050 
0051   //! Returns the ordered list of types
0052   Standard_EXPORT occ::handle<NCollection_HSequence<TCollection_AsciiString>> TypeList() const;
0053 
0054   //! Tells if a ESDescr matches a step type : exact or super type
0055   Standard_EXPORT bool Matches(const char* const steptype) const override;
0056 
0057   //! Returns True
0058   Standard_EXPORT bool IsComplex() const override;
0059 
0060   //! Creates a described entity (i.e. a complex one, made of one
0061   //! simple entity per member)
0062   Standard_EXPORT occ::handle<StepData_Described> NewEntity() const override;
0063 
0064   DEFINE_STANDARD_RTTIEXT(StepData_ECDescr, StepData_EDescr)
0065 
0066 private:
0067   NCollection_Sequence<occ::handle<Standard_Transient>> thelist;
0068 };
0069 
0070 #endif // _StepData_ECDescr_HeaderFile