Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

HrefId.cpp

Go to the documentation of this file.
00001 // /******************************************************************************\
00002 // *
00003 // * File:          HrefId.cpp
00004 // * Creation date: June 11, 2001 11:05
00005 // * Author:        ClassBuilder
00006 // *                XXXX
00007 // * Purpose:       Method implementations of class 'HrefId'
00008 // *
00009 // * Modifications: @INSERT_MODIFICATIONS(* )
00010 // * June 11, 2001 11:05 WERS
00011 // *     Added method 'DestructorInclude'
00012 // *     Added method 'ConstructorInclude'
00013 // *     Added method '~HrefId'
00014 // *     Added method 'HrefId'
00015 // *     Added relation 'HrefIdMap <>-->> HrefId'
00016 // *     Added member 'm_node'
00017 // *     Added member 'm_id'
00018 // *
00019 // *
00020 // \******************************************************************************/
00021 //@START_USER1
00026 /* --------------------------------------------------------------
00027 Copyright (C) 2001 LifeLine Networks BV <soap2corba@lifeline.nl>
00028 
00029 This program is free software; you can redistribute it and/or
00030 modify it under the terms of the GNU General Public License
00031 as published by the Free Software Foundation; either
00032 version 2 of the License, or (at your option) any later
00033 version.
00034 
00035 This program is distributed in the hope that it will be useful,
00036 but WITHOUT ANY WARRANTY; without even the implied warranty of
00037 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00038 GNU General Public License for more details.
00039 
00040 You should have received a copy of the GNU General Public License
00041 along with this program; if not, write to the Free Software
00042 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00043 -------------------------------------------------------------- */
00044 //@END_USER1
00045 
00046 
00047 // Master include file
00048 #include "StdAfx.h"
00049 
00050 
00051 //@START_USER2
00052 //@END_USER2
00053 
00054 
00055 // Static members
00056 
00057 
00061 HrefId::HrefId(HrefIdMap* pHrefIdMap, DOMString& rString,
00062                DOM_Node& rNode) //@INIT_117
00063     : m_id()
00064     , m_node()
00065 {//@CODE_117
00066     ConstructorInclude(pHrefIdMap);
00067 
00068     char *id = rString.transcode ();
00069     m_id = id;
00070     delete id;
00071     m_node = rNode;
00072 }//@CODE_117
00073 
00074 
00078 HrefId::~HrefId()
00079 {//@CODE_39
00080     DestructorInclude();
00081 
00082     // Put in your own code
00083 }//@CODE_39
00084 
00085 
00086 //{{AFX DO NOT EDIT CODE BELOW THIS LINE !!!
00087 
00091 void HrefId::ConstructorInclude(HrefIdMap* pHrefIdMap)
00092 {
00093     // INIT_AVLTREE_OWNED_PASSIVE(HrefIdMap, HrefIdMap, HrefId, HrefId)
00094     _refHrefIdMap = (HrefIdMap*)0;
00095     _parentHrefIdMap = (HrefId*)0;
00096     _leftHrefIdMap = (HrefId*)0;
00097     _rightHrefIdMap = (HrefId*)0;
00098     _balHrefIdMap = 0;
00099     assert(pHrefIdMap);
00100     pHrefIdMap->AddHrefId(this);
00101 }
00102 
00103 
00107 void HrefId::DestructorInclude()
00108 {
00109     // EXIT_AVLTREE_OWNED_PASSIVE(HrefIdMap, HrefIdMap, HrefId, HrefId)
00110     
00111     if (_refHrefIdMap)
00112         _refHrefIdMap->RemoveHrefId(this);
00113 }
00114 
00115 
00116 // Methods for the relation(s) of the class
00117 // METHODS_AVLTREE_OWNED_PASSIVE(HrefIdMap, HrefIdMap, HrefId, HrefId)
00118 
00119 //}}AFX DO NOT EDIT CODE ABOVE THIS LINE !!!
00120 
00121 //@START_USER3
00122 

This documentation is part of the "SOAP to CORBA bridge" project
Copyright © 2000 by Lifeline Networks bv.
All rights are reserved.