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 namespace std 00047 { 00048 template <typename T> struct less; 00049 } 00050 #else 00051 namespace std 00052 { 00053 template <typename T> class less; 00054 } 00055 #endif 00056 00057 namespace BLOCXX_NAMESPACE 00058 { 00059 00060 struct LogMessage; 00061 00062 class BLOCXX_COMMON_API Logger; 00063 typedef IntrusiveReference<Logger> LoggerRef; 00064 00065 class BLOCXX_COMMON_API LogAppender; 00066 typedef IntrusiveReference<LogAppender> LogAppenderRef; 00067 00068 class String; 00069 typedef Array<String> StringArray; 00070 00071 class Char16; 00072 typedef Array<Char16> Char16Array; 00073 00074 template <class Key, class T, class Compare> 00075 class SortedVectorMapDataCompare; 00076 00077 template<class Key, class T, class Compare = SortedVectorMapDataCompare<Key, T, std::less<Key> > > 00078 class SortedVectorMap; 00079 00080 class StringBuffer; 00081 00082 class DateTime; 00083 00084 class OperationContext; 00085 00086 template <class T> class Enumeration; 00087 typedef Enumeration<String> StringEnumeration; 00088 00089 class Thread; 00090 typedef IntrusiveReference<Thread> ThreadRef; 00091 00092 class ThreadPool; 00093 typedef IntrusiveReference<ThreadPool> ThreadPoolRef; 00094 00095 class Bool; 00096 typedef Array<Bool> BoolArray; 00097 00098 class NonRecursiveMutexLock; 00099 00100 class NonRecursiveMutex; 00101 class Mutex; 00102 00103 class UnnamedPipe; 00104 typedef IntrusiveReference<UnnamedPipe> UnnamedPipeRef; 00105 00106 class File; 00107 00108 class MD5; 00109 00110 class UserInfo; 00111 00112 class SharedLibraryLoader; 00113 typedef IntrusiveReference<SharedLibraryLoader> SharedLibraryLoaderRef; 00114 00115 class TmpFile; 00116 00117 class Socket; 00118 00119 class SocketBaseImpl; 00120 typedef IntrusiveReference<SocketBaseImpl> SocketBaseImplRef; 00121 00122 class ServerSocket; 00123 00124 class TempFileStream; 00125 00126 class Runnable; 00127 typedef IntrusiveReference<Runnable> RunnableRef; 00128 00129 class SessionLanguage; 00130 typedef IntrusiveReference<SessionLanguage> SessionLanguageRef; 00131 00132 class ThreadCounter; 00133 typedef IntrusiveReference<ThreadCounter> ThreadCounterRef; 00134 00135 class ThreadDoneCallback; 00136 typedef IntrusiveReference<ThreadDoneCallback> ThreadDoneCallbackRef; 00137 00138 class CmdLineParser; 00139 class CmdLineParserException; 00140 00141 } // end namespace BLOCXX_NAMESPACE 00142 00143 #endif 00144