Starting migration to new SP library
[shibboleth/cpp-sp.git] / shibsp / internal.h
1 /*
2  *  Copyright 2001-2005 Internet2
3  * 
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 /*
18  *  internal.h - internally visible classes
19  */
20
21 #ifndef __shibsp_internal_h__
22 #define __shibsp_internal_h__
23
24 #ifdef WIN32
25 # define _CRT_SECURE_NO_DEPRECATE 1
26 # define _CRT_NONSTDC_NO_DEPRECATE 1
27 #endif
28
29 // Export public APIs
30 #define SHIBSP_EXPORTS
31
32 // eventually we might be able to support autoconf via cygwin...
33 #if defined (_MSC_VER) || defined(__BORLANDC__)
34 # include "config_win32.h"
35 #else
36 # include "config.h"
37 #endif
38
39 #include "base.h"
40 #include "SPConfig.h"
41
42 namespace shibsp {
43     
44     /// @cond OFF
45     class SPInternalConfig : public SPConfig
46     {
47     public:
48         SPInternalConfig() {}
49
50         static SPInternalConfig& getInternalConfig();
51
52         bool init(const char* catalog_path);
53         void term();
54
55     private:
56     };
57     /// @endcond
58
59 };
60
61 #endif /* __shibsp_internal_h__ */