00001 // -*- C++ -*- 00002 //============================================================================= 00003 /** 00004 * @file String_Alloc.h 00005 * 00006 * $Id: String_Alloc.h 74014 2006-08-14 13:52:22Z johnnyw $ 00007 * 00008 * Header file for the CORBA string types. 00009 * 00010 * @author DOC Group at Wash U, UCI, and Vanderbilt U. 00011 */ 00012 //============================================================================= 00013 00014 #ifndef TAO_STRING_ALLOC_H 00015 #define TAO_STRING_ALLOC_H 00016 00017 #include /**/ "ace/pre.h" 00018 00019 #include /**/ "tao/TAO_Export.h" 00020 #include "tao/Basic_Types.h" 00021 00022 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00023 # pragma once 00024 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00025 00026 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00027 00028 namespace CORBA 00029 { 00030 /** 00031 * @name CORBA String Memory Management 00032 * 00033 * CORBA string memory management functions. 00034 */ 00035 //@{ 00036 TAO_Export char * string_alloc (ULong len); 00037 TAO_Export char * string_dup (const char *); 00038 TAO_Export void string_free (char *); 00039 //@} 00040 00041 /** 00042 * @name CORBA Wide String Memory Management 00043 * 00044 * CORBA wide string memory management functions. 00045 */ 00046 //@{ 00047 TAO_Export WChar * wstring_alloc (ULong len); 00048 TAO_Export WChar * wstring_dup (const WChar * const); 00049 TAO_Export void wstring_free (WChar * const); 00050 //@} 00051 } // End CORBA namespace. 00052 00053 TAO_END_VERSIONED_NAMESPACE_DECL 00054 00055 #include /**/ "ace/post.h" 00056 00057 #endif /* TAO_STRING_ALLOC_H */