C/C++ User's Journal Synesis Software STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ... UNIXSTL - Template Software for the UNIX Operating System WinSTL - where the Standard Template Library meets the Win32 API

Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

/mappings/C++/reclspp.h

Go to the documentation of this file.
00001 /* 
00002  * File:        reclspp.h
00003  *
00004  * Purpose:     recls C++ mapping.
00005  *
00006  * Created:     18th August 2003
00007  * Updated:     23rd September 2003
00008  *
00009  * Copyright:   Synesis Software Pty Ltd, (c) 2003. 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-2003, 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      0
00069 # define RECLS_VER_H_RECLSPP_REVISION   5
00070 # define RECLS_VER_H_RECLSPP_EDIT       5
00071 #endif /* !RECLS_DOCUMENTATION_SKIP_SECTION */
00072 
00075 /* 
00076  * Includes
00077  */
00078 
00079 #include <recls.h>
00080 
00081 #ifdef RECLS_CPP_STRING_HEADER
00082 # include RECLS_CPP_STRING_HEADER
00083 #else
00084 # include <string>
00085 #endif /* RECLS_STRING_HEADER */
00086 
00087 /* 
00088  * Namespace
00089  */
00090 
00091 #if !defined(RECLS_NO_NAMESPACE)
00092 namespace recls
00093 {
00094 
00095 namespace cpp
00096 {
00097 #endif /* !RECLS_NO_NAMESPACE */
00098 
00099 /* 
00100  * Typedefs
00101  */
00102 
00103 #ifdef RECLS_DOCUMENTATION_SKIP_SECTION
00104 
00113 typedef std::string             string_t;
00114 
00115 #else /* ? RECLS_DOCUMENTATION_SKIP_SECTION */
00116 
00117 # ifdef RECLS_CPP_STRING_HEADER
00118 #  ifndef RECLS_CPP_STRING_T
00119 #   error RECLS_CPP_STRING_T must be defined when RECLS_CPP_STRING_HEADER is defined
00120 #  endif /* !RECLS_STRING_T */
00121 typedef RECLS_CPP_STRING_T      string_t;
00122 # else
00123 #  if defined(RECLS_COMPILER_IS_DMC)
00124 typedef string                  string_t;
00125 #  else
00126 typedef std::string             string_t;
00127 #  endif /* RECLS_COMPILER_IS_DMC */
00128 # endif /* RECLS_STRING_HEADER */
00129 #endif /* RECLS_DOCUMENTATION_SKIP_SECTION */
00130 
00131 /* 
00132  * Namespace
00133  */
00134 
00135 #if !defined(RECLS_NO_NAMESPACE)
00136 } /* namespace cpp */
00137 } /* namespace recls */
00138 namespace reclspp = ::recls::cpp;
00139 #endif /* !RECLS_NO_NAMESPACE */
00140 
00141 /* 
00142 
00143 #endif /* !RECLS_INCL_H_RECLSPP */
00144 
00145 /* 

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