trunk/branch integration: documentation

This commit is contained in:
Marian Krivos 2011-08-23 06:52:06 +00:00
Родитель 1e58e9e2a0
Коммит e729c102b0
3 изменённых файлов: 32 добавлений и 27 удалений

Просмотреть файл

@ -36,8 +36,8 @@
//
#ifndef Foundation_KeyValueArgs_INCLUDED
#define Foundation_KeyValueArgs_INCLUDED
#ifndef Foundation_KeyValueArgs_INCLUDED
#define Foundation_KeyValueArgs_INCLUDED
#include "Poco/Foundation.h"
@ -92,4 +92,4 @@ private:
} // namespace Poco
#endif
#endif // Foundation_KeyValueArgs_INCLUDED

Просмотреть файл

@ -1,7 +1,7 @@
//
// LRUStrategy.h
//
// $Id: //poco/svn/Foundation/include/Poco/LRUStrategy.h#2 $
// $Id: //poco/1.4/Foundation/include/Poco/LRUStrategy.h#1 $
//
// Library: Foundation
// Package: Cache
@ -36,8 +36,8 @@
//
#ifndef Foundation_LRUStrategy_INCLUDED
#define Foundation_LRUStrategy_INCLUDED
#ifndef Foundation_LRUStrategy_INCLUDED
#define Foundation_LRUStrategy_INCLUDED
#include "Poco/KeyValueArgs.h"
@ -76,13 +76,13 @@ public:
{
}
void onAdd(const void*, const KeyValueArgs <TKey, TValue>& args)
{
_keys.push_front(args.key());
std::pair<IndexIterator, bool> stat = _keyIndex.insert(make_pair(args.key(), _keys.begin()));
if (!stat.second)
{
stat.first->second = _keys.begin();
void onAdd(const void*, const KeyValueArgs <TKey, TValue>& args)
{
_keys.push_front(args.key());
std::pair<IndexIterator, bool> stat = _keyIndex.insert(std::make_pair(args.key(), _keys.begin()));
if (!stat.second)
{
stat.first->second = _keys.begin();
}
}
@ -159,4 +159,4 @@ protected:
} // namespace Poco
#endif
#endif // Foundation_LRUStrategy_INCLUDED

Просмотреть файл

@ -1,7 +1,7 @@
//
// Logger.h
//
// $Id: //poco/Main/Foundation/include/Poco/Logger.h#7 $
// $Id: //poco/1.4/Foundation/include/Poco/Logger.h#3 $
//
// Library: Foundation
// Package: Logging
@ -110,20 +110,25 @@ public:
Channel* getChannel() const;
/// Returns the Channel attached to the logger.
void setLevel(int level);
/// Sets the Logger's log level.
int getLevel() const;
/// Returns the Logger's log level.
void setLevel(int 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;
/// Returns the Logger's log level.
void setLevel(const std::string& level);
/// Sets the Logger's log level using a symbolic value.
///
/// Valid values are:
/// - fatal
/// - critical
/// - error
/// Sets the Logger's log level using a symbolic value.
///
/// Valid values are:
/// - none (turns off logging)
/// - fatal
/// - critical
/// - error
/// - warning
/// - notice
/// - information