Some orbit-cpp-cactus hackery



Hi all!

	At last I managed to compile the orbit-cpp-cactus branch. I
attach a patch for some things. Please review it.

	I would like also to comment some things about the source:

I have seen that the PortableServer::ServantBase::_default_POA() method
creates the ORB again (though ORB_init and resolve_initial_references).
This is suboptimal, because it would be far more easier and optimal to
have an internal

PortableServer::ServantBase::poa_ and this method could be something
like the following:

PortableServer::POA_ptr
PortableServer::ServantBase::_default_POA() {
	return PortableServer::POA::_duplicate(poa_);
}

or something similar.

	This method should be efficient, because it is called for most
objects that don't define it.

	Best regards.
	diego

-- 
Diego Sevilla Ruiz -- http://ditec.um.es/~dsevilla/ -- dsevilla@um.es
Dep. Ingeniería y Tecnología de Computadores, Facultad de Informática
Univ.de Murcia,Campus Espinardo,30080 Murcia (SPAIN),Tel.+34968367658
lynx -dump ditec.um.es/~dsevilla/face |uncompface | ikon2xbm |display
PGP:  http://pgp.rediris.es:11371/pks/lookup?op=get&search=0xC9B964B7
perl -e'$_="\x4\@FLe\x2&B";for(/../g){print unpack("b*",$_),"\n"}'|tr 01 " #"
(lambda x,f=lambda x,f:x and x[-1]+f(x[:-1],f):f(x,f))('se.mu@allivesd')
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/ORBit2/ChangeLog,v
retrieving revision 1.286.2.41.2.6
diff -u -r1.286.2.41.2.6 ChangeLog
--- ChangeLog	30 Apr 2002 21:39:19 -0000	1.286.2.41.2.6
+++ ChangeLog	1 May 2002 04:28:06 -0000
@@ -1,3 +1,17 @@
+2002-04-30  Diego Sevilla Ruiz  <dsevilla@um.es>
+
+	* src/orb-cpp/orbitcpp_sequence.hh: Added _orbit_cpp_value_type to
+	all sequences 
+
+	* src/idl-compiler/Makefile.am (orbit_idl_2_SOURCES): Removed
+	"foo.cc". I don't know exactly what is its purpose there...
+
+	* src/idl-compiler/cpp/types/IDLElement.cc: Added <algorithm> to
+	includes
+
+	* src/idl-compiler/cpp/types/IDLScope.hh: Added <vector> to
+	includes
+
 2002-04-30  ERDI Gergo  <cactus@cactus.rulez.org>
 
 	* src/idl-compiler/cpp/pass_xlate.cc (doInterface): 
@@ -17,4 +31,4 @@
 2002-04-30  Diego Sevilla Ruiz  <dsevilla@um.es>
 
 	* src/idl-compiler/cpp/types/IDLArray.cc (typedef_decl_write): 
-	Changed non-compiland STL usage
+	Changed non-compilant STL usage
Index: src/idl-compiler/Makefile.am
===================================================================
RCS file: /cvs/gnome/ORBit2/src/idl-compiler/Makefile.am,v
retrieving revision 1.18.2.2.2.1
diff -u -r1.18.2.2.2.1 Makefile.am
--- src/idl-compiler/Makefile.am	13 Apr 2002 13:37:53 -0000	1.18.2.2.2.1
+++ src/idl-compiler/Makefile.am	1 May 2002 04:28:12 -0000
@@ -49,6 +49,5 @@
         orbit-idl-c-deps.c \
 	orbit-idl-marshal.c \
 	orbit-idl-marshal.h	\
-	orbit-idl2.h		\
-	foo.cc
+	orbit-idl2.h
 
Index: src/idl-compiler/cpp/types/IDLElement.cc
===================================================================
RCS file: /cvs/gnome/ORBit2/src/idl-compiler/cpp/types/Attic/IDLElement.cc,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 IDLElement.cc
--- src/idl-compiler/cpp/types/IDLElement.cc	24 Mar 2002 17:55:19 -0000	1.1.2.2
+++ src/idl-compiler/cpp/types/IDLElement.cc	1 May 2002 04:28:13 -0000
@@ -27,6 +27,8 @@
 
 #include "IDLScope.hh"
 
+#include <algorithm>
+
 IDLElement::IDLElement(string const &id,IDL_tree node,IDLScope *parentscope)
 	: m_identifier(id),m_node(node),m_parentscope(parentscope) {
 
Index: src/idl-compiler/cpp/types/IDLScope.hh
===================================================================
RCS file: /cvs/gnome/ORBit2/src/idl-compiler/cpp/types/Attic/IDLScope.hh,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 IDLScope.hh
--- src/idl-compiler/cpp/types/IDLScope.hh	24 Mar 2002 14:10:09 -0000	1.1.2.1
+++ src/idl-compiler/cpp/types/IDLScope.hh	1 May 2002 04:28:17 -0000
@@ -29,6 +29,8 @@
 
 #include "IDLElement.hh"
 
+#include <vector>
+
 class IDLScope : public IDLElement {
 protected:
 	typedef IDLElement            Super;
Index: src/orb-cpp/orbitcpp_sequence.hh
===================================================================
RCS file: /cvs/gnome/ORBit2/src/orb-cpp/Attic/orbitcpp_sequence.hh,v
retrieving revision 1.1.2.2.2.1
diff -u -r1.1.2.2.2.1 orbitcpp_sequence.hh
--- src/orb-cpp/orbitcpp_sequence.hh	30 Apr 2002 20:17:47 -0000	1.1.2.2.2.1
+++ src/orb-cpp/orbitcpp_sequence.hh	1 May 2002 04:28:19 -0000
@@ -41,6 +41,10 @@
 	typedef value_t                                     *buffer_t;
 	typedef CType                                        c_seq_t;
 	typedef Traits                                       traits_t;
+
+		// For the sequence_var type. I don't know if this is a hack...
+		typedef CPPElem _orbitcpp_value_type;
+		
 	
 	typedef CORBA::ULong size_t;
 	typedef CORBA::ULong index_t;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]