00001 /******************************************************************************* 00002 * Copyright (C) 2004 Vintela, Inc. All rights reserved. 00003 * Copyright (C) 2005 Novell, Inc. All rights reserved. 00004 * 00005 * Redistribution and use in source and binary forms, with or without 00006 * modification, are permitted provided that the following conditions are met: 00007 * 00008 * - Redistributions of source code must retain the above copyright notice, 00009 * this list of conditions and the following disclaimer. 00010 * 00011 * - Redistributions in binary form must reproduce the above copyright notice, 00012 * this list of conditions and the following disclaimer in the documentation 00013 * and/or other materials provided with the distribution. 00014 * 00015 * - Neither the name of Vintela, Inc., Novell, Inc., nor the names of its 00016 * contributors may be used to endorse or promote products derived from this 00017 * software without specific prior written permission. 00018 * 00019 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' 00020 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00021 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00022 * ARE DISCLAIMED. IN NO EVENT SHALL Vintela, Inc., Novell, Inc., OR THE 00023 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 00024 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 00025 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 00026 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 00027 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 00028 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 00029 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00030 *******************************************************************************/ 00031 00032 00037 #ifndef BLOCXX_COMMON_FWD_HPP_INCLUDE_GUARD_ 00038 #define BLOCXX_COMMON_FWD_HPP_INCLUDE_GUARD_ 00039 #include "blocxx/BLOCXX_config.h" 00040 #include "blocxx/ArrayFwd.hpp" 00041 #include "blocxx/IntrusiveReference.hpp" 00042 00043 // Yeah I know this is forbidden by the standard, but what am I gonna do? #include <algorithm> ? I think not. 00044 // If it causes a problem on some compiler, just #ifdef a fix in. 00045 #ifdef BLOCXX_WIN32 00046 // someone who cares about windows should fix this to be a forward declaration for less so 00047 // that *everything* doesn't end up including <functional> 00048 #include <functional> 00049 #else 00050 namespace std 00051 { 00052 template <typename T> class less; 00053 } 00054 #endif 00055 00056 namespace BLOCXX_NAMESPACE 00057 { 00058 00059 struct LogMessage; 00060 00061 class BLOCXX_COMMON_API Logger; 00062 typedef IntrusiveReference<Logger> LoggerRef; 00063 00064 class BLOCXX_COMMON_API LogAppender; 00065 typedef IntrusiveReference<LogAppender> LogAppenderRef; 00066 00067 class String; 00068 typedef Array<String> StringArray; 00069 00070 class Char16; 00071 typedef Array<Char16> Char16Array; 00072 00073 template <class Key, class T, class Compare> 00074 class SortedVectorMapDataCompare; 00075 00076 template<class Key, class T, class Compare = SortedVectorMapDataCompare<Key, T, std::less<Key> > > 00077 class SortedVectorMap; 00078 00079 class StringBuffer; 00080 00081 class DateTime; 00082 00083 class OperationContext; 00084 00085 template <class T> class Enumeration; 00086 typedef Enumeration<String> StringEnumeration; 00087 00088 class Thread; 00089 typedef IntrusiveReference<Thread> ThreadRef; 00090 00091 class ThreadPool; 00092 typedef IntrusiveReference<ThreadPool> ThreadPoolRef; 00093 00094 class Bool; 00095 typedef Array<Bool> BoolArray; 00096 00097 class NonRecursiveMutexLock; 00098 00099 class NonRecursiveMutex; 00100 class Mutex; 00101 00102 class UnnamedPipe; 00103 typedef IntrusiveReference<UnnamedPipe> UnnamedPipeRef; 00104 00105 class File; 00106 00107 class MD5; 00108 00109 class UserInfo; 00110 00111 class SharedLibraryLoader; 00112 typedef IntrusiveReference<SharedLibraryLoader> SharedLibraryLoaderRef; 00113 00114 class TmpFile; 00115 00116 class Socket; 00117 00118 class SocketBaseImpl; 00119 typedef IntrusiveReference<SocketBaseImpl> SocketBaseImplRef; 00120 00121 class ServerSocket; 00122 00123 class TempFileStream; 00124 00125 class Runnable; 00126 typedef IntrusiveReference<Runnable> RunnableRef; 00127 00128 class SessionLanguage; 00129 typedef IntrusiveReference<SessionLanguage> SessionLanguageRef; 00130 00131 class ThreadCounter; 00132 typedef IntrusiveReference<ThreadCounter> ThreadCounterRef; 00133 00134 class ThreadDoneCallback; 00135 typedef IntrusiveReference<ThreadDoneCallback> ThreadDoneCallbackRef; 00136 00137 class CmdLineParser; 00138 class CmdLineParserException; 00139 00140 } // end namespace BLOCXX_NAMESPACE 00141 00142 #endif 00143
1.4.4