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_Alias_HeaderFile
0015 #define _Express_Alias_HeaderFile
0016 
0017 #include <Express_Item.hxx>
0018 #include <Express_Type.hxx>
0019 #include <Standard_Type.hxx>
0020 
0021 class TCollection_AsciiString;
0022 
0023 //! Implements TYPE = type (alias) item of the EXPRESS
0024 //! schema, with interface for deferred Item class.
0025 class Express_Alias : public Express_Item
0026 {
0027 
0028 public:
0029 
0030   //! Create ALIAS item and initialize it
0031   Standard_EXPORT Express_Alias (const Standard_CString theName, const Handle(Express_Type)& theType);
0032 
0033   //! Returns aliased type
0034   Standard_EXPORT const Handle(Express_Type)& Type() const;
0035 
0036   //! Returns name of aliased type
0037   Standard_EXPORT virtual const TCollection_AsciiString CPPName() const Standard_OVERRIDE;
0038 
0039   //! Create HXX/CXX files from item
0040   Standard_EXPORT virtual Standard_Boolean GenerateClass() const Standard_OVERRIDE;
0041 
0042   //! Propagates the calls of Use function
0043   Standard_EXPORT virtual void PropagateUse() const Standard_OVERRIDE;
0044 
0045   DEFINE_STANDARD_RTTIEXT(Express_Alias, Express_Item)
0046 
0047 protected:
0048 
0049 private:
0050 
0051   Handle(Express_Type) myType;
0052 
0053 };
0054 
0055 #endif // _Express_Alias_HeaderFile