1 // Created on: 1993-01-09
2 // Created by: CKY / Contract Toubro-Larsen ( Arun MENON )
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _IGESBasic_Name_HeaderFile
18 #define _IGESBasic_Name_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <Standard_Integer.hxx>
24 #include <IGESData_NameEntity.hxx>
25 class TCollection_HAsciiString;
29 DEFINE_STANDARD_HANDLE(IGESBasic_Name, IGESData_NameEntity)
31 //! defines Name, Type <406> Form <15>
32 //! in package IGESBasic
33 //! Used to specify a user defined name
34 class IGESBasic_Name : public IGESData_NameEntity
40 Standard_EXPORT IGESBasic_Name();
42 //! This method is used to set the fields of the class Name
43 //! - nbPropVal : Number of property values, always = 1
44 //! - aName : Stores the Name
45 Standard_EXPORT void Init (const Standard_Integer nbPropVal, const Handle(TCollection_HAsciiString)& aName);
47 //! returns the number of property values, which should be 1
48 Standard_EXPORT Standard_Integer NbPropertyValues() const;
50 //! returns the user defined Name
51 Standard_EXPORT Handle(TCollection_HAsciiString) Value() const Standard_OVERRIDE;
56 DEFINE_STANDARD_RTTIEXT(IGESBasic_Name,IGESData_NameEntity)
66 Standard_Integer theNbPropertyValues;
67 Handle(TCollection_HAsciiString) theName;
78 #endif // _IGESBasic_Name_HeaderFile