You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(622) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(303) |
Feb
(64) |
Mar
(5) |
Apr
(63) |
May
(82) |
Jun
(53) |
Jul
(50) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Christian P. <cp...@us...> - 2005-01-26 10:23:26
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses/Net In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24824/include/pclasses/Net Modified Files: Socket.h Log Message: Added export-macros. Added "static int Socket::wait()" for waiting on a number of sockets. Index: Socket.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/Net/Socket.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- Socket.h 24 Jan 2005 23:00:39 -0000 1.5 +++ Socket.h 26 Jan 2005 10:23:17 -0000 1.6 @@ -21,6 +21,7 @@ #ifndef P_Net_Socket_h #define P_Net_Socket_h +#include <pclasses/Export.h> #include <pclasses/BasicTypes.h> #include <pclasses/IO/IODevice.h> #include <pclasses/Net/NetworkAddress.h> @@ -32,7 +33,7 @@ typedef uint16_t port_t; //! Socket -class Socket: public IO::IODevice { +class PNET_EXPORT Socket: public IO::IODevice { public: enum Domain { Inet, @@ -53,7 +54,7 @@ }; Socket() throw(); - Socket(Domain domain, Type type, int proto) throw(IO::IOError); + Socket(Domain domain, Type type, int proto = 0) throw(IO::IOError); ~Socket() throw(); Domain domain() const throw(); @@ -62,16 +63,11 @@ int protocol() const throw(); - int wait(int wait, unsigned int timeout) throw(IO::IOError); - //! Bind socket to given address and port void bind(const NetworkAddress& addr, port_t port) throw(IO::IOError); void connect(const NetworkAddress& addr, port_t port) throw(IO::IOError); - void listen() throw(IO::IOError); - Socket accept() throw(IO::IOError); - void setSendTimeout(unsigned int timeout) throw(IO::IOError); unsigned int sendTimeout() const throw(IO::IOError); @@ -88,6 +84,13 @@ void setRouting(bool enable) throw(IO::IOError); + int wait(int wait, unsigned int timeout) throw(IO::IOError); + + static int wait(Socket* s[], int wait[], int num, unsigned int timeout) + throw(IO::IOError); + + static Domain addrFamily2Domain(int family); + protected: void open(Domain domain, Type type, int proto) throw(IO::IOError); @@ -95,20 +98,14 @@ void open(int handle, Domain domain, Type type, int proto) throw(IO::IOError); - void _close() throw(IO::IOError); + int handle() const throw(); + // IODevice related methods + void _close() throw(IO::IOError); size_t _read(char* buffer, size_t count) throw(IO::IOError); - size_t _peek(char* buffer, size_t count) throw(IO::IOError); - size_t _write(const char* buffer, size_t count) throw(IO::IOError); - int handle() const throw(); - - void addListener(IO::IOListener& l); - void updateListener(IO::IOListener& l); - void removeListener(IO::IOListener& l); - private: Domain _domain; Type _type; @@ -117,7 +114,7 @@ }; //! Datagram Socket -class DatagramSocket: public virtual Socket { +class PNET_EXPORT DatagramSocket: public virtual Socket { public: DatagramSocket() throw(); ~DatagramSocket() throw(); @@ -127,14 +124,40 @@ }; +//! Streaming Socket Server +class PNET_EXPORT StreamSocketServer: public Socket { + public: + //! Standard constructor + StreamSocketServer(Domain domain, int proto = 0) throw(IO::IOError); + + //! Binding constructor + StreamSocketServer(const NetworkAddress& addr, port_t port) throw(IO::IOError); + + ~StreamSocketServer() throw(); + + //! Bind socket to given address and port + void bind(const NetworkAddress& addr, port_t port) throw(IO::IOError); + + //! Listen for incoming connections + void listen() throw(IO::IOError); + + bool wait(unsigned int timeout) throw(IO::IOError); + + //! Accept incoming connection + int accept() throw(IO::IOError); +}; + //! Streaming Socket -class StreamSocket: public virtual Socket { +class PNET_EXPORT StreamSocket: public virtual Socket { public: StreamSocket() throw(); + StreamSocket(StreamSocketServer& srv) throw(IO::IOError); ~StreamSocket() throw(); + void open(StreamSocketServer& srv) throw(IO::IOError); }; + } // !namespace Net } // !namespace P |
From: Christian P. <cp...@us...> - 2005-01-24 23:03:57
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5261/include/pclasses Modified Files: Makefile.am Log Message: Fixed Makefile.am Index: Makefile.am =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/Makefile.am,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- Makefile.am 17 Jan 2005 21:56:51 -0000 1.9 +++ Makefile.am 24 Jan 2005 23:03:24 -0000 1.10 @@ -8,5 +8,5 @@ ByteOrderTraits.h BasicTypes.h Vector.h Algorithm.h TypeTraits.h \ Stack.h LinkedItem.h Pair.h IntTypeLimits.h Queue.h IntrusivePtr.h \ CircularQueue.h List.h NonCopyable.h Phoenix.h Factory.h \ - Time.h Date.h DateTime.h TimeSpan.h Callback.h Signal.h \ - Trace.h PropertyMap.h Export.h + SharingContext.h Time.h Date.h DateTime.h TimeSpan.h Callback.h Signal.h \ + Trace.h PropertyMap.h Export.h pclasses-config.h |
From: Christian P. <cp...@us...> - 2005-01-24 23:01:27
|
Update of /cvsroot/pclasses/pclasses2/src/Net In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4612/src/Net Modified Files: Socket.cpp Log Message: Added Socket::listen(), Socket::accept(). Index: Socket.cpp =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/Net/Socket.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- Socket.cpp 7 Jan 2005 13:39:02 -0000 1.5 +++ Socket.cpp 24 Jan 2005 23:00:39 -0000 1.6 @@ -197,7 +197,7 @@ } void Socket::open(Domain domain, Type type, int proto) - throw(LogicError, IO::IOError) + throw(IO::IOError) { if(valid()) close(); @@ -244,6 +244,22 @@ _proto = proto; } +void Socket::open(int handle, Domain domain, Type type, int proto) + throw(IO::IOError) +{ + if(valid()) + close(); + + IODevice::setAccess(ReadWrite); + IODevice::setValid(true); + IODevice::setEof(false); + + _handle = handle; + _domain = domain; + _type = type; + _proto = proto; +} + void Socket::_close() throw(IO::IOError) { int ret = ::close(_handle); @@ -353,6 +369,24 @@ throw IO::IOError(errno, "Could not connect socket", P_SOURCEINFO); } +void Socket::listen() throw(IO::IOError) +{ + int ret = ::listen(_handle, 128); + if(ret == -1) + throw IO::IOError(errno, "Could not listen on socket", P_SOURCEINFO); +} + +Socket Socket::accept() throw(IO::IOError) +{ + int ret = ::accept(_handle, 0, 0); + if(ret == -1) + throw IO::IOError(errno, "Could not accept connection on socket", P_SOURCEINFO); + + Socket s; + s.open(ret, _domain, _type, _proto); + return s; +} + void Socket::setSendTimeout(unsigned int timeout) throw(IO::IOError) { SocketOption<SOL_SOCKET, SO_SNDTIMEO, int> opt(_handle); |
From: Christian P. <cp...@us...> - 2005-01-24 23:01:20
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses/Net In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4612/include/pclasses/Net Modified Files: Socket.h Log Message: Added Socket::listen(), Socket::accept(). Index: Socket.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/Net/Socket.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Socket.h 7 Jan 2005 13:39:03 -0000 1.4 +++ Socket.h 24 Jan 2005 23:00:39 -0000 1.5 @@ -69,6 +69,9 @@ void connect(const NetworkAddress& addr, port_t port) throw(IO::IOError); + void listen() throw(IO::IOError); + Socket accept() throw(IO::IOError); + void setSendTimeout(unsigned int timeout) throw(IO::IOError); unsigned int sendTimeout() const throw(IO::IOError); @@ -87,7 +90,10 @@ protected: void open(Domain domain, Type type, int proto) - throw(LogicError, IO::IOError); + throw(IO::IOError); + + void open(int handle, Domain domain, Type type, int proto) + throw(IO::IOError); void _close() throw(IO::IOError); |
From: Christian P. <cp...@us...> - 2005-01-24 22:59:35
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses/App In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3902/include/pclasses/App Modified Files: BackgroundApp.h CmdLine.h Log Message: Move background forking into BackgroundApp::daemonize(). More CmdLine work. Index: BackgroundApp.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/App/BackgroundApp.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- BackgroundApp.h 18 Jan 2005 17:50:07 -0000 1.1 +++ BackgroundApp.h 24 Jan 2005 22:58:38 -0000 1.2 @@ -24,6 +24,7 @@ #include <pclasses/Export.h> #include <pclasses/System/SystemError.h> #include <pclasses/App/SimpleApp.h> +#include <pclasses/App/CmdLine.h> namespace P { @@ -36,11 +37,19 @@ ~BackgroundApp() throw(); protected: + void setCommandLineOpts(CmdLineOption* opts[]); + void showCommandLineHelp(); + + void daemonize(); + virtual void reload(); virtual int init(int argc, char* argv[]); virtual void cleanup(); virtual void finish(); virtual void signal(int sig); + + private: + CmdLineParser _cmdLineParser; }; } // !namespace App Index: CmdLine.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/App/CmdLine.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- CmdLine.h 21 Jan 2005 09:21:07 -0000 1.5 +++ CmdLine.h 24 Jan 2005 22:58:38 -0000 1.6 @@ -38,16 +38,22 @@ virtual ~CmdLineOption(); + //! Returns the short option-name const std::string& shortName() const throw(); + //! Returns the long option-name const std::string& longName() const throw(); + //! Returns the help-text const std::string& helpText() const throw(); + //! Returns true if the option is required bool required() const throw(); + //! Returns true if the option was found bool isset() const throw(); + //! Returns true if the option needs a value bool needValue() const throw(); virtual void setValue(const std::string& val) = 0; @@ -107,6 +113,8 @@ CmdLineParser(CmdLineOption* opts[] = 0); ~CmdLineParser(); + void setOptions(CmdLineOption* opts[]); + void parse(int argc, char* argv[]) throw(CmdLineError); void parse(const std::string& cmdline) throw(CmdLineError); |
From: Christian P. <cp...@us...> - 2005-01-24 22:59:11
|
Update of /cvsroot/pclasses/pclasses2/src/App In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3902/src/App Modified Files: BackgroundApp.cpp CmdLine.cpp Log Message: Move background forking into BackgroundApp::daemonize(). More CmdLine work. Index: BackgroundApp.cpp =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/App/BackgroundApp.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- BackgroundApp.cpp 18 Jan 2005 17:50:05 -0000 1.1 +++ BackgroundApp.cpp 24 Jan 2005 22:58:39 -0000 1.2 @@ -19,8 +19,10 @@ ***************************************************************************/ #include "pclasses/App/BackgroundApp.h" +#include <iostream> #include <signal.h> + #ifndef WIN32 # include <sys/types.h> # include <sys/stat.h> @@ -32,7 +34,7 @@ namespace App { BackgroundApp::BackgroundApp(const AppDetails& details) throw() -: SimpleApp(details) +: SimpleApp(details), _cmdLineParser() { } @@ -149,6 +151,16 @@ } #endif +void BackgroundApp::setCommandLineOpts(CmdLineOption* opts[]) +{ + _cmdLineParser.setOptions(opts); +} + +void BackgroundApp::showCommandLineHelp() +{ + _cmdLineParser.dumpHelp(std::cout); +} + int BackgroundApp::init(int argc, char* argv[]) { int ret = SimpleApp::init(argc, argv); @@ -158,6 +170,21 @@ ::signal(SIGHUP, SimpleApp::signalHandler); #endif + try + { + _cmdLineParser.parse(argc, argv); + } + catch(CmdLineError& err) + { + showCommandLineHelp(); + return 1; + } + + return 0; +} + +void BackgroundApp::daemonize() +{ #ifdef WIN32 { // connect to the service controller ... @@ -187,8 +214,6 @@ dup2(nullfd, 2); } #endif - - return 0; } void BackgroundApp::cleanup() Index: CmdLine.cpp =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/App/CmdLine.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- CmdLine.cpp 21 Jan 2005 09:21:07 -0000 1.5 +++ CmdLine.cpp 24 Jan 2005 22:58:42 -0000 1.6 @@ -131,10 +131,15 @@ { } +void CmdLineParser::setOptions(CmdLineOption* opts[]) +{ + _opts = opts; +} + CmdLineOption* findOptShort(CmdLineOption* opts[], std::string& shortOpt) { int i = 0; - while(opts[i]) + while(opts && opts[i]) { if(opts[i]->shortName() == shortOpt) return opts[i]; @@ -148,7 +153,7 @@ CmdLineOption* findOptLong(CmdLineOption* opts[], std::string& longOpt) { int i = 0; - while(opts[i]) + while(opts && opts[i]) { if(opts[i]->longName() == longOpt) return opts[i]; @@ -172,6 +177,8 @@ void CmdLineParser::parse(int argc, char* argv[]) throw(CmdLineError) { _unnamedValues.clear(); + if(!_opts) + return; CmdLineOption* opt = 0; std::list<CmdLineOption*> foundOpts; |
From: Christian P. <cp...@us...> - 2005-01-24 09:57:40
|
Update of /cvsroot/pclasses/pclasses2/src/System In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2303/src/System Added Files: Directory.win32.cpp Log Message: Added win32 Directory implementation. --- NEW FILE: Directory.win32.cpp --- /*************************************************************************** * Copyright (C) 2004 by Christian Prochnow * * cp...@se... * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU Library General Public License as * * published by the Free Software Foundation; either version 2 of the * * License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU Library General Public * * License along with this program; if not, write to the * * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ #include "pclasses/System/Directory.h" #include <windows.h> namespace P { namespace System { Directory::Directory(const Unicode::String& path) throw(IO::IOError) : _path(path), _handle(INVALID_HANDLE_VALUE) { reload(); } Directory::~Directory() throw() { if(_handle != INVALID_HANDLE_VALUE) FindClose((HANDLE)_handle); } const Unicode::String& Directory::path() const throw() { return _path; } void Directory::reload() throw(IO::IOError) { _entries.clear(); WIN32_FIND_DATA findData; HANDLE h = FindFirstFile(_path.utf8().c_str(), &findData); if(h == INVALID_HANDLE_VALUE) { DWORD lastError = GetLastError(); if(lastError == ERROR_NO_MORE_FILES) return; throw SystemError(lastError, "Could not read directory", P_SOURCEINFO); } _entries.push_back(findData.cFileName); while(FindNextFile(h, &findData) != 0) { _entries.push_back(findData.cFileName); } DWORD lastError = GetLastError(); FindClose(h); if(lastError != ERROR_NO_MORE_FILES) throw SystemError(lastError, "Could not read directory", P_SOURCEINFO); } Directory::Iterator Directory::begin() const { return _entries.begin(); } Directory::Iterator Directory::end() const { return _entries.end(); } Unicode::String Directory::current() throw(IO::IOError) { size_t cwdSize = PATH_MAX; char* cwd = new char[PATH_MAX]; getCurrentDirectory: DWORD ret = GetCurrentDirectory(cwdSize, cwd); if(ret == 0) { if(ret > cwdSize) { delete[] cwd; cwdSize += cwdSize; cwd = new char[cwdSize]; goto getCurrentDirectory; } throw IO::IOError(errno, "Could not get current working directroy", P_SOURCEINFO); } return Unicode::String(cwd); } void Directory::change(const Unicode::String& path) throw(IO::IOError) { if(!SetCurrentDirectory(path.utf8().c_str())) throw IO::IOError(GetLastError(), "Could not change working directory", P_SOURCEINFO); } void Directory::create(const Unicode::String& path) throw(IO::IOError) { if(!CreateDirectory(path.utf8().c_str(), NULL)) throw IO::IOError(GetLastError(), "Could not change working directory", P_SOURCEINFO); } void Directory::remove(const Unicode::String& path) throw(IO::IOError) { if(!RemoveDirectory(path.utf8().c_str())) throw IO::IOError(GetLastError(), "Could not change working directory", P_SOURCEINFO); } } // !namespace System } // !namespace P |
From: Christian P. <cp...@us...> - 2005-01-24 09:18:45
|
Update of /cvsroot/pclasses/pclasses2/src/System In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24386/src/System Modified Files: ThreadKey.win32.cpp Log Message: Fixed includes. Index: ThreadKey.win32.cpp =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/System/ThreadKey.win32.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ThreadKey.win32.cpp 24 Jan 2005 09:15:34 -0000 1.1 +++ ThreadKey.win32.cpp 24 Jan 2005 09:18:28 -0000 1.2 @@ -19,8 +19,7 @@ ***************************************************************************/ #include "pclasses/System/ThreadKey.h" -#include <pthread.h> -#include <errno.h> +#include <windows.h> namespace P { |
From: Christian P. <cp...@us...> - 2005-01-24 09:15:46
|
Update of /cvsroot/pclasses/pclasses2/src/System In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23617/src/System Added Files: ThreadKey.win32.cpp Log Message: Added win32 implementation of ThreadKeyImpl. --- NEW FILE: ThreadKey.win32.cpp --- /*************************************************************************** * Copyright (C) 2005 by Christian Prochnow * * cp...@se... * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU Library General Public License as * * published by the Free Software Foundation; either version 2 of the * * License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU Library General Public * * License along with this program; if not, write to the * * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ #include "pclasses/System/ThreadKey.h" #include <pthread.h> #include <errno.h> namespace P { namespace System { ThreadKeyImpl::ThreadKeyImpl() throw(SystemError) { DWORD handle = TlsAlloc(); if(handle == TLS_OUT_OF_INDEXES) throw SystemError(GetLastError(), "Could not create thread-key", P_SOURCEINFO); _handle = handle; } ThreadKeyImpl::~ThreadKeyImpl() throw() { TlsFree(_handle); } void ThreadKeyImpl::set(void* ptr) throw(SystemError) { if(!TlsSetValue(_handle, ptr)) throw SystemError(GetLastError(), "Could not set thread-key", P_SOURCEINFO); } void* ThreadKeyImpl::get() const throw(SystemError) { return TlsGetValue(_handle); } } // !namespace System } // !namespace P |
From: Christian P. <cp...@us...> - 2005-01-24 09:15:10
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses/System In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23444/include/pclasses/System Modified Files: ThreadKey.h Log Message: Fixed throw specifiers. Index: ThreadKey.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/System/ThreadKey.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- ThreadKey.h 24 Jan 2005 01:19:25 -0000 1.3 +++ ThreadKey.h 24 Jan 2005 09:14:56 -0000 1.4 @@ -39,8 +39,8 @@ ThreadKeyImpl() throw(SystemError); ~ThreadKeyImpl() throw(); - void set(void* ptr) throw(); - void* get() const throw(); + void set(void* ptr) throw(SystemError); + void* get() const throw(SystemError); private: unsigned long _handle; @@ -61,19 +61,19 @@ inline ~ThreadKey() throw() {} - inline ThreadKey& operator=(const ThreadKey& k) throw() + inline ThreadKey& operator=(const ThreadKey& k) throw(SystemError) { set(k.get()); return *this; } - inline ThreadKey& operator=(Type* val) throw() + inline ThreadKey& operator=(Type* val) throw(SystemError) { set(static_cast<void*>(val)); return *this; } - inline operator Type* () throw() + inline operator Type* () throw(SystemError) { return (Type*)get(); } }; |
From: Christian P. <cp...@us...> - 2005-01-24 09:15:10
|
Update of /cvsroot/pclasses/pclasses2/src/System In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23444/src/System Modified Files: ThreadKey.posix.cpp Log Message: Fixed throw specifiers. Index: ThreadKey.posix.cpp =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/System/ThreadKey.posix.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- ThreadKey.posix.cpp 16 Jan 2005 01:57:17 -0000 1.2 +++ ThreadKey.posix.cpp 24 Jan 2005 09:14:58 -0000 1.3 @@ -41,12 +41,12 @@ pthread_key_delete(_handle); } -void ThreadKeyImpl::set(void* ptr) throw() +void ThreadKeyImpl::set(void* ptr) throw(SystemError) { pthread_setspecific(_handle, ptr); } -void* ThreadKeyImpl::get() const throw() +void* ThreadKeyImpl::get() const throw(SystemError) { return pthread_getspecific(_handle); } |
From: Christian P. <cp...@us...> - 2005-01-24 01:34:14
|
Update of /cvsroot/pclasses/pclasses2/win32 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11699/win32 Added Files: pclasses2.sln Log Message: Added .NET 2003 project workspace. --- NEW FILE: pclasses2.sln --- Microsoft Visual Studio Solution File, Format Version 8.00 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Core", "Core.vcproj", "{E0F177DB-E6FE-42E5-9FB8-EE270A4CDB6D}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "IO", "IO.vcproj", "{A88F6DFD-7912-4761-9F4B-CBA99EA807B0}" ProjectSection(ProjectDependencies) = postProject {5DAAFA1F-89F8-4C36-8D31-C4A780D24168} = {5DAAFA1F-89F8-4C36-8D31-C4A780D24168} {E0F177DB-E6FE-42E5-9FB8-EE270A4CDB6D} = {E0F177DB-E6FE-42E5-9FB8-EE270A4CDB6D} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Unicode", "Unicode.vcproj", "{5DAAFA1F-89F8-4C36-8D31-C4A780D24168}" ProjectSection(ProjectDependencies) = postProject {E0F177DB-E6FE-42E5-9FB8-EE270A4CDB6D} = {E0F177DB-E6FE-42E5-9FB8-EE270A4CDB6D} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "System", "System.vcproj", "{9F844A7D-89A4-49DD-8EA6-971E9639882A}" ProjectSection(ProjectDependencies) = postProject {5DAAFA1F-89F8-4C36-8D31-C4A780D24168} = {5DAAFA1F-89F8-4C36-8D31-C4A780D24168} {E0F177DB-E6FE-42E5-9FB8-EE270A4CDB6D} = {E0F177DB-E6FE-42E5-9FB8-EE270A4CDB6D} {A88F6DFD-7912-4761-9F4B-CBA99EA807B0} = {A88F6DFD-7912-4761-9F4B-CBA99EA807B0} EndProjectSection EndProject Global GlobalSection(SolutionConfiguration) = preSolution Debug = Debug Release = Release EndGlobalSection GlobalSection(ProjectConfiguration) = postSolution {E0F177DB-E6FE-42E5-9FB8-EE270A4CDB6D}.Debug.ActiveCfg = Debug|Win32 {E0F177DB-E6FE-42E5-9FB8-EE270A4CDB6D}.Debug.Build.0 = Debug|Win32 {E0F177DB-E6FE-42E5-9FB8-EE270A4CDB6D}.Release.ActiveCfg = Release|Win32 {E0F177DB-E6FE-42E5-9FB8-EE270A4CDB6D}.Release.Build.0 = Release|Win32 {A88F6DFD-7912-4761-9F4B-CBA99EA807B0}.Debug.ActiveCfg = Debug|Win32 {A88F6DFD-7912-4761-9F4B-CBA99EA807B0}.Debug.Build.0 = Debug|Win32 {A88F6DFD-7912-4761-9F4B-CBA99EA807B0}.Release.ActiveCfg = Release|Win32 {A88F6DFD-7912-4761-9F4B-CBA99EA807B0}.Release.Build.0 = Release|Win32 {5DAAFA1F-89F8-4C36-8D31-C4A780D24168}.Debug.ActiveCfg = Debug|Win32 {5DAAFA1F-89F8-4C36-8D31-C4A780D24168}.Debug.Build.0 = Debug|Win32 {5DAAFA1F-89F8-4C36-8D31-C4A780D24168}.Release.ActiveCfg = Release|Win32 {5DAAFA1F-89F8-4C36-8D31-C4A780D24168}.Release.Build.0 = Release|Win32 {9F844A7D-89A4-49DD-8EA6-971E9639882A}.Debug.ActiveCfg = Debug|Win32 {9F844A7D-89A4-49DD-8EA6-971E9639882A}.Debug.Build.0 = Debug|Win32 {9F844A7D-89A4-49DD-8EA6-971E9639882A}.Release.ActiveCfg = Release|Win32 {9F844A7D-89A4-49DD-8EA6-971E9639882A}.Release.Build.0 = Release|Win32 EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution EndGlobalSection GlobalSection(ExtensibilityAddIns) = postSolution EndGlobalSection EndGlobal |
From: Christian P. <cp...@us...> - 2005-01-24 01:33:41
|
Update of /cvsroot/pclasses/pclasses2/win32 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11500/win32 Added Files: Core.vcproj IO.vcproj System.vcproj Unicode.vcproj Log Message: Added win32 (Visual Studio .NET 2003) project files. --- NEW FILE: System.vcproj --- <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" Version="7.10" Name="System" ProjectGUID="{9F844A7D-89A4-49DD-8EA6-971E9639882A}" Keyword="Win32Proj"> <Platforms> <Platform Name="Win32"/> </Platforms> <Configurations> <Configuration Name="Debug|Win32" OutputDirectory="Debug" IntermediateDirectory="Debug" ConfigurationType="2" CharacterSet="2"> <Tool Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="./include;../include" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;PSYSTEM_BUILD" MinimalRebuild="TRUE" BasicRuntimeChecks="3" RuntimeLibrary="1" UsePrecompiledHeader="0" WarningLevel="3" Detect64BitPortabilityProblems="TRUE" DebugInformationFormat="4" DisableSpecificWarnings="4251;4290"/> <Tool Name="VCCustomBuildTool"/> <Tool Name="VCLinkerTool" AdditionalDependencies="$(OutDir)/pclasses_core.lib $(OutDir)/pclasses_unicode.lib $(OutDir)/pclasses_io.lib" OutputFile="$(OutDir)/pcore_system.dll" LinkIncremental="2" GenerateDebugInformation="TRUE" ProgramDatabaseFile="$(OutDir)/System.pdb" SubSystem="2" ImportLibrary="$(OutDir)/pclasses_system.lib" TargetMachine="1"/> <Tool Name="VCMIDLTool"/> <Tool Name="VCPostBuildEventTool"/> <Tool Name="VCPreBuildEventTool"/> <Tool Name="VCPreLinkEventTool"/> <Tool Name="VCResourceCompilerTool"/> <Tool Name="VCWebServiceProxyGeneratorTool"/> <Tool Name="VCXMLDataGeneratorTool"/> <Tool Name="VCWebDeploymentTool"/> <Tool Name="VCManagedWrapperGeneratorTool"/> <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> </Configuration> <Configuration Name="Release|Win32" OutputDirectory="Release" IntermediateDirectory="Release" ConfigurationType="2" CharacterSet="2"> <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="./include;../include" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;PSYSTEM_BUILD" RuntimeLibrary="0" UsePrecompiledHeader="0" WarningLevel="3" Detect64BitPortabilityProblems="TRUE" DebugInformationFormat="3" DisableSpecificWarnings="4251;4290"/> <Tool Name="VCCustomBuildTool"/> <Tool Name="VCLinkerTool" AdditionalDependencies="$(OutDir)/pclasses_core.lib $(OutDir)/pclasses_unicode.lib $(OutDir)/pclasses_io.lib" OutputFile="$(OutDir)/pcore_system.dll" LinkIncremental="1" GenerateDebugInformation="TRUE" SubSystem="2" OptimizeReferences="2" EnableCOMDATFolding="2" ImportLibrary="$(OutDir)/pclasses_system.lib" TargetMachine="1"/> <Tool Name="VCMIDLTool"/> <Tool Name="VCPostBuildEventTool"/> <Tool Name="VCPreBuildEventTool"/> <Tool Name="VCPreLinkEventTool"/> <Tool Name="VCResourceCompilerTool"/> <Tool Name="VCWebServiceProxyGeneratorTool"/> <Tool Name="VCXMLDataGeneratorTool"/> <Tool Name="VCWebDeploymentTool"/> <Tool Name="VCManagedWrapperGeneratorTool"/> <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> </Configuration> </Configurations> <References> </References> <Files> <Filter Name="Quelldateien" Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx" UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"> <File RelativePath="..\src\System\Condition.win32.cpp"> </File> <File RelativePath="..\src\System\CriticalSection.cpp"> </File> <File RelativePath="..\src\System\CriticalSection.win32.cpp"> </File> <File RelativePath="..\src\System\FileInfo.common.cpp"> </File> <File RelativePath="..\src\System\Mutex.win32.cpp"> </File> <File RelativePath="..\src\System\PathFinder.cpp"> </File> <File RelativePath="..\src\System\Process.common.cpp"> </File> <File RelativePath="..\src\System\ProcessIO.cpp"> </File> <File RelativePath="..\src\System\Semaphore.win32.cpp"> </File> <File RelativePath="..\src\System\SharedLib.common.cpp"> </File> <File RelativePath="..\src\System\SharedLib.win32.cpp"> </File> <File RelativePath="..\src\System\SystemClock.win32.cpp"> </File> <File RelativePath="..\src\System\SystemError.cpp"> </File> <File RelativePath="..\src\System\ThreadKey.win32.cpp"> </File> <File RelativePath="..\src\System\timeout.cpp"> </File> </Filter> <Filter Name="Headerdateien" Filter="h;hpp;hxx;hm;inl;inc;xsd" UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"> <File RelativePath="..\include\pclasses\System\Condition.h"> </File> <File RelativePath="..\include\pclasses\System\CriticalSection.h"> </File> <File RelativePath="..\include\pclasses\System\Directory.h"> </File> <File RelativePath="..\include\pclasses\System\File.h"> </File> <File RelativePath="..\include\pclasses\System\FileInfo.h"> </File> <File RelativePath="..\include\pclasses\System\Mime.h"> </File> <File RelativePath="..\include\pclasses\System\Mutex.h"> </File> <File RelativePath="..\include\pclasses\System\PathFinder.h"> </File> <File RelativePath="..\include\pclasses\System\Pipe.h"> </File> <File RelativePath="..\include\pclasses\System\Process.h"> </File> <File RelativePath="..\include\pclasses\System\ProcessIO.h"> </File> <File RelativePath="..\include\pclasses\System\Semaphore.h"> </File> <File RelativePath="..\include\pclasses\System\SharedLib.h"> </File> <File RelativePath="..\src\System\SharedLibCache.h"> </File> <File RelativePath="..\include\pclasses\System\SharedMemory.h"> </File> <File RelativePath="..\include\pclasses\System\SystemClock.h"> </File> <File RelativePath="..\include\pclasses\System\SystemError.h"> </File> <File RelativePath="..\include\pclasses\System\Thread.h"> </File> <File RelativePath="..\include\pclasses\System\ThreadKey.h"> </File> <File RelativePath="..\src\System\timeout.h"> </File> </Filter> <Filter Name="Ressourcendateien" Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx" UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"> </Filter> </Files> <Globals> </Globals> </VisualStudioProject> --- NEW FILE: IO.vcproj --- <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" Version="7.10" Name="IO" ProjectGUID="{A88F6DFD-7912-4761-9F4B-CBA99EA807B0}" Keyword="Win32Proj"> <Platforms> <Platform Name="Win32"/> </Platforms> <Configurations> <Configuration Name="Debug|Win32" OutputDirectory="Debug" IntermediateDirectory="Debug" ConfigurationType="2" CharacterSet="2"> <Tool Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="./include;../include" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;PIO_BUILD" MinimalRebuild="TRUE" BasicRuntimeChecks="3" RuntimeLibrary="1" UsePrecompiledHeader="0" WarningLevel="3" Detect64BitPortabilityProblems="TRUE" DebugInformationFormat="4" DisableSpecificWarnings="4251;4290"/> <Tool Name="VCCustomBuildTool"/> <Tool Name="VCLinkerTool" AdditionalDependencies="$(OutDir)/pclasses_core.lib zdll.lib libbz2.lib" OutputFile="$(OutDir)/pclasses_io.dll" LinkIncremental="2" GenerateDebugInformation="TRUE" ProgramDatabaseFile="$(OutDir)/IO.pdb" SubSystem="2" ImportLibrary="$(OutDir)/pclasses_io.lib" TargetMachine="1"/> <Tool Name="VCMIDLTool"/> <Tool Name="VCPostBuildEventTool"/> <Tool Name="VCPreBuildEventTool"/> <Tool Name="VCPreLinkEventTool"/> <Tool Name="VCResourceCompilerTool"/> <Tool Name="VCWebServiceProxyGeneratorTool"/> <Tool Name="VCXMLDataGeneratorTool"/> <Tool Name="VCWebDeploymentTool"/> <Tool Name="VCManagedWrapperGeneratorTool"/> <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> </Configuration> <Configuration Name="Release|Win32" OutputDirectory="Release" IntermediateDirectory="Release" ConfigurationType="2" CharacterSet="2"> <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="./include;../include" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;IO_EXPORTS" RuntimeLibrary="0" UsePrecompiledHeader="0" WarningLevel="3" Detect64BitPortabilityProblems="TRUE" DebugInformationFormat="3" DisableSpecificWarnings="4251;4290"/> <Tool Name="VCCustomBuildTool"/> <Tool Name="VCLinkerTool" AdditionalDependencies="$(OutDir)/pclasses_core.lib zdll.lib libbz2.lib" OutputFile="$(OutDir)/pclasses_io.dll" LinkIncremental="1" GenerateDebugInformation="TRUE" SubSystem="2" OptimizeReferences="2" EnableCOMDATFolding="2" ImportLibrary="$(OutDir)/pclasses_io.lib" TargetMachine="1"/> <Tool Name="VCMIDLTool"/> <Tool Name="VCPostBuildEventTool"/> <Tool Name="VCPreBuildEventTool"/> <Tool Name="VCPreLinkEventTool"/> <Tool Name="VCResourceCompilerTool"/> <Tool Name="VCWebServiceProxyGeneratorTool"/> <Tool Name="VCXMLDataGeneratorTool"/> <Tool Name="VCWebDeploymentTool"/> <Tool Name="VCManagedWrapperGeneratorTool"/> <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> </Configuration> </Configurations> <References> </References> <Files> <Filter Name="Quelldateien" Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx" UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"> <File RelativePath="..\src\Io\BZip2.cpp"> </File> <File RelativePath="..\src\Io\BZip2IOFilter.cpp"> </File> <File RelativePath="..\src\Io\IODevice.cpp"> </File> <File RelativePath="..\src\Io\IOError.cpp"> </File> <File RelativePath="..\src\Io\IOFilter.cpp"> </File> <File RelativePath="..\src\Io\IOStream.cpp"> </File> <File RelativePath="..\src\Io\StringDevice.cpp"> </File> <File RelativePath="..\src\Io\URL.cpp"> </File> <File RelativePath="..\src\Io\ZLib.cpp"> </File> <File RelativePath="..\src\Io\ZLibIOFilter.cpp"> </File> </Filter> <Filter Name="Headerdateien" Filter="h;hpp;hxx;hm;inl;inc;xsd" UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"> <File RelativePath="..\include\pclasses\Io\BZip2.h"> </File> <File RelativePath="..\include\pclasses\Io\BZip2IOFilter.h"> </File> <File RelativePath="..\include\pclasses\Io\IODevice.h"> </File> <File RelativePath="..\include\pclasses\Io\IOError.h"> </File> <File RelativePath="..\include\pclasses\Io\IOFilter.h"> </File> <File RelativePath="..\include\pclasses\Io\IOManager.h"> </File> <File RelativePath="..\include\pclasses\Io\IOStream.h"> </File> <File RelativePath="..\include\pclasses\Io\StringDevice.h"> </File> <File RelativePath="..\include\pclasses\Io\URL.h"> </File> <File RelativePath="..\include\pclasses\Io\ZLib.h"> </File> <File RelativePath="..\include\pclasses\Io\ZLibIOFilter.h"> </File> </Filter> <Filter Name="Ressourcendateien" Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx" UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"> </Filter> </Files> <Globals> </Globals> </VisualStudioProject> --- NEW FILE: Core.vcproj --- <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" Version="7.10" Name="Core" ProjectGUID="{E0F177DB-E6FE-42E5-9FB8-EE270A4CDB6D}" Keyword="Win32Proj"> <Platforms> <Platform Name="Win32"/> </Platforms> <Configurations> <Configuration Name="Debug|Win32" OutputDirectory="Debug" IntermediateDirectory="Debug" ConfigurationType="2" CharacterSet="2"> <Tool Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="./include;../include" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;PCORE_BUILD" MinimalRebuild="TRUE" BasicRuntimeChecks="3" RuntimeLibrary="1" UsePrecompiledHeader="0" WarningLevel="3" Detect64BitPortabilityProblems="TRUE" DebugInformationFormat="4" DisableSpecificWarnings="4251;4290"/> <Tool Name="VCCustomBuildTool"/> <Tool Name="VCLinkerTool" OutputFile="$(OutDir)/pclasses_core.dll" LinkIncremental="2" GenerateDebugInformation="TRUE" ProgramDatabaseFile="$(OutDir)/Core.pdb" SubSystem="2" ImportLibrary="$(OutDir)/pclasses_core.lib" TargetMachine="1"/> <Tool Name="VCMIDLTool"/> <Tool Name="VCPostBuildEventTool"/> <Tool Name="VCPreBuildEventTool"/> <Tool Name="VCPreLinkEventTool"/> <Tool Name="VCResourceCompilerTool"/> <Tool Name="VCWebServiceProxyGeneratorTool"/> <Tool Name="VCXMLDataGeneratorTool"/> <Tool Name="VCWebDeploymentTool"/> <Tool Name="VCManagedWrapperGeneratorTool"/> <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> </Configuration> <Configuration Name="Release|Win32" OutputDirectory="Release" IntermediateDirectory="Release" ConfigurationType="2" CharacterSet="2"> <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="./include;../include" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;PCORE_BUILD" RuntimeLibrary="0" UsePrecompiledHeader="0" WarningLevel="3" Detect64BitPortabilityProblems="TRUE" DebugInformationFormat="3" DisableSpecificWarnings="4251;4290"/> <Tool Name="VCCustomBuildTool"/> <Tool Name="VCLinkerTool" OutputFile="$(OutDir)/pclasses_core.dll" LinkIncremental="1" GenerateDebugInformation="TRUE" SubSystem="2" OptimizeReferences="2" EnableCOMDATFolding="2" ImportLibrary="$(OutDir)/pclasses_core.lib" TargetMachine="1"/> <Tool Name="VCMIDLTool"/> <Tool Name="VCPostBuildEventTool"/> <Tool Name="VCPreBuildEventTool"/> <Tool Name="VCPreLinkEventTool"/> <Tool Name="VCResourceCompilerTool"/> <Tool Name="VCWebServiceProxyGeneratorTool"/> <Tool Name="VCXMLDataGeneratorTool"/> <Tool Name="VCWebDeploymentTool"/> <Tool Name="VCManagedWrapperGeneratorTool"/> <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> </Configuration> </Configurations> <References> </References> <Files> <Filter Name="Quelldateien" Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx" UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"> <File RelativePath="..\src\Alloc.cpp"> </File> <File RelativePath="..\src\AtomicInt.win32.cpp"> </File> <File RelativePath="..\src\ByteOrderTraits.cpp"> </File> <File RelativePath="..\src\Date.cpp"> </File> <File RelativePath="..\src\DateTime.cpp"> </File> <File RelativePath="..\src\Exception.cpp"> </File> <File RelativePath="..\src\LinkedItem.cpp"> </File> <File RelativePath="..\src\Time.cpp"> </File> <File RelativePath="..\src\TimeSpan.cpp"> </File> <File RelativePath="..\src\Trace.cpp"> </File> </Filter> <Filter Name="Headerdateien" Filter="h;hpp;hxx;hm;inl;inc;xsd" UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"> <File RelativePath="..\include\pclasses\Algorithm.h"> </File> <File RelativePath="..\include\pclasses\Alloc.h"> </File> <File RelativePath="..\include\pclasses\Atomic.h"> </File> <File RelativePath="..\include\pclasses\AtomicTraits.h"> </File> <File RelativePath="..\include\pclasses\BasicTypes.h"> </File> <File RelativePath="..\include\pclasses\ByteOrderTraits.h"> </File> <File RelativePath="..\include\pclasses\Callback.h"> </File> <File RelativePath="..\include\pclasses\CircularQueue.h"> </File> <File RelativePath="..\include\pclasses\Date.h"> </File> <File RelativePath="..\include\pclasses\DateTime.h"> </File> <File RelativePath="..\include\pclasses\Exception.h"> </File> <File RelativePath="..\include\pclasses\Export.h"> </File> <File RelativePath="..\include\pclasses\Factory.h"> </File> <File RelativePath="..\include\pclasses\FactoryReg.h"> </File> <File RelativePath="..\include\pclasses\IntrusivePtr.h"> </File> <File RelativePath="..\include\pclasses\IntTypeLimits.h"> </File> <File RelativePath="..\include\pclasses\IntTypes.h"> </File> <File RelativePath="..\include\pclasses\LinkedItem.h"> </File> <File RelativePath="..\include\pclasses\List.h"> </File> <File RelativePath="..\include\pclasses\LockTraits.h"> </File> <File RelativePath="..\include\pclasses\NonCopyable.h"> </File> <File RelativePath="..\include\pclasses\Pair.h"> </File> <File RelativePath=".\include\pclasses\pclasses-config.h"> </File> <File RelativePath="..\include\pclasses\Phoenix.h"> </File> <File RelativePath="..\include\pclasses\PropertyMap.h"> </File> <File RelativePath="..\include\pclasses\Queue.h"> </File> <File RelativePath="..\include\pclasses\ScopedArrayPtr.h"> </File> <File RelativePath="..\include\pclasses\ScopedPtr.h"> </File> <File RelativePath="..\include\pclasses\SharedPtr.h"> </File> <File RelativePath="..\include\pclasses\SharingContext.h"> </File> <File RelativePath="..\include\pclasses\Signal.h"> </File> <File RelativePath="..\include\pclasses\SourceInfo.h"> </File> <File RelativePath="..\include\pclasses\Stack.h"> </File> <File RelativePath="..\include\pclasses\Time.h"> </File> <File RelativePath="..\include\pclasses\TimeSpan.h"> </File> <File RelativePath="..\include\pclasses\Trace.h"> </File> <File RelativePath="..\include\pclasses\TypeTraits.h"> </File> <File RelativePath="..\include\pclasses\ValueType.h"> </File> <File RelativePath="..\include\pclasses\Vector.h"> </File> </Filter> <Filter Name="Ressourcendateien" Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx" UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"> </Filter> </Files> <Globals> </Globals> </VisualStudioProject> --- NEW FILE: Unicode.vcproj --- <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" Version="7.10" Name="Unicode" ProjectGUID="{5DAAFA1F-89F8-4C36-8D31-C4A780D24168}" Keyword="Win32Proj"> <Platforms> <Platform Name="Win32"/> </Platforms> <Configurations> <Configuration Name="Debug|Win32" OutputDirectory="Debug" IntermediateDirectory="Debug" ConfigurationType="2" CharacterSet="2"> <Tool Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="./include;../include;../src/Unicode" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;PUNICODE_BUILD" MinimalRebuild="TRUE" BasicRuntimeChecks="3" RuntimeLibrary="1" UsePrecompiledHeader="0" WarningLevel="3" Detect64BitPortabilityProblems="TRUE" DebugInformationFormat="4" DisableSpecificWarnings="4251;4290"/> <Tool Name="VCCustomBuildTool"/> <Tool Name="VCLinkerTool" AdditionalDependencies="$(OutDir)/pclasses_core.lib" OutputFile="$(OutDir)/pclasses_unicode.dll" LinkIncremental="2" GenerateDebugInformation="TRUE" ProgramDatabaseFile="$(OutDir)/Unicode.pdb" SubSystem="2" ImportLibrary="$(OutDir)/pclasses_unicode.lib" TargetMachine="1"/> <Tool Name="VCMIDLTool"/> <Tool Name="VCPostBuildEventTool"/> <Tool Name="VCPreBuildEventTool"/> <Tool Name="VCPreLinkEventTool"/> <Tool Name="VCResourceCompilerTool"/> <Tool Name="VCWebServiceProxyGeneratorTool"/> <Tool Name="VCXMLDataGeneratorTool"/> <Tool Name="VCWebDeploymentTool"/> <Tool Name="VCManagedWrapperGeneratorTool"/> <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> </Configuration> <Configuration Name="Release|Win32" OutputDirectory="Release" IntermediateDirectory="Release" ConfigurationType="2" CharacterSet="2"> <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="./include;../include;../src/Unicode" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;PUNICODE_BUILD" RuntimeLibrary="0" UsePrecompiledHeader="0" WarningLevel="3" Detect64BitPortabilityProblems="TRUE" DebugInformationFormat="3" DisableSpecificWarnings="4251;4290"/> <Tool Name="VCCustomBuildTool"/> <Tool Name="VCLinkerTool" AdditionalDependencies="$(OutDir)/pclasses_core.lib" OutputFile="$(OutDir)/pclasses_unicode.dll" LinkIncremental="1" GenerateDebugInformation="TRUE" SubSystem="2" OptimizeReferences="2" EnableCOMDATFolding="2" ImportLibrary="$(OutDir)/pclasses_unicode.lib" TargetMachine="1"/> <Tool Name="VCMIDLTool"/> <Tool Name="VCPostBuildEventTool"/> <Tool Name="VCPreBuildEventTool"/> <Tool Name="VCPreLinkEventTool"/> <Tool Name="VCResourceCompilerTool"/> <Tool Name="VCWebServiceProxyGeneratorTool"/> <Tool Name="VCXMLDataGeneratorTool"/> <Tool Name="VCWebDeploymentTool"/> <Tool Name="VCManagedWrapperGeneratorTool"/> <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> </Configuration> </Configurations> <References> </References> <Files> <Filter Name="Quelldateien" Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx" UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"> <File RelativePath="..\src\Unicode\Char.cpp"> </File> <File RelativePath="..\src\Unicode\String.cpp"> </File> <File RelativePath="..\src\Unicode\TextStream.cpp"> </File> <File RelativePath="..\src\Unicode\uctype.cpp"> </File> <File RelativePath="..\src\Unicode\unicodedata.cpp"> </File> <File RelativePath="..\src\Unicode\ustring.cpp"> </File> </Filter> <Filter Name="Headerdateien" Filter="h;hpp;hxx;hm;inl;inc;xsd" UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"> <File RelativePath="..\include\pclasses\Unicode\Char.h"> </File> <File RelativePath="..\include\pclasses\Unicode\String.h"> </File> <File RelativePath="..\include\pclasses\Unicode\TextStream.h"> </File> <File RelativePath="..\include\pclasses\Unicode\uctype.h"> </File> <File RelativePath="..\src\Unicode\unicodedata.h"> </File> <File RelativePath="..\src\Unicode\unicodedata_db.h"> </File> <File RelativePath="..\src\Unicode\unicodedata_extra_db.h"> </File> <File RelativePath="..\include\pclasses\Unicode\ustring.h"> </File> </Filter> <Filter Name="Ressourcendateien" Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx" UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"> </Filter> </Files> <Globals> </Globals> </VisualStudioProject> |
From: Christian P. <cp...@us...> - 2005-01-24 01:33:41
|
Update of /cvsroot/pclasses/pclasses2/win32/include/pclasses In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11500/win32/include/pclasses Added Files: pclasses-config.h Log Message: Added win32 (Visual Studio .NET 2003) project files. --- NEW FILE: pclasses-config.h --- #define PCLASSES_SIZEOF_SHORT 2 #define PCLASSES_SIZEOF_INT 4 #define PCLASSES_SIZEOF_LONG 4 #define PCLASSES_SIZEOF__INT64 8 |
From: Christian P. <cp...@us...> - 2005-01-24 01:33:09
|
Update of /cvsroot/pclasses/pclasses2/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11354/src Added Files: AtomicInt.win32.cpp Log Message: Added win32 implementation of AtomicInt --- NEW FILE: AtomicInt.win32.cpp --- /*************************************************************************** * Copyright (C) 2004 by Christian Prochnow * * cp...@fr... * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU Library General Public License as * * published by the Free Software Foundation; either version 2 of the * * License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU Library General Public * * License along with this program; if not, write to the * * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ #include "pclasses/AtomicTraits.h" #include <windows.h> namespace P { namespace Traits { void AtomicTraits<int>::set(int* atomic, int val) throw() { *atomic = val; } int AtomicTraits<int>::get(const int* val) throw() { return *val; } void AtomicTraits<int>::inc(int* val) throw() { InterlockedIncrement((volatile LONG*)val); } bool AtomicTraits<int>::incAndTest(int* val) throw() { return InterlockedIncrement((volatile LONG*)val) == 0 ? true : false; } void AtomicTraits<int>::dec(int* val) throw() { InterlockedDecrement((volatile LONG*)val); } bool AtomicTraits<int>::decAndTest(int* val) throw() { return InterlockedDecrement((volatile LONG*)val) == 0 ? true : false; } } // !namespace Traits } // !namespace P |
From: Christian P. <cp...@us...> - 2005-01-24 01:31:40
|
Update of /cvsroot/pclasses/pclasses2/win32/include/pclasses In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10878/win32/include/pclasses Log Message: Directory /cvsroot/pclasses/pclasses2/win32/include/pclasses added to the repository |
From: Christian P. <cp...@us...> - 2005-01-24 01:31:03
|
Update of /cvsroot/pclasses/pclasses2/win32/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10654/win32/include Log Message: Directory /cvsroot/pclasses/pclasses2/win32/include added to the repository |
From: Christian P. <cp...@us...> - 2005-01-24 01:30:47
|
Update of /cvsroot/pclasses/pclasses2/win32 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10597/win32 Log Message: Directory /cvsroot/pclasses/pclasses2/win32 added to the repository |
From: Christian P. <cp...@us...> - 2005-01-24 01:24:42
|
Update of /cvsroot/pclasses/pclasses2/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9154/test Modified Files: IntTypeTest.cpp Log Message: Fixed IntTypeTest. Index: IntTypeTest.cpp =================================================================== RCS file: /cvsroot/pclasses/pclasses2/test/IntTypeTest.cpp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- IntTypeTest.cpp 22 Dec 2004 17:54:37 -0000 1.1.1.1 +++ IntTypeTest.cpp 24 Jan 2005 01:24:33 -0000 1.2 @@ -29,10 +29,10 @@ public: void run() throw() { - UInt32 ui32(UInt32::Max); - Int32 i32(Int32::Max); + UInt32 ui32(UInt32::min()); + Int32 i32(Int32::max()); - P_TEST(ui32 == UInt32::Max); + P_TEST(ui32 == UInt32::max()); P_TEST(0 < ui32); P_TEST(0.0f < ui32); P_TEST(ui32 > 0); |
From: Christian P. <cp...@us...> - 2005-01-24 01:23:47
|
Update of /cvsroot/pclasses/pclasses2/src/System In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8954/src/System Modified Files: SharedLib.dl.cpp Log Message: Fixed unicode-string ctor. Index: SharedLib.dl.cpp =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/System/SharedLib.dl.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- SharedLib.dl.cpp 26 Dec 2004 14:38:05 -0000 1.9 +++ SharedLib.dl.cpp 24 Jan 2005 01:23:32 -0000 1.10 @@ -66,13 +66,24 @@ SharedLib::SharedLib(const Unicode::String& name, BindMode mode) throw(SystemError) { -// Please don't do this: -// Unicode::String realName = name; -// realName.append(".so"); + Cache& cache = shared_lib_cache<unsigned long, SharedLibCloser>(); + CriticalSection::ScopedLock lck(cache.mutex); - //@fixme _handle = (unsigned long)dlopen(realName.utf8(), BindMode2Flags(mode)); - if(!_handle) - throw SystemError(errno, dlerror(), P_SOURCEINFO); + // see if we can get it from the handle cache ... + Cache::iterator i = cache.lookup(name.utf8()); + if(i == cache.end()) + { + _handle = (unsigned long)dlopen(name.utf8().c_str(), BindMode2Flags(mode)); + if(!_handle) + throw SystemError(errno, dlerror(), P_SOURCEINFO); + + // add it to the handle cache + cache.add(name.utf8(), _handle); + } + else + { + _handle = i->second; + } } SharedLib::SharedLib(const std::string& name, BindMode mode) throw(SystemError) |
From: Christian P. <cp...@us...> - 2005-01-24 01:23:08
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8763/include/pclasses Modified Files: Time.h Log Message: Fixed throw-specifiers. Index: Time.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/Time.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Time.h 20 Jan 2005 22:49:40 -0000 1.4 +++ Time.h 24 Jan 2005 01:22:56 -0000 1.5 @@ -66,11 +66,11 @@ Time& operator=(const Time& t) throw(); - Time& operator+=(const TimeSpan& sp) throw(); - Time& operator-=(const TimeSpan& sp) throw(); + Time& operator+=(const TimeSpan& sp) throw(OverflowError); + Time& operator-=(const TimeSpan& sp) throw(OverflowError); - friend PCORE_EXPORT Time operator+(const Time& t, const TimeSpan& sp) throw(); - friend PCORE_EXPORT Time operator-(const Time& t, const TimeSpan& sp) throw(); + friend PCORE_EXPORT Time operator+(const Time& t, const TimeSpan& sp) throw(OverflowError); + friend PCORE_EXPORT Time operator-(const Time& t, const TimeSpan& sp) throw(OverflowError); friend PCORE_EXPORT std::ostream& operator << (std::ostream& os, const Time& t); |
From: Christian P. <cp...@us...> - 2005-01-24 01:23:07
|
Update of /cvsroot/pclasses/pclasses2/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8763/src Modified Files: Time.cpp Log Message: Fixed throw-specifiers. Index: Time.cpp =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/Time.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- Time.cpp 19 Jan 2005 18:48:39 -0000 1.3 +++ Time.cpp 24 Jan 2005 01:22:56 -0000 1.4 @@ -140,7 +140,7 @@ return (!operator==(t)); } -Time& Time::operator+=(const TimeSpan& sp) throw() +Time& Time::operator+=(const TimeSpan& sp) throw(OverflowError) { _usec += sp.usecs(); if ( _usec > (1000 * 1000) - 1 ) @@ -169,7 +169,7 @@ return *this; } -Time& Time::operator-=(const TimeSpan& sp) throw() +Time& Time::operator-=(const TimeSpan& sp) throw(OverflowError) { if ( _usec < sp.usecs() ) { @@ -200,14 +200,14 @@ return *this; } -Time operator+(const Time& t, const TimeSpan& sp) throw() +Time operator+(const Time& t, const TimeSpan& sp) throw(OverflowError) { Time ret = t; ret += sp; return ret; } -Time operator-(const Time& t, const TimeSpan& sp) throw() +Time operator-(const Time& t, const TimeSpan& sp) throw(OverflowError) { Time ret = t; ret -= sp; |
From: Christian P. <cp...@us...> - 2005-01-24 01:22:46
|
Update of /cvsroot/pclasses/pclasses2/src/System In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8680/src/System Modified Files: Semaphore.win32.cpp Log Message: Compile-fix for win32. Index: Semaphore.win32.cpp =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/System/Semaphore.win32.cpp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- Semaphore.win32.cpp 22 Dec 2004 17:54:36 -0000 1.1.1.1 +++ Semaphore.win32.cpp 24 Jan 2005 01:22:32 -0000 1.2 @@ -25,6 +25,8 @@ namespace P { +namespace System { + struct Semaphore::Handle { HANDLE handle; }; @@ -37,7 +39,7 @@ switch(mode) { case CreateFail: - //racy but not possible otherwise + //@fixme racy but not possible otherwise handle = OpenSemaphore(SEMAPHORE_ALL_ACCESS, TRUE, name); if(handle != INVALID_HANDLE_VALUE) { @@ -72,7 +74,7 @@ _handle->handle = handle; } -Semaphore::~Semaphore() throw(SystemError) +Semaphore::~Semaphore() throw() { CloseHandle(_handle->handle); delete _handle; @@ -109,4 +111,6 @@ "Could not increase semaphore count", P_SOURCEINFO); } -} +} // !namespace System + +} // !namespace P |
From: Christian P. <cp...@us...> - 2005-01-24 01:21:42
|
Update of /cvsroot/pclasses/pclasses2/src/System In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8326/src/System Modified Files: SharedLib.win32.cpp Log Message: Compile fixes for win32. Index: SharedLib.win32.cpp =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/System/SharedLib.win32.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- SharedLib.win32.cpp 26 Dec 2004 14:38:09 -0000 1.7 +++ SharedLib.win32.cpp 24 Jan 2005 01:21:32 -0000 1.8 @@ -42,26 +42,35 @@ SharedLib::SharedLib(const Unicode::String& name, BindMode mode) throw(SystemError) { -// Unicode::String realName = name; -// realName.append(".dll"); + Cache& cache = shared_lib_cache<unsigned long, SharedLibCloser>(); + CriticalSection::ScopedLock lck(cache.mutex); - _handle = (unsigned long)LoadLibrary(name); - if(!_handle) - throw SystemError(GetLastError(), "Could not load shared library", P_SOURCEINFO); + // se if we can get it from the handle cache ... + Cache::iterator i = cache.lookup(name.utf8()); + if(i == cache.end()) + { + //@fixme .. use win32 Unicode API !!! + _handle = (unsigned long)LoadLibrary(name.utf8().c_str()); + if(!_handle) + throw SystemError(GetLastError(), "Could not load shared library", P_SOURCEINFO); + + // add the handle to the cache + cache.add(name.utf8(), _handle); + } + else + { + _handle = i->second; + } } SharedLib::SharedLib(const std::string& name, BindMode mode) throw(SystemError) { -// std::ostringstream realName; -// realName << name; -// realName << ".dll"; - Cache& cache = shared_lib_cache<unsigned long, SharedLibCloser>(); CriticalSection::ScopedLock lck(cache.mutex); // se if we can get it from the handle cache ... - unsigned long handle = cache.lookup(name); - if(handle == Cache::InvalidHandle) + Cache::iterator i = cache.lookup(name); + if(i == cache.end()) { _handle = (unsigned long)LoadLibrary(name.c_str()); if(!_handle) @@ -72,7 +81,7 @@ } else { - _handle = handle; + _handle = i->second; } } |
From: Christian P. <cp...@us...> - 2005-01-24 01:21:12
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8148 Modified Files: IntTypes.h IntTypeLimits.h Log Message: Fixed IntTypeLimits. Use static const instead of enum. Index: IntTypeLimits.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/IntTypeLimits.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- IntTypeLimits.h 22 Dec 2004 17:54:39 -0000 1.1.1.1 +++ IntTypeLimits.h 24 Jan 2005 01:21:03 -0000 1.2 @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2004 by Christian Prochnow * + * Copyright (C) 2004,2005 by Christian Prochnow * * cp...@se... * * * * This program is free software; you can redistribute it and/or modify * @@ -18,8 +18,8 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#ifndef _P_IntTypeLimits_h_ -#define _P_IntTypeLimits_h_ +#ifndef P_IntTypeLimits_h +#define P_IntTypeLimits_h #include <pclasses/BasicTypes.h> @@ -33,74 +33,58 @@ template <> struct IntLimits<uint8_t> { - enum { - Max = (uint8_t)-1, - Min = 0 - }; + static const uint8_t Max = (uint8_t)-1; + static const uint8_t Min = 0; }; template <> struct IntLimits<int8_t> { - enum { - Max = 127, - Min = -Max - 1 - }; + static const int8_t Max = 127; + static const int8_t Min = -Max - 1; }; template <> struct IntLimits<uint16_t> { - enum { - Max = (uint16_t)-1, - Min = 0 - }; + static const uint16_t Max = (uint16_t)-1; + static const uint16_t Min = 0; }; template <> struct IntLimits<int16_t> { - enum { - Max = 32767, - Min = -Max - 1 - }; + static const int16_t Max = 32767; + static const int16_t Min = -Max - 1; }; template <> struct IntLimits<uint32_t> { - enum { - Max = (uint32_t)-1, - Min = 0 - }; + static const uint32_t Max = (uint32_t)-1; + static const uint32_t Min = 0; }; template <> struct IntLimits<int32_t> { - enum { - Max = 2147483647, - Min = -Max - 1 - }; + static const int32_t Max = 2147483647; + static const int32_t Min = -Max - 1; }; #ifdef PCLASSES_HAVE_64BIT_INT template <> struct IntLimits<uint64_t> { - enum { - Max = (uint64_t)-1, - Min = 0 - }; + static const uint64_t Max = (uint64_t)-1; + static const uint64_t Min = 0; }; template <> struct IntLimits<int64_t> { - enum { - Max = PCLASSES_S64(9223372036854775807), - Min = -Max - 1 - }; + static const int64_t Max = PCLASSES_S64(9223372036854775807); + static const int64_t Min = -Max - 1; }; #endif Index: IntTypes.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/IntTypes.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- IntTypes.h 24 Dec 2004 17:15:50 -0000 1.2 +++ IntTypes.h 24 Jan 2005 01:21:03 -0000 1.3 @@ -34,11 +34,6 @@ public: typedef Traits::ByteOrderTraits<Type> TraitsType; - enum { - Min = Traits::IntLimits<Type>::Min, - Max = Traits::IntLimits<Type>::Max - }; - //! Default constructor IntType(const Type& val = Type()) : ValueType<Type>(val) @@ -48,6 +43,12 @@ ~IntType() throw() { } + static Type min() + { return Traits::IntLimits<Type>::Min; } + + static Type max() + { return Traits::IntLimits<Type>::Max; } + //! Set the value from little-endian value void setLittleEndian(const IntType& val) throw() { TraitsType::setLittleEndian(this->_value, val._value); } |