// Created on: 1993-01-11 // Created by: CKY / Contract Toubro-Larsen ( Anand NATRAJAN ) // 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 _IGESAppli_PartNumber_HeaderFile #define _IGESAppli_PartNumber_HeaderFile #include "Standard.hxx" #include "Standard_Integer.hxx" #include "IGESData_IGESEntity.hxx" class TCollection_HAsciiString; //! defines PartNumber, Type <406> Form <9> //! in package IGESAppli //! Attaches a set of text strings that define the common //! part numbers to an entity being used to represent a //! physical component class IGESAppli_PartNumber : public IGESData_IGESEntity { public: Standard_EXPORT IGESAppli_PartNumber(); //! This method is used to set the fields of the class //! PartNumber //! - nbPropVal : number of property values, always = 4 //! - aGenName : Generic part number or name //! - aMilName : Military Standard (MIL-STD) part number //! - aVendName : Vendor part number or name //! - anIntName : Internal part number Standard_EXPORT void Init(const int nbPropVal, const occ::handle& aGenName, const occ::handle& aMilName, const occ::handle& aVendName, const occ::handle& anIntName); //! returns number of property values, always = 4 Standard_EXPORT int NbPropertyValues() const; //! returns Generic part number or name Standard_EXPORT occ::handle GenericNumber() const; //! returns Military Standard (MIL-STD) part number Standard_EXPORT occ::handle MilitaryNumber() const; //! returns Vendor part number or name Standard_EXPORT occ::handle VendorNumber() const; //! returns Internal part number Standard_EXPORT occ::handle InternalNumber() const; DEFINE_STANDARD_RTTIEXT(IGESAppli_PartNumber, IGESData_IGESEntity) private: int theNbPropertyValues; occ::handle theGenericNumber; occ::handle theMilitaryNumber; occ::handle theVendorNumber; occ::handle theInternalNumber; }; #endif // _IGESAppli_PartNumber_HeaderFile