diff options
Diffstat (limited to 'TAO/tao/String_Alloc.h')
-rw-r--r-- | TAO/tao/String_Alloc.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/TAO/tao/String_Alloc.h b/TAO/tao/String_Alloc.h new file mode 100644 index 00000000000..ddb5bb5b25e --- /dev/null +++ b/TAO/tao/String_Alloc.h @@ -0,0 +1,57 @@ +// -*- C++ -*- +//============================================================================= +/** + * @file String_Alloc.h + * + * $Id$ + * + * Header file for the CORBA string types. + * + * @author DOC Group at Wash U, UCI, and Vanderbilt U. + */ +//============================================================================= + +#ifndef TAO_STRING_ALLOC_H +#define TAO_STRING_ALLOC_H + +#include /**/ "ace/pre.h" + +#include /**/ "tao/TAO_Export.h" +#include "tao/Basic_Types.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +namespace CORBA +{ + /** + * @name CORBA String Memory Management + * + * CORBA string memory management functions. + */ + //@{ + TAO_Export char * string_alloc (ULong len); + TAO_Export char * string_dup (const char *); + TAO_Export void string_free (char *); + //@} + + /** + * @name CORBA Wide String Memory Management + * + * CORBA wide string memory management functions. + */ + //@{ + TAO_Export WChar * wstring_alloc (ULong len); + TAO_Export WChar * wstring_dup (const WChar * const); + TAO_Export void wstring_free (WChar * const); + //@} +} // End CORBA namespace. + +TAO_END_VERSIONED_NAMESPACE_DECL + +#include /**/ "ace/post.h" + +#endif /* TAO_STRING_ALLOC_H */ |