mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-16 18:56:52 +02:00
sync to internal repository
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# Makefile
|
||||
#
|
||||
# $Id: //poco/1.3/Util/Makefile#1 $
|
||||
# $Id: //poco/Main/Util/Makefile#11 $
|
||||
#
|
||||
# Makefile for Poco Util
|
||||
#
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# Util.vmsbuild
|
||||
#
|
||||
# $Id: //poco/1.3/Util/Util.vmsbuild#1 $
|
||||
# $Id: //poco/Main/Util/Util.vmsbuild#2 $
|
||||
#
|
||||
LIB=PocoUtil
|
||||
AbstractConfiguration
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// AbstractConfiguration.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/include/Poco/Util/AbstractConfiguration.h#1 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/AbstractConfiguration.h#2 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Configuration
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// Application.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/include/Poco/Util/Application.h#3 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/Application.h#12 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Application
|
||||
@@ -49,6 +49,7 @@
|
||||
#include "Poco/Path.h"
|
||||
#include "Poco/Timestamp.h"
|
||||
#include "Poco/Timespan.h"
|
||||
#include "Poco/AutoPtr.h"
|
||||
#include <vector>
|
||||
#include <typeinfo>
|
||||
|
||||
@@ -444,7 +445,7 @@ inline Poco::Timespan Application::uptime() const
|
||||
#define POCO_APP_MAIN(App) \
|
||||
int wmain(int argc, wchar_t** argv) \
|
||||
{ \
|
||||
AutoPtr<App> pApp = new App; \
|
||||
Poco::AutoPtr<App> pApp = new App; \
|
||||
try \
|
||||
{ \
|
||||
pApp->init(argc, argv); \
|
||||
@@ -460,7 +461,7 @@ inline Poco::Timespan Application::uptime() const
|
||||
#define POCO_APP_MAIN(App) \
|
||||
int main(int argc, char** argv) \
|
||||
{ \
|
||||
AutoPtr<App> pApp = new App; \
|
||||
Poco::AutoPtr<App> pApp = new App; \
|
||||
try \
|
||||
{ \
|
||||
pApp->init(argc, argv); \
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// ConfigurationMapper.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/include/Poco/Util/ConfigurationMapper.h#1 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/ConfigurationMapper.h#2 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Configuration
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// ConfigurationView.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/include/Poco/Util/ConfigurationView.h#1 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/ConfigurationView.h#2 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Configuration
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// FilesystemConfiguration.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/include/Poco/Util/FilesystemConfiguration.h#1 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/FilesystemConfiguration.h#2 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Configuration
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// HelpFormatter.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/include/Poco/Util/HelpFormatter.h#1 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/HelpFormatter.h#2 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Options
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// IniFileConfiguration.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/include/Poco/Util/IniFileConfiguration.h#1 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/IniFileConfiguration.h#2 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Configuration
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// IntValidator.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/include/Poco/Util/IntValidator.h#1 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/IntValidator.h#1 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Options
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// LayeredConfiguration.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/include/Poco/Util/LayeredConfiguration.h#2 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/LayeredConfiguration.h#3 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Configuration
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// LoggingConfigurator.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/include/Poco/Util/LoggingConfigurator.h#1 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/LoggingConfigurator.h#3 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Configuration
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// LoggingSubsystem.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/include/Poco/Util/LoggingSubsystem.h#1 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/LoggingSubsystem.h#2 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Application
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// MapConfiguration.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/include/Poco/Util/MapConfiguration.h#1 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/MapConfiguration.h#2 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Configuration
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// Option.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/include/Poco/Util/Option.h#2 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/Option.h#5 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Options
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// OptionCallback.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/include/Poco/Util/OptionCallback.h#1 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/OptionCallback.h#3 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Options
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// OptionException.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/include/Poco/Util/OptionException.h#1 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/OptionException.h#3 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Options
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// OptionProcessor.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/include/Poco/Util/OptionProcessor.h#1 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/OptionProcessor.h#3 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Options
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// OptionSet.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/include/Poco/Util/OptionSet.h#1 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/OptionSet.h#2 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Options
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// PropertyFileConfiguration.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/include/Poco/Util/PropertyFileConfiguration.h#1 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/PropertyFileConfiguration.h#2 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Configuration
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// RegExpValidator.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/include/Poco/Util/RegExpValidator.h#1 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/RegExpValidator.h#1 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Options
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// ServerApplication.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/include/Poco/Util/ServerApplication.h#1 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/ServerApplication.h#3 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Application
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// Subsystem.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/include/Poco/Util/Subsystem.h#1 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/Subsystem.h#2 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Application
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// SystemConfiguration.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/include/Poco/Util/SystemConfiguration.h#1 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/SystemConfiguration.h#2 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Configuration
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// Util.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/include/Poco/Util/Util.h#1 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/Util.h#2 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Util
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// Validator.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/include/Poco/Util/Validator.h#1 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/Validator.h#1 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Options
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// WinRegistryConfiguration.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/include/Poco/Util/WinRegistryConfiguration.h#1 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/WinRegistryConfiguration.h#2 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Windows
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// WinRegistryKey.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/include/Poco/Util/WinRegistryKey.h#1 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/WinRegistryKey.h#2 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Windows
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// WinService.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/include/Poco/Util/WinService.h#1 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/WinService.h#2 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Windows
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// XMLConfiguration.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/include/Poco/Util/XMLConfiguration.h#1 $
|
||||
// $Id: //poco/Main/Util/include/Poco/Util/XMLConfiguration.h#2 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Configuration
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# Makefile
|
||||
#
|
||||
# $Id: //poco/1.3/Util/samples/Makefile#1 $
|
||||
# $Id: //poco/Main/Util/samples/Makefile#3 $
|
||||
#
|
||||
# Makefile for Poco Util Samples
|
||||
#
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# Makefile
|
||||
#
|
||||
# $Id: //poco/1.3/Util/samples/SampleApp/Makefile#1 $
|
||||
# $Id: //poco/Main/Util/samples/SampleApp/Makefile#3 $
|
||||
#
|
||||
# Makefile for Poco SampleApp
|
||||
#
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# sample.vmsbuild
|
||||
#
|
||||
# $Id: //poco/1.3/Util/samples/SampleApp/SampleApp.vmsbuild#1 $
|
||||
# $Id: //poco/Main/Util/samples/SampleApp/SampleApp.vmsbuild#2 $
|
||||
#
|
||||
EXE=SampleApp
|
||||
SampleApp
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// SampleApp.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/samples/SampleApp/src/SampleApp.cpp#1 $
|
||||
// $Id: //poco/Main/Util/samples/SampleApp/src/SampleApp.cpp#10 $
|
||||
//
|
||||
// This sample demonstrates the Application class.
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# Makefile
|
||||
#
|
||||
# $Id: //poco/1.3/Util/samples/SampleServer/Makefile#1 $
|
||||
# $Id: //poco/Main/Util/samples/SampleServer/Makefile#3 $
|
||||
#
|
||||
# Makefile for Poco SampleServer
|
||||
#
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# sample.vmsbuild
|
||||
#
|
||||
# $Id: //poco/1.3/Util/samples/SampleServer/SampleServer.vmsbuild#1 $
|
||||
# $Id: //poco/Main/Util/samples/SampleServer/SampleServer.vmsbuild#1 $
|
||||
#
|
||||
EXE=SampleServer
|
||||
SampleServer
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// SampleServer.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/samples/SampleServer/src/SampleServer.cpp#1 $
|
||||
// $Id: //poco/Main/Util/samples/SampleServer/src/SampleServer.cpp#9 $
|
||||
//
|
||||
// This sample demonstrates the ServerApplication class.
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// AbstractConfiguration.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/src/AbstractConfiguration.cpp#1 $
|
||||
// $Id: //poco/Main/Util/src/AbstractConfiguration.cpp#6 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Configuration
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// Application.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/src/Application.cpp#2 $
|
||||
// $Id: //poco/Main/Util/src/Application.cpp#25 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Application
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// ConfigurationMapper.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/src/ConfigurationMapper.cpp#1 $
|
||||
// $Id: //poco/Main/Util/src/ConfigurationMapper.cpp#6 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Configuration
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// ConfigurationView.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/src/ConfigurationView.cpp#1 $
|
||||
// $Id: //poco/Main/Util/src/ConfigurationView.cpp#7 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Configuration
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// FilesystemConfiguration.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/src/FilesystemConfiguration.cpp#1 $
|
||||
// $Id: //poco/Main/Util/src/FilesystemConfiguration.cpp#7 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Configuration
|
||||
@@ -36,6 +36,7 @@
|
||||
|
||||
#include "Poco/Util/FilesystemConfiguration.h"
|
||||
#include "Poco/File.h"
|
||||
#include "Poco/Path.h"
|
||||
#include "Poco/DirectoryIterator.h"
|
||||
#include "Poco/StringTokenizer.h"
|
||||
#include "Poco/Exception.h"
|
||||
@@ -80,7 +81,7 @@ bool FilesystemConfiguration::getRaw(const std::string& key, std::string& value)
|
||||
if (f.exists())
|
||||
{
|
||||
value.reserve((std::string::size_type) f.getSize());
|
||||
std::ifstream istr(p.toString().c_str());
|
||||
std::ifstream istr(Path::transcode(p.toString()).c_str());
|
||||
int c = istr.get();
|
||||
while (c != std::char_traits<char>::eof())
|
||||
{
|
||||
@@ -99,7 +100,7 @@ void FilesystemConfiguration::setRaw(const std::string& key, const std::string&
|
||||
File dir(p);
|
||||
dir.createDirectories();
|
||||
p.setFileName("data");
|
||||
std::ofstream ostr(p.toString().c_str());
|
||||
std::ofstream ostr(Path::transcode(p.toString()).c_str());
|
||||
ostr.write(value.data(), (std::streamsize) value.length());
|
||||
}
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// HelpFormatter.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/src/HelpFormatter.cpp#1 $
|
||||
// $Id: //poco/Main/Util/src/HelpFormatter.cpp#7 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Options
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// IniFileConfiguration.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/src/IniFileConfiguration.cpp#1 $
|
||||
// $Id: //poco/Main/Util/src/IniFileConfiguration.cpp#7 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Configuration
|
||||
@@ -37,6 +37,7 @@
|
||||
#include "Poco/Util/IniFileConfiguration.h"
|
||||
#include "Poco/Exception.h"
|
||||
#include "Poco/String.h"
|
||||
#include "Poco/Path.h"
|
||||
#include <fstream>
|
||||
#include <locale>
|
||||
#include <set>
|
||||
@@ -44,6 +45,7 @@
|
||||
|
||||
using Poco::icompare;
|
||||
using Poco::trim;
|
||||
using Poco::Path;
|
||||
|
||||
|
||||
namespace Poco {
|
||||
@@ -85,7 +87,7 @@ void IniFileConfiguration::load(std::istream& istr)
|
||||
|
||||
void IniFileConfiguration::load(const std::string& path)
|
||||
{
|
||||
std::ifstream istr(path.c_str());
|
||||
std::ifstream istr(Path::transcode(path).c_str());
|
||||
if (istr.good())
|
||||
load(istr);
|
||||
else
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// IntValidator.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/src/IntValidator.cpp#1 $
|
||||
// $Id: //poco/Main/Util/src/IntValidator.cpp#1 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Options
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// LayeredConfiguration.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/src/LayeredConfiguration.cpp#2 $
|
||||
// $Id: //poco/Main/Util/src/LayeredConfiguration.cpp#8 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Configuration
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// LoggingConfigurator.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/src/LoggingConfigurator.cpp#1 $
|
||||
// $Id: //poco/Main/Util/src/LoggingConfigurator.cpp#12 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Configuration
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// LoggingSubsystem.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/src/LoggingSubsystem.cpp#1 $
|
||||
// $Id: //poco/Main/Util/src/LoggingSubsystem.cpp#8 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Application
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// MapConfiguration.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/src/MapConfiguration.cpp#1 $
|
||||
// $Id: //poco/Main/Util/src/MapConfiguration.cpp#6 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Configuration
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// Option.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/src/Option.cpp#2 $
|
||||
// $Id: //poco/Main/Util/src/Option.cpp#10 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Options
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// OptionCallback.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/src/OptionCallback.cpp#1 $
|
||||
// $Id: //poco/Main/Util/src/OptionCallback.cpp#2 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Options
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// OptionException.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/src/OptionException.cpp#1 $
|
||||
// $Id: //poco/Main/Util/src/OptionException.cpp#8 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Options
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// OptionProcessor.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/src/OptionProcessor.cpp#1 $
|
||||
// $Id: //poco/Main/Util/src/OptionProcessor.cpp#8 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Options
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// OptionSet.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/src/OptionSet.cpp#1 $
|
||||
// $Id: //poco/Main/Util/src/OptionSet.cpp#8 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Options
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// PropertyFileConfiguration.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/src/PropertyFileConfiguration.cpp#1 $
|
||||
// $Id: //poco/Main/Util/src/PropertyFileConfiguration.cpp#7 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Configuration
|
||||
@@ -37,11 +37,13 @@
|
||||
#include "Poco/Util/PropertyFileConfiguration.h"
|
||||
#include "Poco/Exception.h"
|
||||
#include "Poco/String.h"
|
||||
#include "Poco/Path.h"
|
||||
#include <fstream>
|
||||
#include <locale>
|
||||
|
||||
|
||||
using Poco::trim;
|
||||
using Poco::Path;
|
||||
|
||||
|
||||
namespace Poco {
|
||||
@@ -82,7 +84,7 @@ void PropertyFileConfiguration::load(std::istream& istr)
|
||||
|
||||
void PropertyFileConfiguration::load(const std::string& path)
|
||||
{
|
||||
std::ifstream istr(path.c_str());
|
||||
std::ifstream istr(Path::transcode(path).c_str());
|
||||
if (istr.good())
|
||||
load(istr);
|
||||
else
|
||||
@@ -104,7 +106,7 @@ void PropertyFileConfiguration::save(std::ostream& ostr) const
|
||||
|
||||
void PropertyFileConfiguration::save(const std::string& path) const
|
||||
{
|
||||
std::ofstream ostr(path.c_str());
|
||||
std::ofstream ostr(Path::transcode(path).c_str());
|
||||
if (ostr.good())
|
||||
{
|
||||
save(ostr);
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// RegExpValidator.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/src/RegExpValidator.cpp#1 $
|
||||
// $Id: //poco/Main/Util/src/RegExpValidator.cpp#2 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Options
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// ServerApplication.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/src/ServerApplication.cpp#2 $
|
||||
// $Id: //poco/Main/Util/src/ServerApplication.cpp#18 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Application
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// Subsystem.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/src/Subsystem.cpp#1 $
|
||||
// $Id: //poco/Main/Util/src/Subsystem.cpp#7 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Application
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// SystemConfiguration.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/src/SystemConfiguration.cpp#1 $
|
||||
// $Id: //poco/Main/Util/src/SystemConfiguration.cpp#6 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Configuration
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// Validator.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/src/Validator.cpp#1 $
|
||||
// $Id: //poco/Main/Util/src/Validator.cpp#1 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Options
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// WinRegistryConfiguration.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/src/WinRegistryConfiguration.cpp#2 $
|
||||
// $Id: //poco/Main/Util/src/WinRegistryConfiguration.cpp#6 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Windows
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// WinRegistryKey.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/src/WinRegistryKey.cpp#1 $
|
||||
// $Id: //poco/Main/Util/src/WinRegistryKey.cpp#11 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Windows
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// WinService.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/src/WinService.cpp#1 $
|
||||
// $Id: //poco/Main/Util/src/WinService.cpp#9 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Windows
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// XMLConfiguration.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/src/XMLConfiguration.cpp#1 $
|
||||
// $Id: //poco/Main/Util/src/XMLConfiguration.cpp#6 $
|
||||
//
|
||||
// Library: Util
|
||||
// Package: Configuration
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# Makefile
|
||||
#
|
||||
# $Id: //poco/1.3/Util/testsuite/Makefile#1 $
|
||||
# $Id: //poco/Main/Util/testsuite/Makefile#5 $
|
||||
#
|
||||
# Makefile for Poco Util testsuite
|
||||
#
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# TestSuite.vmsbuild
|
||||
#
|
||||
# $Id: //poco/1.3/Util/testsuite/TestSuite.vmsbuild#1 $
|
||||
# $Id: //poco/Main/Util/testsuite/TestSuite.vmsbuild#3 $
|
||||
#
|
||||
EXE=TestRunner
|
||||
AbstractConfigurationTest
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// AbstractConfigurationTest.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/AbstractConfigurationTest.cpp#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/AbstractConfigurationTest.cpp#5 $
|
||||
//
|
||||
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// AbstractConfigurationTest.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/AbstractConfigurationTest.h#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/AbstractConfigurationTest.h#5 $
|
||||
//
|
||||
// Definition of the AbstractConfigurationTest class.
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// ConfigurationMapperTest.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/ConfigurationMapperTest.cpp#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/ConfigurationMapperTest.cpp#5 $
|
||||
//
|
||||
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// ConfigurationMapperTest.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/ConfigurationMapperTest.h#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/ConfigurationMapperTest.h#5 $
|
||||
//
|
||||
// Definition of the ConfigurationMapperTest class.
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// ConfigurationTestSuite.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/ConfigurationTestSuite.cpp#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/ConfigurationTestSuite.cpp#6 $
|
||||
//
|
||||
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// ConfigurationTestSuite.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/ConfigurationTestSuite.h#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/ConfigurationTestSuite.h#4 $
|
||||
//
|
||||
// Definition of the ConfigurationTestSuite class.
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// ConfigurationViewTest.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/ConfigurationViewTest.cpp#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/ConfigurationViewTest.cpp#6 $
|
||||
//
|
||||
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// ConfigurationViewTest.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/ConfigurationViewTest.h#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/ConfigurationViewTest.h#5 $
|
||||
//
|
||||
// Definition of the ConfigurationViewTest class.
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// Driver.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/Driver.cpp#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/Driver.cpp#5 $
|
||||
//
|
||||
// Console-based test driver for Poco Util.
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// FilesystemConfigurationTest.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/FilesystemConfigurationTest.cpp#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/FilesystemConfigurationTest.cpp#6 $
|
||||
//
|
||||
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// FilesystemConfigurationTest.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/FilesystemConfigurationTest.h#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/FilesystemConfigurationTest.h#4 $
|
||||
//
|
||||
// Definition of the FilesystemConfigurationTest class.
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// HelpFormatterTest.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/HelpFormatterTest.cpp#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/HelpFormatterTest.cpp#5 $
|
||||
//
|
||||
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// HelpFormatterTest.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/HelpFormatterTest.h#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/HelpFormatterTest.h#4 $
|
||||
//
|
||||
// Definition of the HelpFormatterTest class.
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// IniFileConfigurationTest.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/IniFileConfigurationTest.cpp#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/IniFileConfigurationTest.cpp#5 $
|
||||
//
|
||||
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// IniFileConfigurationTest.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/IniFileConfigurationTest.h#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/IniFileConfigurationTest.h#4 $
|
||||
//
|
||||
// Definition of the IniFileConfigurationTest class.
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// LayeredConfigurationTest.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/LayeredConfigurationTest.cpp#2 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/LayeredConfigurationTest.cpp#6 $
|
||||
//
|
||||
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// LayeredConfigurationTest.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/LayeredConfigurationTest.h#2 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/LayeredConfigurationTest.h#5 $
|
||||
//
|
||||
// Definition of the LayeredConfigurationTest class.
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// LoggingConfiguratorTest.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/LoggingConfiguratorTest.cpp#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/LoggingConfiguratorTest.cpp#5 $
|
||||
//
|
||||
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// LoggingConfiguratorTest.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/LoggingConfiguratorTest.h#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/LoggingConfiguratorTest.h#4 $
|
||||
//
|
||||
// Definition of the LoggingConfiguratorTest class.
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// MapConfigurationTest.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/MapConfigurationTest.cpp#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/MapConfigurationTest.cpp#5 $
|
||||
//
|
||||
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// MapConfigurationTest.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/MapConfigurationTest.h#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/MapConfigurationTest.h#4 $
|
||||
//
|
||||
// Definition of the MapConfigurationTest class.
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// OptionProcessorTest.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/OptionProcessorTest.cpp#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/OptionProcessorTest.cpp#6 $
|
||||
//
|
||||
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// OptionProcessorTest.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/OptionProcessorTest.h#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/OptionProcessorTest.h#5 $
|
||||
//
|
||||
// Definition of the OptionProcessorTest class.
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// OptionSetTest.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/OptionSetTest.cpp#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/OptionSetTest.cpp#6 $
|
||||
//
|
||||
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// OptionSetTest.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/OptionSetTest.h#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/OptionSetTest.h#4 $
|
||||
//
|
||||
// Definition of the OptionSetTest class.
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// OptionTest.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/OptionTest.cpp#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/OptionTest.cpp#6 $
|
||||
//
|
||||
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// OptionTest.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/OptionTest.h#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/OptionTest.h#4 $
|
||||
//
|
||||
// Definition of the OptionTest class.
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// OptionsTestSuite.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/OptionsTestSuite.cpp#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/OptionsTestSuite.cpp#5 $
|
||||
//
|
||||
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// OptionsTestSuite.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/OptionsTestSuite.h#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/OptionsTestSuite.h#4 $
|
||||
//
|
||||
// Definition of the OptionsTestSuite class.
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// PropertyFileConfigurationTest.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/PropertyFileConfigurationTest.cpp#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/PropertyFileConfigurationTest.cpp#5 $
|
||||
//
|
||||
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// PropertyFileConfigurationTest.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/PropertyFileConfigurationTest.h#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/PropertyFileConfigurationTest.h#4 $
|
||||
//
|
||||
// Definition of the PropertyFileConfigurationTest class.
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// SystemConfigurationTest.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/SystemConfigurationTest.cpp#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/SystemConfigurationTest.cpp#5 $
|
||||
//
|
||||
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// SystemConfigurationTest.h
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/SystemConfigurationTest.h#1 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/SystemConfigurationTest.h#4 $
|
||||
//
|
||||
// Definition of the SystemConfigurationTest class.
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// UtilTestSuite.cpp
|
||||
//
|
||||
// $Id: //poco/1.3/Util/testsuite/src/UtilTestSuite.cpp#2 $
|
||||
// $Id: //poco/Main/Util/testsuite/src/UtilTestSuite.cpp#6 $
|
||||
//
|
||||
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user