b96b9b32d52b0f45f9574b11fde03fefb407e3d9
[occt.git] / src / IGESData / IGESData_GlobalNodeOfSpecificLib.hxx
1 // Created on: 1992-04-06
2 // Created by: Christian CAILLET
3 // Copyright (c) 1992-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #ifndef _IGESData_GlobalNodeOfSpecificLib_HeaderFile
18 #define _IGESData_GlobalNodeOfSpecificLib_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22
23 #include <Standard_Transient.hxx>
24 class IGESData_SpecificModule;
25 class IGESData_Protocol;
26 class IGESData_IGESEntity;
27 class IGESData_SpecificLib;
28 class IGESData_NodeOfSpecificLib;
29
30 class IGESData_GlobalNodeOfSpecificLib;
31 DEFINE_STANDARD_HANDLE(IGESData_GlobalNodeOfSpecificLib, Standard_Transient)
32
33 class IGESData_GlobalNodeOfSpecificLib : public Standard_Transient
34 {
35
36 public:
37
38   //! Creates an empty GlobalNode, with no Next
39   Standard_EXPORT IGESData_GlobalNodeOfSpecificLib();
40
41   //! Adds a Module bound with a Protocol to the list : does
42   //! nothing if already in the list, THAT IS, Same Type (exact
43   //! match) and Same State (that is, IsEqual is not required)
44   //! Once added, stores its attached Protocol in correspondence
45   Standard_EXPORT void Add (const Handle(IGESData_SpecificModule)& amodule, const Handle(IGESData_Protocol)& aprotocol);
46
47   //! Returns the Module stored in a given GlobalNode
48   Standard_EXPORT const Handle(IGESData_SpecificModule)& Module() const;
49   
50   //! Returns the attached Protocol stored in a given GlobalNode
51   Standard_EXPORT const Handle(IGESData_Protocol)& Protocol() const;
52   
53   //! Returns the Next GlobalNode. If none is defined, returned
54   //! value is a Null Handle
55   Standard_EXPORT const Handle(IGESData_GlobalNodeOfSpecificLib)& Next() const;
56
57   DEFINE_STANDARD_RTTI_INLINE(IGESData_GlobalNodeOfSpecificLib,Standard_Transient)
58
59 private:
60
61   Handle(IGESData_SpecificModule) themod;
62   Handle(IGESData_Protocol) theprot;
63   Handle(IGESData_GlobalNodeOfSpecificLib) thenext;
64
65 };
66
67 #endif // _IGESData_GlobalNodeOfSpecificLib_HeaderFile