mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 19:10:20 +01:00
merge some changes from develop branch; modernize and clean-up code; remove support for compiling without POCO_WIN32_UTF8
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user