|
||||
File indexing completed on 2025-01-18 10:03:27
0001 // Copyright (c) 1999-2020 OPEN CASCADE SAS 0002 // 0003 // This file is part of Open CASCADE Technology software library. 0004 // 0005 // This library is free software; you can redistribute it and/or modify it under 0006 // the terms of the GNU Lesser General Public License version 2.1 as published 0007 // by the Free Software Foundation, with special exception defined in the file 0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0009 // distribution for complete text of the license and disclaimer of any warranty. 0010 // 0011 // Alternatively, this file may be used under the terms of Open CASCADE 0012 // commercial license or contractual agreement. 0013 0014 #ifndef _Express_ComplexType_HeaderFile 0015 #define _Express_ComplexType_HeaderFile 0016 0017 #include <Express_Type.hxx> 0018 #include <Standard_Type.hxx> 0019 0020 class TCollection_AsciiString; 0021 0022 //! Base class for complex types (ARRAY, LIST, BAG, SET) 0023 //! in EXPRESS schema 0024 //! Stores type of elements and 0025 class Express_ComplexType : public Express_Type 0026 { 0027 0028 public: 0029 0030 //! Creates an object and initializes fields 0031 Standard_EXPORT Express_ComplexType (const Standard_Integer theImin, 0032 const Standard_Integer theImax, 0033 const Handle(Express_Type)& theType); 0034 0035 //! Returns type of complex type items 0036 Standard_EXPORT const Handle(Express_Type)& Type() const; 0037 0038 //! Returns CPP-style name of the type 0039 Standard_EXPORT virtual const TCollection_AsciiString CPPName() const Standard_OVERRIDE; 0040 0041 //! Declares type as used by some item being generated. 0042 //! Calls Use() for type of elements 0043 Standard_EXPORT virtual Standard_Boolean Use() const Standard_OVERRIDE; 0044 0045 //! Declares type as used by some item being generated. 0046 //! Calls Use() for type of elements 0047 Standard_EXPORT virtual void Use2 (const TCollection_AsciiString& theRefName, const TCollection_AsciiString& theRefPack) const Standard_OVERRIDE; 0048 0049 DEFINE_STANDARD_RTTIEXT(Express_ComplexType, Express_Type) 0050 0051 protected: 0052 0053 private: 0054 0055 Standard_Integer myMin; 0056 Standard_Integer myMax; 0057 Handle(Express_Type) myType; 0058 0059 }; 0060 0061 #endif // _Express_ComplexType_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |