diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-12-01 19:26:26 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-12-01 19:26:26 +0000 |
commit | cdd09534b1832e450f988a7504833df1b01813e7 (patch) | |
tree | 95537a0f87b88ae34eae68ff325acdc26aaa7309 /TAO/tao/SmartProxies | |
parent | 268aef743f4c66311c4786fcc521dd97c868923e (diff) | |
download | ATCD-cdd09534b1832e450f988a7504833df1b01813e7.tar.gz |
ChangeLogTag: Fri Dec 1 13:16:10 2000 Jeff Parsons <parsons@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/SmartProxies')
-rw-r--r-- | TAO/tao/SmartProxies/Makefile | 50 | ||||
-rw-r--r-- | TAO/tao/SmartProxies/Makefile.bor | 22 | ||||
-rw-r--r-- | TAO/tao/SmartProxies/SmartProxies.dsp | 121 | ||||
-rw-r--r-- | TAO/tao/SmartProxies/Smart_Proxies.cpp | 11 | ||||
-rw-r--r-- | TAO/tao/SmartProxies/Smart_Proxies.h | 60 | ||||
-rw-r--r-- | TAO/tao/SmartProxies/Smart_Proxies.inl | 18 | ||||
-rw-r--r-- | TAO/tao/SmartProxies/smartproxies_export.h | 40 |
7 files changed, 322 insertions, 0 deletions
diff --git a/TAO/tao/SmartProxies/Makefile b/TAO/tao/SmartProxies/Makefile new file mode 100644 index 00000000000..8864cb25c27 --- /dev/null +++ b/TAO/tao/SmartProxies/Makefile @@ -0,0 +1,50 @@ +#---------------------------------------------------------------------------- +# +# $Id$ +# +#---------------------------------------------------------------------------- +ifndef TAO_ROOT + TAO_ROOT = $(ACE_ROOT)/TAO +endif # ! TAO_ROOT + +MAKEFILE = Makefile +LIBNAME = libTAO_SmartProxies +LIB = $(LIBNAME).a +SHLIB = $(LIBNAME).$(SOEXT) + +ACE_SHLIBS = -lTAO -lACE + + +CPP_SRCS += Smart_Proxies + +FILES = $(CPP_SRCS) +DEFS = $(addsuffix .h,$(FILES)) +LSRC = $(addsuffix .cpp,$(FILES)) + +#---------------------------------------------------------------------------- +# Include macros and targets +#---------------------------------------------------------------------------- + +include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU +include $(TAO_ROOT)/rules.tao.GNU +include $(ACE_ROOT)/include/makeinclude/macros.GNU +include $(ACE_ROOT)/include/makeinclude/rules.common.GNU +include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU +include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU +include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU +include $(ACE_ROOT)/include/makeinclude/rules.local.GNU + +#---------------------------------------------------------------------------- +# Local targets (and local hacks) +#---------------------------------------------------------------------------- + +LDFLAGS += -L$(TAO_ROOT)/tao +CPPFLAGS += -I$(TAO_ROOT) + +#---------------------------------------------------------------------------- +# Dependencies +#---------------------------------------------------------------------------- + +# DO NOT DELETE THIS LINE -- g++dep uses it. +# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. + diff --git a/TAO/tao/SmartProxies/Makefile.bor b/TAO/tao/SmartProxies/Makefile.bor new file mode 100644 index 00000000000..0533a049d72 --- /dev/null +++ b/TAO/tao/SmartProxies/Makefile.bor @@ -0,0 +1,22 @@ +# +# Makefile for building the TAO Smart Proxies library +# + +NAME = TAO_SmartProxies + +OBJFILES = \ + $(OBJDIR)\Smart_Proxies.obj + +CFLAGS = $(ACE_CFLAGS) $(TAO_CFLAGS) $(TAO_SMARTPROXIES_CFLAGS) \ + -DTAO_SMARTPROXIES_BUILD_DLL + +CPPDIR = . + +INCDIR_NAME = tao/SmartProxies +INCLUDES = \ + *.h *.inl + +LIBFILES = $(TAO_SMARTPROXIES_LIB) $(TAO_LIB) $(ACE_LIB) + +!include <$(ACE_ROOT)\include\makeinclude\build_core_library.bor> +!include <$(ACE_ROOT)\include\makeinclude\recurse.bor> diff --git a/TAO/tao/SmartProxies/SmartProxies.dsp b/TAO/tao/SmartProxies/SmartProxies.dsp new file mode 100644 index 00000000000..e5b35ebaedf --- /dev/null +++ b/TAO/tao/SmartProxies/SmartProxies.dsp @@ -0,0 +1,121 @@ +# Microsoft Developer Studio Project File - Name="SmartProxies" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
+
+CFG=SmartProxies - Win32 Debug
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "SmartProxies.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "SmartProxies.mak" CFG="SmartProxies - Win32 Debug"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "SmartProxies - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
+!MESSAGE "SmartProxies - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+MTL=midl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "SmartProxies - Win32 Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir ""
+# PROP Intermediate_Dir "DLL\Release\SmartProxies"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "SMARTPROXIES_EXPORTS" /YX /FD /c
+# ADD CPP /nologo /MDd /W3 /GX /O2 /I "../" /I "../../" /I "../../../" /D "NDEBUG" /D "TAO_SMARTPROXIES_BUILD_DLL" /D "WIN32" /D "_WINDOWS" /FD /c
+# SUBTRACT CPP /YX
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
+# ADD LINK32 TAO.lib ace.lib /nologo /dll /machine:I386 /out:"..\..\..\bin\TAO_SmartProxies.dll" /libpath:"..\..\tao" /libpath:"..\..\..\ace"
+
+!ELSEIF "$(CFG)" == "SmartProxies - Win32 Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Debug"
+# PROP BASE Intermediate_Dir "Debug"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir ""
+# PROP Intermediate_Dir "DLL\Debug\SmartProxies"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "SMARTPROXIES_EXPORTS" /YX /FD /c
+# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "../" /I "../../" /I "../../../" /D "_DEBUG" /D "TAO_SMARTPROXIES_BUILD_DLL" /D "WIN32" /D "_WINDOWS" /FD /c
+# SUBTRACT CPP /YX
+# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
+# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 TAOd.lib aced.lib /nologo /dll /debug /machine:I386 /out:"..\..\..\bin\TAO_SmartProxiesd.dll" /pdbtype:sept /libpath:"..\..\tao" /libpath:"..\..\..\ace"
+
+!ENDIF
+
+# Begin Target
+
+# Name "SmartProxies - Win32 Release"
+# Name "SmartProxies - Win32 Debug"
+# Begin Group "Source Files"
+
+# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
+# Begin Source File
+
+SOURCE=.\Smart_Proxies.cpp
+# End Source File
+# End Group
+# Begin Group "Header Files"
+
+# PROP Default_Filter "h;hpp;hxx;hm;inl"
+# Begin Source File
+
+SOURCE=.\Smart_Proxies.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\smartproxies_export.h
+# End Source File
+# End Group
+# Begin Group "Inline Files"
+
+# PROP Default_Filter "inl"
+# Begin Source File
+
+SOURCE=.\Smart_Proxies.inl
+# End Source File
+# End Group
+# End Target
+# End Project
diff --git a/TAO/tao/SmartProxies/Smart_Proxies.cpp b/TAO/tao/SmartProxies/Smart_Proxies.cpp new file mode 100644 index 00000000000..a098d371991 --- /dev/null +++ b/TAO/tao/SmartProxies/Smart_Proxies.cpp @@ -0,0 +1,11 @@ +// $Id$ + +#include "Smart_Proxies.h" + +ACE_RCSID(SmartProxies, Smart_Proxies, "$Id$") + +#if !defined (__ACE_INLINE__) +#include "Smart_Proxies.inl" +#endif /* defined INLINE */ + + diff --git a/TAO/tao/SmartProxies/Smart_Proxies.h b/TAO/tao/SmartProxies/Smart_Proxies.h new file mode 100644 index 00000000000..cc6b2bad672 --- /dev/null +++ b/TAO/tao/SmartProxies/Smart_Proxies.h @@ -0,0 +1,60 @@ +// $Id$ +// This may look like C, but it's really -*- C++ -*- +// SmartProxies.h,v 1.0 + +// ============================================================================ +// +// = LIBRARY +// TAO +// +// = FILENAME +// SmartProxies.h +// +// = DESCRIPTION +// This file contains a base class for the generated smart proxy classes +// It's purpose is to hold the pointer to the real proxy +// +// = AUTHOR +// Brian Wallis <brian.wallis@ot.com.au> +// +// ============================================================================ + +#ifndef TAO_SMARTPROXIES_H +#define TAO_SMARTPROXIES_H +#include "ace/pre.h" + +#include "smartproxies_export.h" +#include "tao/Object.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +class TAO_SmartProxies_Export TAO_Smart_Proxy_Base +{ + // = TITLE + // TAO_Smart_Proxy_Base + // + // = DESCRIPTION + // A base class for all TAO_IDL generated smart proxy base classes + // Contains the _var pointer to the real proxy + +public: + virtual ~TAO_Smart_Proxy_Base (void); + // Destructor + +protected: + TAO_Smart_Proxy_Base (void); + TAO_Smart_Proxy_Base (CORBA::Object_ptr proxy); + // Constructors + + CORBA::Object_var base_proxy_; + // The proxy to which remote/collocated calls are made. +}; + +#if defined (__ACE_INLINE__) +#include "Smart_Proxies.inl" +#endif /* defined INLINE */ + +#include "ace/post.h" +#endif /* TAO_SMARTPROXIES_H */ diff --git a/TAO/tao/SmartProxies/Smart_Proxies.inl b/TAO/tao/SmartProxies/Smart_Proxies.inl new file mode 100644 index 00000000000..b75c0a5d096 --- /dev/null +++ b/TAO/tao/SmartProxies/Smart_Proxies.inl @@ -0,0 +1,18 @@ +/* -*- C++ -*- */ +// $Id$ + +ACE_INLINE +TAO_Smart_Proxy_Base::TAO_Smart_Proxy_Base (void) +{ +} + +ACE_INLINE +TAO_Smart_Proxy_Base::TAO_Smart_Proxy_Base (CORBA::Object_ptr proxy) + : base_proxy_(proxy) +{ +} + +ACE_INLINE +TAO_Smart_Proxy_Base::~TAO_Smart_Proxy_Base (void) +{ +} diff --git a/TAO/tao/SmartProxies/smartproxies_export.h b/TAO/tao/SmartProxies/smartproxies_export.h new file mode 100644 index 00000000000..62fb3430f21 --- /dev/null +++ b/TAO/tao/SmartProxies/smartproxies_export.h @@ -0,0 +1,40 @@ + +// -*- C++ -*- +// $Id$ +// Definition for Win32 Export directives. +// This file is generated automatically by generate_export_file.pl +// ------------------------------ +#ifndef TAO_SMARTPROXIES_EXPORT_H +#define TAO_SMARTPROXIES_EXPORT_H + +#include "ace/config-all.h" + +#if defined (TAO_AS_STATIC_LIBS) +# if !defined (TAO_SMARTPROXIES_HAS_DLL) +# define TAO_SMARTPROXIES_HAS_DLL 0 +# endif /* ! TAO_SMARTPROXIES_HAS_DLL */ +#else +# if !defined (TAO_SMARTPROXIES_HAS_DLL) +# define TAO_SMARTPROXIES_HAS_DLL 1 +# endif /* ! TAO_SMARTPROXIES_HAS_DLL */ +#endif + +#if defined (TAO_SMARTPROXIES_HAS_DLL) && (TAO_SMARTPROXIES_HAS_DLL == 1) +# if defined (TAO_SMARTPROXIES_BUILD_DLL) +# define TAO_SmartProxies_Export ACE_Proper_Export_Flag +# define TAO_SMARTPROXIES_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T) +# define TAO_SMARTPROXIES_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# else /* TAO_SMARTPROXIES_BUILD_DLL */ +# define TAO_SmartProxies_Export ACE_Proper_Import_Flag +# define TAO_SMARTPROXIES_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T) +# define TAO_SMARTPROXIES_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +# endif /* TAO_SMARTPROXIES_BUILD_DLL */ +#else /* TAO_SMARTPROXIES_HAS_DLL == 1 */ +# define TAO_SmartProxies_Export +# define TAO_SMARTPROXIES_SINGLETON_DECLARATION(T) +# define TAO_SMARTPROXIES_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) +#endif /* TAO_SMARTPROXIES_HAS_DLL == 1 */ + +#endif /* TAO_SMARTPROXIES_EXPORT_H */ + +// End of auto generated file. |