mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-22 07:01:12 +01:00
trunk/branch integration: documentation
This commit is contained in:
parent
eefd04cc75
commit
308170b4cb
@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// StrategyCollection.h
|
// StrategyCollection.h
|
||||||
//
|
//
|
||||||
// $Id: //poco/svn/Foundation/include/Poco/StrategyCollection.h#2 $
|
// $Id: //poco/1.4/Foundation/include/Poco/StrategyCollection.h#1 $
|
||||||
//
|
//
|
||||||
// Library: Foundation
|
// Library: Foundation
|
||||||
// Package: Cache
|
// Package: Cache
|
||||||
@ -36,8 +36,8 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
#ifndef Foundation_StrategyCollection_INCLUDED
|
#ifndef Foundation_StrategyCollection_INCLUDED
|
||||||
#define Foundation_StrategyCollection_INCLUDED
|
#define Foundation_StrategyCollection_INCLUDED
|
||||||
|
|
||||||
|
|
||||||
#include "Poco/KeyValueArgs.h"
|
#include "Poco/KeyValueArgs.h"
|
||||||
@ -52,10 +52,10 @@ namespace Poco {
|
|||||||
|
|
||||||
template <class TKey, class TValue>
|
template <class TKey, class TValue>
|
||||||
class StrategyCollection: public AbstractStrategy<TKey, TValue>
|
class StrategyCollection: public AbstractStrategy<TKey, TValue>
|
||||||
/// An StrategyCollection is a decorator masking n collections as a single one
|
/// An StrategyCollection is a decorator masking n collections as a single one.
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef std::vector<SharedPtr<AbstractStrategy<TKey, TValue> > > Strategies;
|
typedef std::vector<SharedPtr<AbstractStrategy<TKey, TValue> > > Strategies;
|
||||||
typedef typename Strategies::iterator Iterator;
|
typedef typename Strategies::iterator Iterator;
|
||||||
typedef typename Strategies::const_iterator ConstIterator;
|
typedef typename Strategies::const_iterator ConstIterator;
|
||||||
|
|
||||||
@ -152,4 +152,4 @@ protected:
|
|||||||
} // namespace Poco
|
} // namespace Poco
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif // Foundation_StrategyCollection_INCLUDED
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// StreamUtil.h
|
// StreamUtil.h
|
||||||
//
|
//
|
||||||
// $Id: //poco/svn/Foundation/include/Poco/StreamUtil.h#2 $
|
// $Id: //poco/1.4/Foundation/include/Poco/StreamUtil.h#1 $
|
||||||
//
|
//
|
||||||
// Library: Foundation
|
// Library: Foundation
|
||||||
// Package: Streams
|
// Package: Streams
|
||||||
@ -45,7 +45,7 @@
|
|||||||
|
|
||||||
// poco_ios_init
|
// poco_ios_init
|
||||||
//
|
//
|
||||||
// This is a workaround for a bug in the Microsoft
|
// This is a workaround for a bug in the Dinkumware
|
||||||
// implementation of iostreams.
|
// implementation of iostreams.
|
||||||
//
|
//
|
||||||
// Calling basic_ios::init() multiple times for the
|
// Calling basic_ios::init() multiple times for the
|
||||||
@ -90,11 +90,24 @@
|
|||||||
// Some stream implementations, however, require that
|
// Some stream implementations, however, require that
|
||||||
// init() is called in the MyIOS constructor.
|
// init() is called in the MyIOS constructor.
|
||||||
// Therefore we replace each call to init() with
|
// Therefore we replace each call to init() with
|
||||||
// the following macro:
|
// the poco_ios_init macro defined below.
|
||||||
#if defined(_MSC_VER) && (!defined(_STLP_MSVC) || defined(_STLP_NO_OWN_IOSTREAMS))
|
|
||||||
#define poco_ios_init(buf)
|
|
||||||
|
#if !defined(POCO_IOS_INIT_HACK)
|
||||||
|
// Microsoft Visual Studio with Dinkumware STL (but not STLport)
|
||||||
|
# if defined(_MSC_VER) && (!defined(_STLP_MSVC) || defined(_STLP_NO_OWN_IOSTREAMS))
|
||||||
|
# define POCO_IOS_INIT_HACK 1
|
||||||
|
// QNX with Dinkumware but not GNU C++ Library
|
||||||
|
# elif defined(__QNX__) && !defined(__GLIBCPP__)
|
||||||
|
# define POCO_IOS_INIT_HACK 1
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(POCO_IOS_INIT_HACK)
|
||||||
|
# define poco_ios_init(buf)
|
||||||
#else
|
#else
|
||||||
#define poco_ios_init(buf) init(buf)
|
# define poco_ios_init(buf) init(buf)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user