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 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/Cpp/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:     26th March 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   2
00070 # define RECLS_VER_H_RECLSPP_EDIT       9
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 /* 
00094  * Namespace
00095  */
00096 
00097 #if !defined(RECLS_NO_NAMESPACE)
00098 namespace recls
00099 {
00100 
00101 namespace cpp
00102 {
00103 #endif /* !RECLS_NO_NAMESPACE */
00104 
00105 /* 
00106  * Typedefs
00107  */
00108 
00109 #ifdef RECLS_DOCUMENTATION_SKIP_SECTION
00110 
00119 typedef std::string             string_t;
00120 
00121 #else /* ? RECLS_DOCUMENTATION_SKIP_SECTION */
00122 
00123 # ifdef RECLS_CPP_STRING_HEADER
00124 #  ifndef RECLS_CPP_STRING_T
00125 #   error RECLS_CPP_STRING_T must be defined when RECLS_CPP_STRING_HEADER is defined
00126 #  endif /* !RECLS_STRING_T */
00127 typedef RECLS_CPP_STRING_T      string_t;
00128 # else
00129 #  if defined(RECLS_COMPILER_IS_DMC)
00130 typedef string                  string_t;
00131 #  else
00132 typedef std::string             string_t;
00133 #  endif /* RECLS_COMPILER_IS_DMC */
00134 # endif /* RECLS_STRING_HEADER */
00135 #endif /* RECLS_DOCUMENTATION_SKIP_SECTION */
00136 
00137 /* 
00138  * Namespace
00139  */
00140 
00141 #if !defined(RECLS_NO_NAMESPACE)
00142 } /* namespace cpp */
00143 } /* namespace recls */
00144 namespace reclspp = ::recls::cpp;
00145 #endif /* !RECLS_NO_NAMESPACE */
00146 
00147 /* 
00148 
00149 #endif /* !RECLS_INCL_H_RECLSPP */
00150 
00151 /* 

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