1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-05-26 11:05:31 +03:00
occt/src/IGESDefs/IGESDefs_MacroDef.hxx
abv 92efcf78a6 0026936: Drawbacks of inlining in new type system in OCCT 7.0 -- automatic
Automatic restore of IMPLEMENT_STANDARD_RTTIEXT macro (upgrade -rtti)
2015-12-04 14:15:06 +03:00

96 lines
2.8 KiB
C++

// Created on: 1993-01-13
// Created by: CKY / Contract Toubro-Larsen ( Deepak PRABHU )
// Copyright (c) 1993-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _IGESDefs_MacroDef_HeaderFile
#define _IGESDefs_MacroDef_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <IGESData_IGESEntity.hxx>
class TCollection_HAsciiString;
class Standard_OutOfRange;
class IGESDefs_MacroDef;
DEFINE_STANDARD_HANDLE(IGESDefs_MacroDef, IGESData_IGESEntity)
//! defines IGES Macro Definition Entity, Type <306> Form <0>
//! in package IGESDefs
//! This Class specifies the action of a specific MACRO.
//! After specification MACRO can be used as necessary
//! by means of MACRO class instance entity.
class IGESDefs_MacroDef : public IGESData_IGESEntity
{
public:
Standard_EXPORT IGESDefs_MacroDef();
//! This method is used to set the fields of the class
//! MacroDef
//! - macro : MACRO
//! - entityTypeID : Entity Type ID
//! - langStatements : Language Statements
//! - endMacro : END MACRO
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& macro, const Standard_Integer entityTypeID, const Handle(Interface_HArray1OfHAsciiString)& langStatements, const Handle(TCollection_HAsciiString)& endMacro);
//! returns the number of language statements
Standard_EXPORT Standard_Integer NbStatements() const;
//! returns the MACRO(Literal)
Standard_EXPORT Handle(TCollection_HAsciiString) MACRO() const;
//! returns the Entity Type ID
Standard_EXPORT Standard_Integer EntityTypeID() const;
Standard_EXPORT Handle(TCollection_HAsciiString) LanguageStatement (const Standard_Integer StatNum) const;
//! returns the ENDM(Literal)
Standard_EXPORT Handle(TCollection_HAsciiString) ENDMACRO() const;
DEFINE_STANDARD_RTTIEXT(IGESDefs_MacroDef,IGESData_IGESEntity)
protected:
private:
Handle(TCollection_HAsciiString) theMACRO;
Standard_Integer theEntityTypeID;
Handle(Interface_HArray1OfHAsciiString) theLangStatements;
Handle(TCollection_HAsciiString) theENDMACRO;
};
#endif // _IGESDefs_MacroDef_HeaderFile