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

corbafwd.i

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 // $Id: corbafwd.i,v 1.1.1.2 2001/12/04 14:34:49 chad Exp $
00003 
00004 ACE_INLINE char *
00005 CORBA::string_alloc (CORBA::ULong len)
00006 {
00007   // Allocate 1 + strlen to accomodate the null terminating character.
00008 
00009   char *s = 0;
00010   ACE_NEW_RETURN (s,
00011                   char[size_t (len + 1)],
00012                   0);
00013 
00014   return s;
00015 }
00016 
00017 ACE_INLINE void
00018 CORBA::string_free (char *str)
00019 {
00020   delete [] str;
00021 }
00022 
00023 ACE_INLINE CORBA::WChar*
00024 CORBA::wstring_alloc (CORBA::ULong len)
00025 {
00026   CORBA::WChar *s = 0;
00027   ACE_NEW_RETURN (s,
00028                   CORBA::WChar [(size_t) (len + 1)],
00029                   0);
00030 
00031   return s;
00032 }
00033 
00034 ACE_INLINE void
00035 CORBA::wstring_free (CORBA::WChar *const str)
00036 {
00037   delete [] str;
00038 }
00039 
00040 ACE_INLINE CORBA_Environment&
00041 CORBA::default_environment ()
00042 {
00043   return TAO_default_environment ();
00044 }

Generated on Mon Jun 16 13:48:11 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002