1 //#include <LibCtl_GlobalNode.ixx>
3 // Classe generique imbriquee dans Library : utilisee pour construire les
4 // listes globales de Modules attaches a une classe instanciee de Library
5 // (cf Library pour plus de details)
8 LibCtl_GlobalNode::LibCtl_GlobalNode () { }
10 // ATTENTION, Add agit en substitution : pour un Protocol donne, c est le
11 // dernier appel qui l emporte
12 void LibCtl_GlobalNode::Add
13 (const Handle(TheModule)& amodule, const Handle(TheProtocol)& aprotocol)
15 if (themod == amodule) return;
16 if (theprot == aprotocol) themod = amodule;
17 else if (thenext.IsNull()) {
18 if (themod.IsNull()) { themod = amodule; theprot = aprotocol; }
20 thenext = new LibCtl_GlobalNode;
21 thenext->Add (amodule,aprotocol);
24 else thenext->Add (amodule,aprotocol);
27 const Handle(TheModule)& LibCtl_GlobalNode::Module () const
30 const Handle(TheProtocol)& LibCtl_GlobalNode::Protocol () const
33 const Handle(LibCtl_GlobalNode)& LibCtl_GlobalNode::Next () const