1 // Created on: 1997-05-09
2 // Created by: Christian CAILLET
3 // Copyright (c) 1997-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _StepData_ECDescr_HeaderFile
18 #define _StepData_ECDescr_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <TColStd_SequenceOfTransient.hxx>
24 #include <StepData_EDescr.hxx>
25 #include <Standard_Integer.hxx>
26 #include <TColStd_HSequenceOfAsciiString.hxx>
27 #include <Standard_Boolean.hxx>
28 #include <Standard_CString.hxx>
29 class StepData_ESDescr;
30 class StepData_Described;
33 class StepData_ECDescr;
34 DEFINE_STANDARD_HANDLE(StepData_ECDescr, StepData_EDescr)
36 //! Describes a Complex Entity (Plex) as a list of Simple ones
37 class StepData_ECDescr : public StepData_EDescr
43 //! Creates an ECDescr, empty
44 Standard_EXPORT StepData_ECDescr();
47 //! Warning : members are added in alphabetic order
48 Standard_EXPORT void Add (const Handle(StepData_ESDescr)& member);
50 //! Returns the count of members
51 Standard_EXPORT Standard_Integer NbMembers() const;
53 //! Returns a Member from its rank
54 Standard_EXPORT Handle(StepData_ESDescr) Member (const Standard_Integer num) const;
56 //! Returns the ordered list of types
57 Standard_EXPORT Handle(TColStd_HSequenceOfAsciiString) TypeList() const;
59 //! Tells if a ESDescr matches a step type : exact or super type
60 Standard_EXPORT Standard_Boolean Matches (const Standard_CString steptype) const Standard_OVERRIDE;
63 Standard_EXPORT Standard_Boolean IsComplex() const Standard_OVERRIDE;
65 //! Creates a described entity (i.e. a complex one, made of one
66 //! simple entity per member)
67 Standard_EXPORT Handle(StepData_Described) NewEntity() const Standard_OVERRIDE;
72 DEFINE_STANDARD_RTTIEXT(StepData_ECDescr,StepData_EDescr)
82 TColStd_SequenceOfTransient thelist;
93 #endif // _StepData_ECDescr_HeaderFile