0026586: Eliminate compile warnings obtained by building occt with vc14: declaration...
[occt.git] / src / StepData / StepData_ECDescr.hxx
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
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #ifndef _StepData_ECDescr_HeaderFile
18 #define _StepData_ECDescr_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22
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;
31
32
33 class StepData_ECDescr;
34 DEFINE_STANDARD_HANDLE(StepData_ECDescr, StepData_EDescr)
35
36 //! Describes a Complex Entity (Plex) as a list of Simple ones
37 class StepData_ECDescr : public StepData_EDescr
38 {
39
40 public:
41
42   
43   //! Creates an ECDescr, empty
44   Standard_EXPORT StepData_ECDescr();
45   
46   //! Adds a member
47   //! Warning : members are added in alphabetic order
48   Standard_EXPORT void Add (const Handle(StepData_ESDescr)& member);
49   
50   //! Returns the count of members
51   Standard_EXPORT Standard_Integer NbMembers() const;
52   
53   //! Returns a Member from its rank
54   Standard_EXPORT Handle(StepData_ESDescr) Member (const Standard_Integer num) const;
55   
56   //! Returns the ordered list of types
57   Standard_EXPORT Handle(TColStd_HSequenceOfAsciiString) TypeList() const;
58   
59   //! Tells if a ESDescr matches a step type : exact or super type
60   Standard_EXPORT Standard_Boolean Matches (const Standard_CString steptype) const;
61   
62   //! Returns True
63   Standard_EXPORT Standard_Boolean IsComplex() const;
64   
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;
68
69
70
71
72   DEFINE_STANDARD_RTTI(StepData_ECDescr,StepData_EDescr)
73
74 protected:
75
76
77
78
79 private:
80
81
82   TColStd_SequenceOfTransient thelist;
83
84
85 };
86
87
88
89
90
91
92
93 #endif // _StepData_ECDescr_HeaderFile