Savarese Software Research Corporation

wisp-packages.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 2006-2008 Savarese Software Research Corporation
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.savarese.com/software/ApacheLicense-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00028 #ifndef __SSRC_WISP_PACKAGES_H
00029 #define __SSRC_WISP_PACKAGES_H
00030 
00031 #include <ssrc/wisp-config.h>
00032 
00033 // Begin namespace definitions.
00034 
00035 #define NS_SSRC_WISP            NS_WISP
00036 #define NS_SSRC_WISP_PROTOCOL   WISP_DEFINE_NAMESPACE(protocol)
00037 #define NS_SSRC_WISP_SERVICE    WISP_DEFINE_NAMESPACE(service)
00038 #define NS_SSRC_WISP_TEST       WISP_DEFINE_NAMESPACE(test)
00039 #define NS_SSRC_WISP_UTILITY    WISP_DEFINE_NAMESPACE(utility)
00040 
00041 #define NS_WISP_INTERNAL_DECL_PREFIX NS_WISP_DECL_PREFIX
00042 #define NS_WISP_INTERNAL_DECL_SUFFIX NS_WISP_DECL_SUFFIX
00043 
00044 #define NS_WISP_EXTERNAL_DECL_PREFIX \
00045 namespace ssrc {
00046 #define NS_WISP_EXTERNAL_DECL_SUFFIX \
00047 }
00048 
00049 #define __END_NS_WISP \
00050     } \
00051 NS_WISP_DECL_SUFFIX
00052 
00053 #define __END_NS_WISP2 \
00054     } \
00055   } \
00056 NS_WISP_DECL_SUFFIX
00057 
00058 #define WISP_BEGIN_NS(name) \
00059   NS_WISP_DECL_PREFIX \
00060     namespace name {
00061 
00062 #define WISP_BEGIN_NS2(name1,name2) \
00063   NS_WISP_DECL_PREFIX \
00064     namespace name1 { \
00065       namespace name2 {
00066 
00067 #define __BEGIN_NS_SSRC_WISP  NS_WISP_DECL_PREFIX
00068 #define __END_NS_SSRC_WISP NS_WISP_DECL_SUFFIX
00069 
00070 #define __BEGIN_NS_SSRC_WISP_PROTOCOL  WISP_BEGIN_NS(protocol)
00071 #define __END_NS_SSRC_WISP_PROTOCOL __END_NS_WISP
00072 
00073 #define __BEGIN_NS_SSRC_WISP_SERVICE  WISP_BEGIN_NS(service)
00074 #define __END_NS_SSRC_WISP_SERVICE __END_NS_WISP
00075 
00076 #define __BEGIN_NS_SSRC_WISP_TEST  WISP_BEGIN_NS(test)
00077 #define __END_NS_SSRC_WISP_TEST __END_NS_WISP
00078 
00079 #define __BEGIN_NS_SSRC_WISP_UTILITY  WISP_BEGIN_NS(utility)
00080 #define __END_NS_SSRC_WISP_UTILITY __END_NS_WISP
00081 
00082 // End namespace definitions.
00083 
00084 // Document namespaces
00085 
00086 
00092 NS_WISP_INTERNAL_DECL_PREFIX
00093 
00103 namespace detail { }
00104 
00109 namespace protocol { }
00110 
00115 namespace service { }
00116 
00120 namespace test { }
00121 
00125 namespace utility { }
00126 
00127 NS_WISP_INTERNAL_DECL_SUFFIX
00128 
00129 // Create aliases
00130 
00138 NS_WISP_EXTERNAL_DECL_PREFIX
00139 
00140   namespace wisp = NS_SSRC_WISP;
00141 
00142 NS_WISP_EXTERNAL_DECL_SUFFIX
00143 
00144 // End namespace aliases
00145 
00146 #endif

Savarese Software Research Corporation
Copyright © 2006-2010 Savarese Software Research Corporation. All rights reserved.