mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-16 07:23:44 +02:00
trunk/branch integration: documentation
This commit is contained in:
@@ -36,8 +36,8 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
#ifndef Foundation_KeyValueArgs_INCLUDED
|
#ifndef Foundation_KeyValueArgs_INCLUDED
|
||||||
#define Foundation_KeyValueArgs_INCLUDED
|
#define Foundation_KeyValueArgs_INCLUDED
|
||||||
|
|
||||||
|
|
||||||
#include "Poco/Foundation.h"
|
#include "Poco/Foundation.h"
|
||||||
@@ -92,4 +92,4 @@ private:
|
|||||||
} // namespace Poco
|
} // namespace Poco
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif // Foundation_KeyValueArgs_INCLUDED
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// LRUStrategy.h
|
// LRUStrategy.h
|
||||||
//
|
//
|
||||||
// $Id: //poco/svn/Foundation/include/Poco/LRUStrategy.h#2 $
|
// $Id: //poco/1.4/Foundation/include/Poco/LRUStrategy.h#1 $
|
||||||
//
|
//
|
||||||
// Library: Foundation
|
// Library: Foundation
|
||||||
// Package: Cache
|
// Package: Cache
|
||||||
@@ -36,8 +36,8 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
#ifndef Foundation_LRUStrategy_INCLUDED
|
#ifndef Foundation_LRUStrategy_INCLUDED
|
||||||
#define Foundation_LRUStrategy_INCLUDED
|
#define Foundation_LRUStrategy_INCLUDED
|
||||||
|
|
||||||
|
|
||||||
#include "Poco/KeyValueArgs.h"
|
#include "Poco/KeyValueArgs.h"
|
||||||
@@ -76,13 +76,13 @@ public:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void onAdd(const void*, const KeyValueArgs <TKey, TValue>& args)
|
void onAdd(const void*, const KeyValueArgs <TKey, TValue>& args)
|
||||||
{
|
{
|
||||||
_keys.push_front(args.key());
|
_keys.push_front(args.key());
|
||||||
std::pair<IndexIterator, bool> stat = _keyIndex.insert(make_pair(args.key(), _keys.begin()));
|
std::pair<IndexIterator, bool> stat = _keyIndex.insert(std::make_pair(args.key(), _keys.begin()));
|
||||||
if (!stat.second)
|
if (!stat.second)
|
||||||
{
|
{
|
||||||
stat.first->second = _keys.begin();
|
stat.first->second = _keys.begin();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -159,4 +159,4 @@ protected:
|
|||||||
} // namespace Poco
|
} // namespace Poco
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif // Foundation_LRUStrategy_INCLUDED
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// Logger.h
|
// Logger.h
|
||||||
//
|
//
|
||||||
// $Id: //poco/Main/Foundation/include/Poco/Logger.h#7 $
|
// $Id: //poco/1.4/Foundation/include/Poco/Logger.h#3 $
|
||||||
//
|
//
|
||||||
// Library: Foundation
|
// Library: Foundation
|
||||||
// Package: Logging
|
// Package: Logging
|
||||||
@@ -111,19 +111,24 @@ public:
|
|||||||
Channel* getChannel() const;
|
Channel* getChannel() const;
|
||||||
/// Returns the Channel attached to the logger.
|
/// Returns the Channel attached to the logger.
|
||||||
|
|
||||||
void setLevel(int level);
|
void setLevel(int level);
|
||||||
/// Sets the Logger's log level.
|
/// Sets the Logger's log level.
|
||||||
|
///
|
||||||
|
/// See Message::Priority for valid log levels.
|
||||||
|
/// Setting the log level to zero turns off
|
||||||
|
/// logging for that Logger.
|
||||||
|
|
||||||
int getLevel() const;
|
int getLevel() const;
|
||||||
/// Returns the Logger's log level.
|
/// Returns the Logger's log level.
|
||||||
|
|
||||||
void setLevel(const std::string& level);
|
void setLevel(const std::string& level);
|
||||||
/// Sets the Logger's log level using a symbolic value.
|
/// Sets the Logger's log level using a symbolic value.
|
||||||
///
|
///
|
||||||
/// Valid values are:
|
/// Valid values are:
|
||||||
/// - fatal
|
/// - none (turns off logging)
|
||||||
/// - critical
|
/// - fatal
|
||||||
/// - error
|
/// - critical
|
||||||
|
/// - error
|
||||||
/// - warning
|
/// - warning
|
||||||
/// - notice
|
/// - notice
|
||||||
/// - information
|
/// - information
|
||||||
|
Reference in New Issue
Block a user