// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
//
//
// Module : SALOME
// $Header$
+#ifndef WNT
+# define private protected
+#endif
#include "utilities.h"
#include "SALOME_TestComponent_i.hxx"
#include <stdio.h>
const char *interfaceName) :
Engines_Component_i(orb, poa, contId, instanceName, interfaceName)
{
- MESSAGE("activate object")
+ MESSAGE("activate object");
_thisObj = this ;
_id = _poa->activate_object(_thisObj);
- //SCRUTE(this)
+ //does not work with 4.0.6 (too bad)
+ //SCRUTE(_pd_refCount);
+ //SCRUTE(_refcount_value());
}
Engines_TestComponent_i::Engines_TestComponent_i()
Engines_TestComponent_i::~Engines_TestComponent_i()
{
+ MESSAGE("~Engines_TestComponent_i()");
}
char* Engines_TestComponent_i::Coucou(CORBA::Long L)
{
char s[100];
sprintf(s, "TestComponent_i : L = %ld", (long) L);
+ //does not work with 4.0.6 (too bad)
+ //SCRUTE(_pd_refCount);
+ //SCRUTE(_refcount_value());
return CORBA::string_dup(s);
}
{
const char* value;
(*it).second >>= value;
- int ret = setenv(cle.c_str(), value, overwrite);
+ //CCRT porting : setenv not defined in stdlib.h
+ std::string s(cle);
+ s+='=';
+ s+=value;
+ //char* cast because 1st arg of linux putenv function is not a const char* !!!
+ int ret=putenv((char *)s.c_str());
+ //End of CCRT porting
+ //int ret = setenv(cle.c_str(), value, overwrite);
MESSAGE("--- setenv: "<<cle<<" = "<< value);
}
}