|
|
|||
File indexing completed on 2026-10-10 09:29:59
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_Described_HeaderFile 0018 #define _StepData_Described_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_Type.hxx> 0022 0023 #include <Standard_Transient.hxx> 0024 class StepData_EDescr; 0025 class StepData_Simple; 0026 class StepData_Field; 0027 class Interface_Check; 0028 class Interface_EntityIterator; 0029 0030 //! General frame to describe entities with Description (Simple or 0031 //! Complex) 0032 class StepData_Described : public Standard_Transient 0033 { 0034 0035 public: 0036 //! Returns the Description used to define this entity 0037 Standard_EXPORT occ::handle<StepData_EDescr> Description() const; 0038 0039 //! Tells if a described entity is complex 0040 Standard_EXPORT virtual bool IsComplex() const = 0; 0041 0042 //! Tells if a step type is matched by <me> 0043 //! For a Simple Entity : own type or super type 0044 //! For a Complex Entity : one of the members 0045 Standard_EXPORT virtual bool Matches(const char* const steptype) const = 0; 0046 0047 //! Returns a Simple Entity which matches with a Type in <me> : 0048 //! For a Simple Entity : me if it matches, else a null handle 0049 //! For a Complex Entity : the member which matches, else null 0050 Standard_EXPORT virtual occ::handle<StepData_Simple> As(const char* const steptype) const = 0; 0051 0052 //! Tells if a Field brings a given name 0053 Standard_EXPORT virtual bool HasField(const char* const name) const = 0; 0054 0055 //! Returns a Field from its name; read-only 0056 Standard_EXPORT virtual const StepData_Field& Field(const char* const name) const = 0; 0057 0058 //! Returns a Field from its name; read or write 0059 Standard_EXPORT virtual StepData_Field& CField(const char* const name) = 0; 0060 0061 //! Fills a Check by using its Description 0062 Standard_EXPORT virtual void Check(occ::handle<Interface_Check>& ach) const = 0; 0063 0064 //! Fills an EntityIterator with entities shared by <me> 0065 Standard_EXPORT virtual void Shared(Interface_EntityIterator& list) const = 0; 0066 0067 DEFINE_STANDARD_RTTIEXT(StepData_Described, Standard_Transient) 0068 0069 protected: 0070 //! Initializes a Described Entity from a Description 0071 //! (i.e. puts it in a field ...) 0072 Standard_EXPORT StepData_Described(const occ::handle<StepData_EDescr>& descr); 0073 0074 private: 0075 occ::handle<StepData_EDescr> thedescr; 0076 }; 0077 0078 #endif // _StepData_Described_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|