Back to home page

EIC code displayed by LXR

 
 

    


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_Select_HeaderFile
0015 #define _Express_Select_HeaderFile
0016 
0017 #include <Standard_Type.hxx>
0018 
0019 #include <Express_Item.hxx>
0020 #include <Standard_Boolean.hxx>
0021 #include <Standard_CString.hxx>
0022 #include <TColStd_HSequenceOfHAsciiString.hxx>
0023 #include <TColStd_HSequenceOfInteger.hxx>
0024 
0025 class Express_HSequenceOfItem;
0026 
0027 //! Implements TYPE SELECT item of the EXPRESS
0028 //! schema, with interface for deferred Item class.
0029 class Express_Select : public Express_Item
0030 {
0031 
0032 public:
0033 
0034   //! Create SELECT item and initialize it
0035   Standard_EXPORT Express_Select (const Standard_CString theName,
0036                                   const Handle(TColStd_HSequenceOfHAsciiString)& theNames);
0037 
0038   //! Returns names of types included in this SELECT
0039   Standard_EXPORT const Handle(TColStd_HSequenceOfHAsciiString)& Names() const;
0040 
0041   //! Returns sequence of items corresponding to typenames
0042   Standard_EXPORT const Handle(Express_HSequenceOfItem)& Items() const;
0043 
0044   //! Create HXX/CXX files from item
0045   Standard_EXPORT virtual Standard_Boolean GenerateClass() const Standard_OVERRIDE;
0046 
0047   //! Propagates the calls of Use function
0048   Standard_EXPORT virtual void PropagateUse() const Standard_OVERRIDE;
0049 
0050   DEFINE_STANDARD_RTTIEXT(Express_Select, Express_Item)
0051 
0052 protected:
0053 
0054 private:
0055 
0056   Standard_EXPORT Standard_Boolean generateSelectMember (const Handle(TColStd_HSequenceOfInteger)& theSeqMember) const;
0057 
0058   Handle(TColStd_HSequenceOfHAsciiString) myNames;
0059   Handle(Express_HSequenceOfItem) myItems;
0060 
0061 };
0062 
0063 #endif // _Express_Select_HeaderFile