2 * Copyright 2001-2005 Internet2
\r
4 * Licensed under the Apache License, Version 2.0 (the "License");
\r
5 * you may not use this file except in compliance with the License.
\r
6 * You may obtain a copy of the License at
\r
8 * http://www.apache.org/licenses/LICENSE-2.0
\r
10 * Unless required by applicable law or agreed to in writing, software
\r
11 * distributed under the License is distributed on an "AS IS" BASIS,
\r
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
13 * See the License for the specific language governing permissions and
\r
14 * limitations under the License.
\r
18 * internal.h - internally visible classes
\r
21 #ifndef __xmltooling_internal_h__
\r
22 #define __xmltooling_internal_h__
\r
25 # define _CRT_SECURE_NO_DEPRECATE 1
\r
26 # define _CRT_NONSTDC_NO_DEPRECATE 1
\r
29 // eventually we might be able to support autoconf via cygwin...
\r
30 #if defined (_MSC_VER) || defined(__BORLANDC__)
\r
31 # include "config_win32.h"
\r
33 # include "config.h"
\r
37 #include "XMLToolingConfig.h"
\r
38 #include "util/ParserPool.h"
\r
41 #ifndef XMLTOOLING_NO_XMLSEC
\r
42 #include <xsec/framework/XSECProvider.hpp>
\r
45 #define XMLTOOLING_LOGCAT "XMLTooling"
\r
47 namespace xmltooling {
\r
49 class XMLToolingInternalConfig : public xmltooling::XMLToolingConfig
\r
52 XMLToolingInternalConfig() : m_lock(NULL), m_parserPool(NULL), m_xsecProvider(NULL) {}
\r
54 static XMLToolingInternalConfig& getInternalConfig();
\r
56 // global per-process setup and shutdown of runtime
\r
60 // global mutex available to library applications
\r
61 xmltooling::ILockable& lock();
\r
65 bool load_library(const char* path, void* context=NULL);
\r
66 bool log_config(const char* config=NULL);
\r
68 // internal parser pool
\r
69 xmltooling::ParserPool* m_parserPool;
\r
70 XSECProvider* m_xsecProvider;
\r
73 std::vector<void*> m_libhandles;
\r
75 //PlugManager m_plugMgr;
\r
79 #endif /* __xmltooling_internal_h__ */
\r