merge some changes from develop branch; modernize and clean-up code; remove support for compiling without POCO_WIN32_UTF8

This commit is contained in:
Günter Obiltschnig
2020-01-09 10:08:09 +01:00
parent 7c177b6f89
commit 1bf40a0cd2
389 changed files with 3029 additions and 4111 deletions

View File

@@ -21,6 +21,7 @@
#include "Poco/Foundation.h"
#include "Poco/Channel.h"
#include "Poco/Mutex.h"
#include "Poco/AutoPtr.h"
#include <vector>
@@ -32,13 +33,15 @@ class Foundation_API SplitterChannel: public Channel
/// channels simultaneously.
{
public:
using Ptr = AutoPtr<SplitterChannel>;
SplitterChannel();
/// Creates the SplitterChannel.
void addChannel(Channel* pChannel);
void addChannel(Channel::Ptr pChannel);
/// Attaches a channel, which may not be null.
void removeChannel(Channel* pChannel);
void removeChannel(Channel::Ptr pChannel);
/// Removes a channel.
void log(const Message& msg);
@@ -64,7 +67,7 @@ protected:
~SplitterChannel();
private:
typedef std::vector<Channel*> ChannelVec;
typedef std::vector<Channel::Ptr> ChannelVec;
ChannelVec _channels;
mutable FastMutex _mutex;