Savarese Software Research Corporation
libssrckdtree-packages.h
Go to the documentation of this file.
00001 /*
00002  * Copyright 2003-2005 Daniel F. Savarese
00003  * Copyright 2006-2009 Savarese Software Research Corporation
00004  *
00005  * Licensed under the Apache License, Version 2.0 (the "License");
00006  * you may not use this file except in compliance with the License.
00007  * You may obtain a copy of the License at
00008  *
00009  *     https://www.savarese.com/software/ApacheLicense-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 
00029 #ifndef __SSRC_KD_PACKAGES_H
00030 #define __SSRC_KD_PACKAGES_H
00031 
00032 #include <ssrc/libssrckdtree-config.h>
00033 
00034 // Begin namespace definitions.
00035 
00036 #define NS_SSRC_SPATIAL KD_DEFINE_NAMESPACE(spatial)
00037 
00038 #define NS_KD_INTERNAL_DECL_PREFIX NS_KD_DECL_PREFIX
00039 #define NS_KD_INTERNAL_DECL_SUFFIX NS_KD_DECL_SUFFIX
00040 
00041 #define NS_KD_EXTERNAL_DECL_PREFIX \
00042 namespace ssrc {
00043 #define NS_KD_EXTERNAL_DECL_SUFFIX \
00044 }
00045 
00046 #define __END_NS_KD \
00047     } \
00048 NS_KD_DECL_SUFFIX
00049 
00050 #define __END_NS_KD2 \
00051     } \
00052   } \
00053 NS_KD_DECL_SUFFIX
00054 
00055 #define KD_BEGIN_NS(name) \
00056   NS_KD_DECL_PREFIX \
00057     namespace name {
00058 
00059 #define KD_BEGIN_NS2(name1,name2) \
00060   NS_KD_DECL_PREFIX \
00061     namespace name1 { \
00062       namespace name2 {
00063 
00064 #define __BEGIN_NS_SSRC_SPATIAL  KD_BEGIN_NS(spatial)
00065 #define __END_NS_SSRC_SPATIAL __END_NS_KD
00066 
00067 // End namespace definitions.
00068 
00069 // Document namespaces
00070 
00071 NS_KD_INTERNAL_DECL_PREFIX
00072 
00078 namespace spatial { }
00079 
00080 NS_KD_INTERNAL_DECL_SUFFIX
00081 
00082 // Create aliases
00083 
00091 NS_KD_EXTERNAL_DECL_PREFIX
00092 
00093   namespace spatial = NS_SSRC_SPATIAL;
00094 
00095 NS_KD_EXTERNAL_DECL_SUFFIX
00096 
00097 // End namespace aliases
00098 
00099 #endif

Savarese Software Research Corporation
Copyright © 2003-2005 Daniel F. Savarese.
Copyright © 2006-2009 Savarese Software Research Corporation.