|
00001 /* 00002 * File: reclspp.h 00003 * 00004 * Purpose: recls C++ mapping. 00005 * 00006 * Created: 18th August 2003 00007 * Updated: 8th June 2004 00008 * 00009 * Copyright: Synesis Software Pty Ltd, (c) 2003-2004. All rights reserved. 00010 * 00011 * Author: Matthew Wilson, Synesis Software Pty Ltd. 00012 * 00013 * License: (Licensed under the Synesis Software Standard Source License) 00014 * 00015 * Copyright (C) 2002-2004, Synesis Software Pty Ltd. 00016 * 00017 * All rights reserved. 00018 * 00019 * www: http://www.synesis.com.au/software 00020 * http://www.recls.org/ 00021 * 00022 * email: submissions@recls.org for submissions 00023 * admin@recls.org for other enquiries 00024 * 00025 * Redistribution and use in source and binary forms, with or 00026 * without modification, are permitted provided that the following 00027 * conditions are met: 00028 * 00029 * (i) Redistributions of source code must retain the above 00030 * copyright notice and contact information, this list of 00031 * conditions and the following disclaimer. 00032 * 00033 * (ii) Any derived versions of this software (howsoever modified) 00034 * remain the sole property of Synesis Software. 00035 * 00036 * (iii) Any derived versions of this software (howsoever modified) 00037 * remain subject to all these conditions. 00038 * 00039 * (iv) Neither the name of Synesis Software nor the names of any 00040 * subdivisions, employees or agents of Synesis Software, nor the 00041 * names of any other contributors to this software may be used to 00042 * endorse or promote products derived from this software without 00043 * specific prior written permission. 00044 * 00045 * This source code is provided by Synesis Software "as is" and any 00046 * warranties, whether expressed or implied, including, but not 00047 * limited to, the implied warranties of merchantability and 00048 * fitness for a particular purpose are disclaimed. In no event 00049 * shall the Synesis Software be liable for any direct, indirect, 00050 * incidental, special, exemplary, or consequential damages 00051 * (including, but not limited to, procurement of substitute goods 00052 * or services; loss of use, data, or profits; or business 00053 * interruption) however caused and on any theory of liability, 00054 * whether in contract, strict liability, or tort (including 00055 * negligence or otherwise) arising in any way out of the use of 00056 * this software, even if advised of the possibility of such 00057 * damage. 00058 * 00059 * 00060 00061 00062 #ifndef RECLS_INCL_H_RECLSPP 00063 #define RECLS_INCL_H_RECLSPP 00064 00065 /* File version */ 00066 #ifndef RECLS_DOCUMENTATION_SKIP_SECTION 00067 # define RECLS_VER_H_RECLSPP_MAJOR 1 00068 # define RECLS_VER_H_RECLSPP_MINOR 1 00069 # define RECLS_VER_H_RECLSPP_REVISION 3 00070 # define RECLS_VER_H_RECLSPP_EDIT 10 00071 #endif /* !RECLS_DOCUMENTATION_SKIP_SECTION */ 00072 00077 /* 00078 * Includes 00079 */ 00080 00081 #include <recls.h> 00082 00083 #if RECLS_VER < RECLS_VER_1_1_1 00084 # error The recls C++ mapping now requires version 1.1.1 or later of the recls C API 00085 #endif /* RECLS_VER < 1.1.1 */ 00086 00087 #ifdef RECLS_CPP_STRING_HEADER 00088 # include RECLS_CPP_STRING_HEADER 00089 #else 00090 # include <string> 00091 #endif /* RECLS_STRING_HEADER */ 00092 00093 #if defined(RECLS_COMPILER_IS_DMC) 00094 # include <stlsoft_iterator.h> // For library detection 00095 #endif /* RECLS_COMPILER_IS_DMC */ 00096 00097 /* 00098 * Namespace 00099 */ 00100 00101 #if !defined(RECLS_NO_NAMESPACE) 00102 namespace recls 00103 { 00104 00105 namespace cpp 00106 { 00107 #endif /* !RECLS_NO_NAMESPACE */ 00108 00109 /* 00110 * Typedefs 00111 */ 00112 00113 #ifdef RECLS_DOCUMENTATION_SKIP_SECTION 00114 00123 typedef std::string string_t; 00124 00125 #else /* ? RECLS_DOCUMENTATION_SKIP_SECTION */ 00126 00127 # ifdef RECLS_CPP_STRING_HEADER 00128 # ifndef RECLS_CPP_STRING_T 00129 # error RECLS_CPP_STRING_T must be defined when RECLS_CPP_STRING_HEADER is defined 00130 # endif /* !RECLS_STRING_T */ 00131 typedef RECLS_CPP_STRING_T string_t; 00132 # else 00133 # if defined(RECLS_COMPILER_IS_DMC) && \ 00134 !defined(STLSOFT_CF_STD_LIBRARY_IS_STLPORT) 00135 typedef string string_t; 00136 # else 00137 typedef std::string string_t; 00138 # endif /* RECLS_COMPILER_IS_DMC */ 00139 # endif /* RECLS_STRING_HEADER */ 00140 #endif /* RECLS_DOCUMENTATION_SKIP_SECTION */ 00141 00142 /* 00143 * Namespace 00144 */ 00145 00146 #if !defined(RECLS_NO_NAMESPACE) 00147 } /* namespace cpp */ 00148 } /* namespace recls */ 00149 namespace reclspp = ::recls::cpp; 00150 #endif /* !RECLS_NO_NAMESPACE */ 00151 00152 /* 00153 00154 #endif /* !RECLS_INCL_H_RECLSPP */ 00155 00156 /*
|
recls Library documentation © Synesis Software Pty Ltd, 2001-2004 |