1 // Created on: 1993-01-09
2 // Created by: CKY / Contract Toubro-Larsen ( Anand NATRAJAN )
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_AssocGroupType_HeaderFile
18 #define _IGESBasic_AssocGroupType_HeaderFile
20 #include <Standard.hxx>
22 #include <Standard_Integer.hxx>
23 #include <IGESData_IGESEntity.hxx>
24 class TCollection_HAsciiString;
27 class IGESBasic_AssocGroupType;
28 DEFINE_STANDARD_HANDLE(IGESBasic_AssocGroupType, IGESData_IGESEntity)
30 //! defines AssocGroupType, Type <406> Form <23>
31 //! in package IGESBasic
32 //! Used to assign an unambiguous identification to a Group
34 class IGESBasic_AssocGroupType : public IGESData_IGESEntity
40 Standard_EXPORT IGESBasic_AssocGroupType();
42 //! This method is used to set the fields of the class
44 //! - nbDataFields : number of parameter data fields = 2
45 //! - aType : type of attached associativity
46 //! - aName : identifier of associativity of type AType
47 Standard_EXPORT void Init (const Standard_Integer nbDataFields, const Standard_Integer aType, const Handle(TCollection_HAsciiString)& aName);
49 //! returns the number of parameter data fields, always = 2
50 Standard_EXPORT Standard_Integer NbData() const;
52 //! returns the type of attached associativity
53 Standard_EXPORT Standard_Integer AssocType() const;
55 //! returns identifier of instance of specified associativity
56 Standard_EXPORT Handle(TCollection_HAsciiString) Name() const;
61 DEFINE_STANDARD_RTTIEXT(IGESBasic_AssocGroupType,IGESData_IGESEntity)
71 Standard_Integer theNbData;
72 Standard_Integer theType;
73 Handle(TCollection_HAsciiString) theName;
84 #endif // _IGESBasic_AssocGroupType_HeaderFile