C/C++ User's Journal Synesis Software STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ... ATLSTL - where the Standard Template Library meets the Active Template Library COMSTL - where the Standard Template Library meets the Component Object Model InetSTL - where the Standard Template Library meets the Internet UNIXSTL - Template Software for the UNIX Operating System WinSTL - where the Standard Template Library meets the Win32 API

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

/Mappings/STL/reclstl.h

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

recls Library documentation © Synesis Software Pty Ltd, 2001-2004