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

ObjectReference.cpp

Go to the documentation of this file.
00001 // /******************************************************************************\
00002 // *
00003 // * File:          ObjectReference.cpp
00004 // * Creation date: June 22, 2001 11:59
00005 // * Author:        ClassBuilder
00006 // *                XXXX
00007 // * Purpose:       Method implementations of class 'SqObjectReference'
00008 // *
00009 // * Modifications: @INSERT_MODIFICATIONS(* )
00010 // *
00011 // *
00012 // \******************************************************************************/
00013 //@START_USER1
00018 /* --------------------------------------------------------------
00019 Copyright (C) 2001 LifeLine Networks BV <soap2corba@lifeline.nl>
00020 
00021 This program is free software; you can redistribute it and/or
00022 modify it under the terms of the GNU General Public License
00023 as published by the Free Software Foundation; either
00024 version 2 of the License, or (at your option) any later
00025 version.
00026 
00027 This program is distributed in the hope that it will be useful,
00028 but WITHOUT ANY WARRANTY; without even the implied warranty of
00029 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00030 GNU General Public License for more details.
00031 
00032 You should have received a copy of the GNU General Public License
00033 along with this program; if not, write to the Free Software
00034 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00035 -------------------------------------------------------------- */
00036 //@END_USER1
00037 
00038 
00039 // Master include file
00040 #include "ObjCtx.h"
00041 
00042 
00043 //@START_USER2
00044 //@END_USER2
00045 
00046 
00047 // Static members
00048 
00049 
00053 SqObjectReference::SqObjectReference(SqContext* pContext, unsigned long ObjSeq,
00054                                      const char* IOR) //@INIT_846
00055     : m_IOR(IOR)
00056     , m_ObjSeq(ObjSeq)
00057 {//@CODE_846
00058     ConstructorInclude(pContext);
00059 
00060     // Put in your own code
00061 }//@CODE_846
00062 
00063 
00067 SqObjectReference::~SqObjectReference()
00068 {//@CODE_769
00069     DestructorInclude();
00070 
00071     // Put in your own code
00072 }//@CODE_769
00073 
00074 
00078 void SqObjectReference::SetObjSeq(unsigned long objSeq)
00079 {//@CODE_780
00080     if (m_ObjSeq != objSeq)
00081     {
00082         SqContext* refContext = _refContext;
00083         refContext->RemoveObjectReference(this);
00084 
00085         m_ObjSeq = objSeq;
00086 
00087         refContext->AddObjectReference(this);
00088     }
00089 }//@CODE_780
00090 
00091 
00092 //{{AFX DO NOT EDIT CODE BELOW THIS LINE !!!
00093 
00097 void SqObjectReference::ConstructorInclude(SqContext* pContext)
00098 {
00099     // INIT_UNIQUEVALUETREE_OWNED_PASSIVE(SqContext, Context, SqObjectReference, ObjectReference)
00100     _refContext = (SqContext*)0;
00101     _parentContext = (SqObjectReference*)0;
00102     _leftContext = (SqObjectReference*)0;
00103     _rightContext = (SqObjectReference*)0;
00104     assert(pContext);
00105     pContext->AddObjectReference(this);
00106 }
00107 
00108 
00112 void SqObjectReference::DestructorInclude()
00113 {
00114     // EXIT_UNIQUEVALUETREE_OWNED_PASSIVE(SqContext, Context, SqObjectReference, ObjectReference)
00115     
00116     if (_refContext)
00117         _refContext->RemoveObjectReference(this);
00118 }
00119 
00120 
00121 // Methods for the relation(s) of the class
00122 // METHODS_UNIQUEVALUETREE_OWNED_PASSIVE(SqContext, Context, SqObjectReference, ObjectReference)
00123 
00124 //}}AFX DO NOT EDIT CODE ABOVE THIS LINE !!!
00125 
00126 //@START_USER3
00127 

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